Commit Graph
410 Commits
Author SHA1 Message Date
Terry Mancey 0fdac30df5 Calculate account statement from locally persisted state 2021-12-08 15:48:18 -05:00
Terry Mancey 0cb5c0c4a7 Merge pull request #10087 from brave/issues/16005
Refactor unblinded tokens
2021-12-06 10:55:24 -05:00
Anthony Tseng 11d338ae26 Use bundled torrc 2021-12-03 15:26:24 -08:00
Terry Mancey 455d366f21 Refactor unblinded tokens 2021-12-03 16:40:40 -05:00
Pranjal Jumde 58ab0c1a7f Fix #17290 - Cancel gemini transaction if status is not completed after 3 retries 2021-10-26 15:23:05 -05:00
Sergey P d02e490e38 Added --agent-version-suffix for ipfs binaries 0.10.0+ 2021-10-05 18:41:46 +03:00
Terry Mancey 4d97477ecf Refactor Brave Ads timestamps from uint64_t to double and base::Time 2021-09-24 10:10:29 -05:00
Terry Mancey 26c030f4b2 Fixes #includes and forward declarations in Brave ads 2021-09-15 10:00:41 -05:00
zenparsing 58de26b852 Integrate Rewards panel 2.0 2021-09-07 15:00:46 -04:00
Emerick Rogul 831ac86181 Incorporate additional review feedback 2021-09-03 07:04:23 -04:00
Emerick Rogul 72e5423062 Incorporate review feedback 2021-09-03 07:04:23 -04:00
Emerick Rogul 9519483cd1 Clear scheduled captcha metadata on token refill 2021-09-03 07:04:22 -04:00
Emerick Rogul 465b394cc9 Initial work on adaptive captcha 2021-09-03 07:04:21 -04:00
Sergey 28ddf7f4d4 Merge pull request #9754 from brave/issues-16978
Kill hanging nodes
2021-08-17 22:41:32 +03:00
sergey 49775d16de Kill hanging nodes 2021-08-16 01:05:02 +03:00
Terry Mancey 8b2db3d87d Refactored Brave Ads Result to bool 2021-08-12 16:53:05 -05:00
Terry Mancey 25463fb3c7 Merge pull request #9253 from brave/issues/13209
Refactor Brave Ads mojom to remove name-spacing and use full mojom class names
2021-08-12 15:27:45 +01:00
Terry Mancey 83c61180a6 Refactor Brave Ads mojom to remove name-spacing and use full mojom class names 2021-08-12 08:49:16 -05:00
Aleksey Seren e3be378ff3 Add some ad diagnostics to rewards internal page.
Following diagnostics added:
- Users locale [LocaleHelper]
- Status: Enabled/disabled [prefs::kEnabled]
- Catalog id [prefs::kCatalogId]
- Catalog last updated timestamp [prefs::kCatalogLastUpdated]
- Last un-idle timestamp [AdsImpl::OnUnIdle]

fix https://github.com/brave/brave-browser/issues/10964

# Conflicts:
#	vendor/bat-native-ads/include/bat/ads/ads.h
2021-08-12 14:26:40 +07:00
sergey 0b3ff3fcf7 Rename ipfs_enabled -> enable_ipfs
ipfs_local_node_enabled -> enable_ipfs_local_node
2021-08-09 19:21:13 +03:00
Emerick Rogul 20dd03e305 Make retry interval configurable 2021-08-02 12:36:26 -04:00
Anthony Tseng e3f103d7ec Delete tor watch folder every time Tor is terminated to have clean cookie state 2021-07-28 21:17:53 -07:00
zenparsing 7149d751cd Replace SetEncryptedStringState with EncryptString in LedgerClient 2021-07-22 17:21:40 -04:00
Pranjal Jumde 56555ad718 Fix #14629 - Add support for Gemini for rewards external wallets 2021-07-13 17:24:53 -05:00
Anthony Tseng cab486cc85 Stop logging tor log to disk 2021-07-06 15:35:34 -07:00
Max Karolinskiy 7c0ee01dcd Converted more components to static_library 2021-07-01 09:32:38 -04:00
mkarolin 5ba16856f7 Revert "Converted some unit tests source_set to static_library."
This reverts commit bb3b1f5ea0.
2021-07-01 09:32:38 -04:00
Terry Mancey c7b69ec90a Merge pull request #9263 from brave/issues/16648
Implement Brave Ads API to purge unseen served ads
2021-06-30 12:11:46 -05:00
Max Karolinskiy bb3b1f5ea0 Converted some unit tests source_set to static_library. 2021-06-29 16:39:03 -04:00
mkarolin 0e7b362863 base::Optional -> absl::optional.
Chromium change:

https://source.chromium.org/chromium/chromium/src/+/2d59e682ab9eb904124f5778eb8ceb3cb2a90231

commit 2d59e682ab9eb904124f5778eb8ceb3cb2a90231
Author: Anton Bikineev <bikineev@chromium.org>
Date:   Tue May 18 12:29:22 2021 +0000

    Deprecate base/optional.h and fix remaining mentions.

    Docs are still to be updated (in a followup).

    Bug: 1202909

Converted remaining cases of base::Optional to absl::optional, plus
updated DEPS file with an exception that is temporarily required
while we don't have such exception added to Chromium's toplevel DEPS
file (see commit linked below, not yet included in 92.0.4503.5).

Chromium change:

https://source.chromium.org/chromium/chromium/src/+/9662571bb2954fb1759c49e5c45e59571cd1899e

commit 9662571bb2954fb1759c49e5c45e59571cd1899e
Author: Anton Bikineev <bikineev@chromium.org>
Date:   Thu May 13 19:17:50 2021 +0000

    Reland "Alias base::Optional to absl::optional"

    This relands f3493eb4f80c5716ed2d7de195f710537beacc6b. The reason of the
    failure: missing base// dep in some of the internal components, which
    caused the branded builds to fail.

    For sherrifs: the change may cause build failures on bots that are not
    tested in the regular CQ pipeline. Those issues are mostly caused by
    missing base// dependencies. Before reverting this change, please
    consider fixing missing dependencies, similar to what the CL 2891488
    does.

    Original CL description:
    > Alias base::Optional to absl::optional
    >
    > This CL does the following:
    > 1) Replaces base::Optional and friends with aliases to corresponding
    > entities from abseil. base::in_place is the only thing not aliased, as
    > it's also used in other contexts (e.g. StructPtr in mojo).
    > 2) Replaces all optional-related uses of base::in_place with
    > absl::in_place.
    > 3) Fixes missing headers (e.g. base/check.h) that used to be recursively
    > included from base/optional.h
    > 4) Also, removes forward declarations for base::Optional and instead
    > includes "base/optional.h" directly. The argument is the same as for
    > forward declarations of std types - the exact declaration (struct vs
    > class, number of template arguments (e.g. for SFINAE)) is an
    > implementation detail that can change.
    >
    > The CL also tries to support base/optional_unittest.cc (will be removed
    > with base/optional.h) however the nocompile is already removed, since
    > supporting it seems to be harder.
    >
    > Followup CLs will replace base::optional with absl::optional per
    > component.
    >
    > Bug: 1202909
    > Change-Id: I25b276401ceba13da35b3a0331d5ccbd338c4539
    > AX-Relnotes: n/a.
    > Reviewed-on:
    > https://chromium-review.googlesource.com/c/chromium/src/+/2892208
    > Commit-Queue: Anton Bikineev <bikineev@chromium.org>
    > Commit-Queue: Peter Kasting <pkasting@chromium.org>
    > Reviewed-by: Peter Kasting <pkasting@chromium.org>
    > Reviewed-by: Kentaro Hara <haraken@chromium.org>
    > Owners-Override: Peter Kasting <pkasting@chromium.org>
    > Cr-Commit-Position: refs/heads/master@{#882460}

    Bug: 1202909
2021-06-29 16:35:39 -04:00
Terry Mancey 7b4d8ab5de Implement Brave Ads API to purge unseen served ads 2021-06-29 08:36:14 -05:00
Terry Mancey 7a27a2ce1d Implement Brave inline content ads 2021-06-10 12:36:22 -05:00
Terry Mancey a2fff41b9c Allow Brave Ads users to choose between 0, 1, 2, 3, 4, 5 or 10 maximum ad notification per hour 2021-06-04 12:20:19 -05:00
Sergey P 8dee1321b3 Update config without node 2021-05-24 20:43:21 +03:00
Anthony Tseng 6f3389b3dd Rename ChildMonitor to ChildProcessMonitor and address review feedback 2021-04-30 08:44:59 -07:00
Anthony Tseng ffd5e58c12 Introduce ChildMonitor to monitor the lifetime of external child process 2021-04-30 08:44:58 -07:00
Anthony Tseng 7245f31a45 Fix MonitorChild thread violation in utility process 2021-04-30 08:44:58 -07:00
Terry Mancey 86f15eb5e9 Implement new custom ad notification design 2021-04-28 16:57:54 -05:00
Mario Sanchez Prada 3d9dd9a278 Merge pull request #8443 from brave/issues/10623
Fix GN dependencies in //brave/utility
2021-04-23 11:14:42 +02:00
Mario Sanchez Prada 0912653293 Fix errors from running npm run lint 2021-04-22 11:06:47 +02:00
Mario Sanchez Prada b7e4c1a82f Fix GN dependencies in //brave/utility
We had made services.cc depend on //brave/utility via a chromium_src
override, but that caused a dependency cycle because //brave/utility
also depends on //chrome/utility (e.g. extend some upstream classes),
causing a gn check error.

To fix this, we can follow the pattern used in other places and make
upstream's //chrome/utility directly include the files from Brave that
it needs, and replace the oneliner patch to //chrome/utility/BUILD.gn
with one that would simply include those sources, instead of having it
depend on //brave/utility.

Last, we also add a missing dep on //brave/common/importer:importer
to avoid another gn check failure due to having some files from that
target included from brave_external_process_importer_bridge.h.

Resolves https://github.com/brave/brave-browser/issues/10623
2021-04-22 11:06:47 +02:00
Moritz Haller e15380cefc Enhance and refactor the Brave Ads component updater.
Enable a/b testing for different versions of a resource, e.g. text classification. Change name from UserModel to AdsResource and move code into the brave ads component. Finally removing the bat-native-usermodel dependency from ads.
2021-04-22 08:40:22 +01:00
Terry Mancey 639191a42a Enforce maximum number of ads displayed across all user profiles 2021-04-08 11:26:13 +01:00
Moritz Haller 75e7d7f50e Add anti-targeting frequency capping for Brave Ads 2021-04-01 17:47:52 +01:00
Mario Sanchez Prada cc53e744e9 Add missing includes for base/threading/thread.h
These were being transitively included before, but need to be
explicitly added now.
2021-03-23 14:55:20 -04:00
Brian R. Bondy 735d6119ee Fix unused variable warning 2021-03-18 20:27:50 -04:00
Brian R. Bondy b31185e875 Revert "Merge pull request #8299 from brave/revert_8257"
This reverts commit 96aebb9ee6, reversing
changes made to 7e073b26c1.
2021-03-18 20:26:48 -04:00
Jocelyn Liu 25a3c5c48d Revert "Merge pull request #8257 from brave/ipfs-android"
This reverts commit 534a1e122d, reversing
changes made to 103be2b8c1.
2021-03-18 14:02:59 -07:00
Brian R. Bondy 7f0bc31b89 Add IPFS gateway support on Android 2021-03-17 13:09:14 -04:00
Terry Mancey da80cbe2d6 Merge pull request #8271 from brave/issues/14761
Decouple AdsImpl::OnTextLoaded page transition type and user gesture
2021-03-17 15:47:27 +00:00