29 Commits
Author SHA1 Message Date
Kevin Smith a6bce82a33 [Rewards] Reland: Move content and engine targets behind build flag (#33932)
This change moves the Brave Rewards code in "content" and "engine"
behind the ENABLE_BRAVE_REWARDS buildflag. In order to simplify
dependencies, it also moves the buildflags defined in "engine" to
"core/buildflags".
2026-02-17 20:41:53 -05:00
Mihai PLESA 58b2c2932c Revert "[Rewards] Move content and engine targets behind build flag" (#33929)
Revert "[Rewards] Move content and engine targets behind build flag (#33898)"

This reverts commit fe5425a9af.
2026-02-13 10:03:37 +00:00
Kevin Smith fe5425a9af [Rewards] Move content and engine targets behind build flag (#33898) 2026-02-12 13:42:45 -05:00
Kevin Smith 6ad9768032 [Rewards] Move browser targets behind build flag (#33798) 2026-02-12 07:50:04 -05:00
Aleksei Seren ae252d3edc Disable Brave Ads for Brave Origin (#33309)
The PR does the following:
* Adds buildflag static asserts to Brave Ads public 
   facing headers
* Moves remaining Brave Ads code for Desktop 
   builds under a build flag
* Sets Brave Ads build flag to false for 
   Brave Origin build
2026-01-27 13:32:06 -05:00
Brian R. Bondy 4049b8799f Add enable_brave_news buildflag (#32852) 2026-01-12 13:22:17 -05:00
Brian R. Bondy 72cadbd0c6 AIChat build flag and gn var (#31988)
* Add AI Chat build flag to components/ai_chat

* Add AI Chat build flag to browser/ui

* Add AI Chat build flag to browser/resources

* Add AI Chat build flag to chromium overrides

* Add AI Chat build flag to other components

* Add AI Chat build flag to core browser files

* Add AI Chat build flag to app and renderer

* Add AI Chat build flag to remaining files

* Set enable_ai_chat to !is_brave_origin_branded

* Review comments

Including gn_check errors in chromium_src

* Exclude ai_chat Jest tests when not enabled
2025-11-11 11:20:34 -05:00
Brian Johnson 7989acf16f [Speedreader] Cleanup pref/feature/method naming (#31415)
Rename pref/features to try to make them more clear. `Enable` means that the site will open in Speedreader automatically. `Allow` means it may open in Speedreader depending on whether it's a site specific override or allow for all readable urls is true and the url looks readable.
2025-09-30 08:07:18 -07:00
Max Karolinskiy 60fe010482 [cr141] IdentityManager shouldn't be created too early.
The upstream change was causing a crash in
BraveSpeedFeatureProcessorBrowserTest.Default browser test due to CHECK
for early creation of IdentityManager.

To avoid the check split --enable-brave-features-for-perf-testing switch
handler into two parts:
1. Changes prefs
2. Instantiates services (rewards service that causes creation of
   IdentityManager) and components.

Chromium change:

https://source.chromium.org/chromium/chromium/src/+/21435fb93f29b1ece473baf8d62d36b978fcb1a8

commit 21435fb93f29b1ece473baf8d62d36b978fcb1a8
Author: Mihai Sardarescu <msarda@chromium.org>
Date:   Tue Aug 5 03:09:57 2025 -0700

    Check that IdentityManager is not created too early

    This CL adds an explicit CHECK in the profile initialization to ensure
    that the IdentityManager is not created before the profile keyed
    services are created.

    This ensures that the IdentityManager can be properly overrides with
    a mock/fake in unit and browser tests.

    Note: This check is currently if-deffed out on Android as on this
    platform the IdentityManager is created by mistake when initializing
    the storage partition. This will be fixed in a follow-up CL.

    Bug: 436208345
2025-09-22 14:59:38 -04:00
Brian R. BondyandSerg 7240ef2e2e Add top level toggle to enable/disable Speedreader (#30600)
* Add top level toggle to enable/disable Speedreader

This migrates away an old bad named feature for automatically using
speedreader for all sites.  The pref was wrongly named `enabled`.

This also adds a new preference for actually enabling/disabling the
feature.

* Fixes Android presubmit

---------

Co-authored-by: Serg <serg.zhukovsky@gmail.com>
2025-08-13 11:14:10 -04:00
Kevin Smith 4cc241a866 Reconfigure Rewards component folder structure (#27270)
Fix directory structure per https://www.chromium.org/developers/design-documents/cookbook/
2025-01-31 13:47:34 -07:00
Brian Johnson afd4e0239d fix overly permissive DEPS (#27193)
Fix overly permissive deps
2025-01-12 21:43:04 -07:00
Jocelyn Liu efcb1df7c6 Remove enable_ai_chat buildflag 2024-10-31 20:15:18 -07:00
Jay Harris b5a5403dd1 [Brave News]: Make it more obvious what BraveNewsSubscriptions is, and can be used for (#24290) 2024-06-24 05:03:21 +02:00
Mikhail 874c70851e Enable leo opt in perf tests (#23464)
* Enable leo in perf tests

* Add tests
2024-05-09 00:50:37 +07:00
Jacob Sikorski ab332ff65c Cleanup brave_shields component 2024-02-12 15:47:01 -07:00
Anton Lazarev 14111b417a Unrevert unified adblock catalog (#21556) 2024-01-30 15:36:27 -08:00
cdesouza-chromium 75bbf7d53c Convert various extern strings to constexpr (#20959)
These change are being done to make use of `absl::StrFormat` in the
future, and also to get some better codegen with these constants.
There's also some harderning on upstream code to avoid unnecessary
conversions involving constants, which can only be enforced in a
`constexpr` constext.
2023-11-15 09:02:30 +00:00
Mikhail Atuchin 3cd2cf1ac5 Revert "Merge pull request #19946 from brave/unified-adblock-catalog"
This reverts commit 2e1760826c, reversing
changes made to 13c48d9f8f.
2023-10-07 22:39:03 +02:00
Anton Lazarev d75a32a3eb rename AdBlockRegionalServiceManager -> AdBlockComponentServiceManager 2023-09-13 14:52:00 -07:00
Pavel Beloborodov 33e16ff315 New speedreader tune dialog (#19715)
* New speedreader tune dialog
2023-08-29 20:57:06 +07:00
Aleksey Seren f7db083914 Move brave_ads/common to brave_ads/core 2023-08-24 19:40:23 -05:00
Terry Mancey 93c5e6c095 Implement Ads control center Brave Ads changes 2023-07-18 14:41:17 -04:00
Terry Mancey 92b9aaf221 Deprecate and replace Brave Ads SetEnabled with SetBoolean pref 2023-06-08 09:59:42 -05:00
zenparsing 33663efde1 Simplify Rewards namespacing 2023-04-24 16:29:15 -04:00
Jay Harris 4c30718608 Stop request to Brave News CDN when Brave News is not enabled / opted in (#17047)
Fix network request at startup
2023-03-01 09:08:39 +13:00
Jay Harris 492eb68e49 Rename Brave Today to Brave News (#17265) 2023-02-24 13:22:47 +13:00
Emerick Rogul 55632a2057 Adapt to changes in task runner handles
Chromium change:

https://source.chromium.org/chromium/chromium/src/+/77f1571d91009e29ea0f13498a61d35bafd06818

commit 77f1571d91009e29ea0f13498a61d35bafd06818
Author: Sean Maher <spvw@chromium.org>
Date:   Thu Dec 15 03:52:15 2022 +0000

    task posting v3: refactor task runner handles in blink

    This CL changes calls to methods of [...]TaskRunnerHandle to its
    new implementation, [...]TaskRunner::CurrentDefaultHandle. This is
    more or less just a large search-and-replace, with a few touchups.

    This was done by a combination of automated tooling and manual changes.

    The tooling used was as follows:
    Python: https://paste.googleplex.com/5578989061013504
    Shell: https://paste.googleplex.com/5686798511505408

    Bug: 1026641
2023-02-22 06:29:23 -05:00
Mikhail f65a55198f Enable some Brave features for pref testing (#16661)
* Enable some Brave features for pref testing
* Fix working with kComponentUpdater switch
* Fix format after rebasing
* check enable_speedreated flag
* Add speedreader buildflags.h
* Fix gn check
* Fix review issues
* Add the test to brave/android/android_browser_tests.gni
2023-02-01 21:22:29 +07:00