To avoid copy/pasting of the same code in `BraveLocationBarQRDialogFragment` and `BraveSyncScreensPreference`, the common code related to qr code reading was moved to `QRCodeCameraManager` class.
New Tab Takeover (NTT) ads should have no relation to Rewards. This PR
ensures that NTT ads are shown even if Rewards is disabled by
policy/feature or OFAC-blocked, since the sponsored images component is
not served to OFAC countries.
Remov Super Referrals. The feature is no longer supported or used, and
this cleanup helps reduce unused code and simplify the overall system as
part of https://github.com/brave/brave-browser/issues/44403.
Chromium changes:
https://chromium.googlesource.com/chromium/src/+/a6364151203138d43e7f3b75faf5a1c0aefebafa
commit a6364151203138d43e7f3b75faf5a1c0aefebafa
Author: Mark Schillaci <mschillaci@google.com>
Date: Thu Oct 23 10:55:10 2025 -0700
[Bookmarks Bar] Make the default location the bookmark bar when visible
This CL updates the implementation of saving bookmarks in Clank so that
when the bookmark bar is visible, we save to the bar by default instead
of the Mobile Bookmarks folder, per specs.
With the CL, we update the BookmarkUtils class to save new bookmarks
to the bookmark bar when the bookmark bar is visible and the user has
not already selected a location, i.e. we are updating the default
location only from the "Mobile" to "Desktop" (i.e. bookmark bar)
folder. This change only applies to NORMAL type bookmarks, and not
other items such as reading list or price trackers.
We update the behavior of setting the last used parent (folder) to
no longer update when the default folder is used. We do this to account
for the case where a user bookmarks a page (which goes into Mobile
Bookmarks), then shows the bookmark bar, and bookmarks a new page. If
we save the location after the first bookmark event, then the next
event with the bookmark bar visible would not save to the bookmark bar.
We do want it to save to the bookmark bar though, because the user
didn't explicitly choose the default location the previous time. Once
the user picks a new location, then that location is used going forward.
We overload the method to add new bookmarks to include a boolean for the
bookmark bar visibility, and one that mimics the original without the
parameter. For instances where this is not relevant (e.g. adding a new
bookmark from the tab list), we will not use the bookmark bar visibility
check because the bar cannot be visible in that case.
Bug: 444468570
Change-Id: I691736736a269e889b00f512efac338dc69c4947
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7063535
Commit-Queue: Mark Schillaci <mschillaci@google.com>
Reviewed-by: Brandon Wylie <wylieb@google.com>
Reviewed-by: Wenyu Fu <wenyufu@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1534454}
Chromium changes:
https://chromium.googlesource.com/chromium/src/+/023128ed40ef043a55ef085be41c92ba52f366ca
commit 023128ed40ef043a55ef085be41c92ba52f366ca
Author: Hidehiko Abe <hidehiko@chromium.org>
Date: Mon Oct 20 20:31:22 2025 -0700
Fix payment Add Card fragment "cancel" stack behavior.
Opening Add Card fragment wrongly wiped the fragment back stack.
This CL add a flag to keep the stack and put the fragment on top
of the stack. Then, add the flag on opening Add Card fragment.
BUG=452828634
TEST=Tryjob. On Dut, open "Paymen methods > Add payment method",
and made sure the detailed title behavior and the cancel button.
Change-Id: Ie5caefa814f54bb3a0430350852f3ce550fe2281
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7053182
Reviewed-by: Wenyu Fu <wenyufu@chromium.org>
Commit-Queue: Hidehiko Abe <hidehiko@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1532719}
Chromium changes:
https://chromium.googlesource.com/chromium/src/+/01d95e61ef62d60b47ceb398266ad098f99589cd
commit 01d95e61ef62d60b47ceb398266ad098f99589cd
Author: Jinsuk Kim <jinsukkim@chromium.org>
Date: Thu Oct 16 18:20:54 2025 -0700
[mtb-cct] Add metrics for the effect of the delayed Message request
We were showing CPA over Message for Reader Mode by putting all the
Message display requests (ReaderModeManager #tryShowingPrompt) on hold
until we get a CPA display request (ReaderModeManager#
onContextualPageActionShown), only then decide what to do i.e.
if CPA will be shown then do not show Message, or if CPA button is
hidden, call #tryShowingPrompt again to display Message.
This caused Message UI to be displayed not when it was requested,
but some time later, at which point certain conditions might have
changed. We're interested in how often this delayed request can
fail due to the changes in the conditions in the meantime. This CL
adds a couple of histograms that let us know the stats.
Bug: 452029995
Change-Id: Id86478d15d7426ff53c05cf4a59214b08ac55bb2
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7040031
Commit-Queue: Jinsuk Kim <jinsukkim@chromium.org>
Reviewed-by: Theresa Sullivan <twellington@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1531166}
Upstream is rolling out new `Bookmarks Bar` feature that is controlled from their `Appearance` settings.
So here we merge our `Appearance` settings with theirs to have all new features there with upstream's logic of when they are supposed to be available.
Chromium changes:
https://chromium.googlesource.com/chromium/src/+/df2378696a4b27302afda4f38e1dad262896233c
commit df2378696a4b27302afda4f38e1dad262896233c
Author: Mark Schillaci <mschillaci@google.com>
Date: Fri Oct 3 12:21:53 2025 -0700
[Bookmarks Bar] Update field trial config
This CL updates the bookmarks bar field trial config to include Top
Controls Refactor and removes the standalone entry of the same.
Bug: N/A
Change-Id: I9c6b4b0eab4b32132e547457f52e3ed540eb355a
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7008653
Reviewed-by: Theresa Sullivan <twellington@chromium.org>
Commit-Queue: Mark Schillaci <mschillaci@google.com>
Auto-Submit: Mark Schillaci <mschillaci@google.com>
Commit-Queue: Theresa Sullivan <twellington@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1524918}
Warning fixed:
../../brave/android/java/org/chromium/chrome/browser/password_manager/settings/PasswordSettings.java:290: Warning: Missing space between "fragment" on the previous line and "argument," here? Resulting string is "fragmentargument,". [TextConcatSpace]
+ "argument, but none was provided.";
Chromium changes:
https://chromium.googlesource.com/chromium/src/+/cb981d31a11e2ad9d9d519e2d790e12e1fedfa3c
commit cb981d31a11e2ad9d9d519e2d790e12e1fedfa3c
Author: Masa Fujita <massan@google.com>
Date: Thu Oct 9 20:03:59 2025 -0700
flyout: a11y: Allow users to control flyout menus with keyboard
This CL adds the ability for the user to use the keyboard to control the
flyout menus.
When the user selects an item with arrow keys and decides to proceed,
the `View`'s click listeneris called. We capture this and run the flyout
logic when necessary.
This CL also makes it so that `ListMenuItemAdapter` sets up the view to
use both the delegate and the click listener upon click.
Bug: 447103380
Change-Id: I4560508cdfe63fab553e44478bb48d3ed528caca
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6978443
Reviewed-by: Peter Conn <peconn@chromium.org>
Reviewed-by: Ted Choc <tedchoc@chromium.org>
Reviewed-by: Jenna Himawan <jhimawan@google.com>
Commit-Queue: Masa Fujita <massan@google.com>
Cr-Commit-Position: refs/heads/main@{#1527899}
Chromium changes:
https://chromium.googlesource.com/chromium/src/+/8e0ca53362ef330a49b98c7add3a7857fc82405e
commit 8e0ca53362ef330a49b98c7add3a7857fc82405e
Author: Martin Šrámek <msramek@chromium.org>
Date: Tue Oct 7 11:40:45 2025 -0700
Remove the kLinkedServicesSetting disabled code on Desktop and Android
Since the feature has been launched.
Apart from removing many references to the feature, flag, and tests, we're also adapting the ManageSyncSettings code from the previous approach (where the old strings were set in the XML file and the new strings programmatically overwritten in the Java code) to one where the strings are simply set in the XML file.
We're not removing the equivalent codepaths on iOS, where it hasn't launched yet.
Bug: 343132001
Change-Id: I8b92689b67db9485e87dd99657a32f1601277553
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7006398
Reviewed-by: Rainhard Findling <rainhard@chromium.org>
Commit-Queue: Martin Šrámek <msramek@chromium.org>
Reviewed-by: Marc Treib <treib@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1526439}
Chromium changes:
https://chromium.googlesource.com/chromium/src/+/e9da334545f4152c14f5e60b2209b89ae7f49d9b
commit e9da334545f4152c14f5e60b2209b89ae7f49d9b
Author: Xi Han <hanxi@google.com>
Date: Fri Oct 3 14:58:20 2025 -0700
[Theme] Refactor initialization of NtpCustomizationConfigManager.
In this CL, we split the initialization of NtpCustomizationConfigManager:
- For customized colors: move to maybeInitializeColorTheme() and it is
triggered when listener is added which can provide the current
Activity's context. This is because a colorId could return different
color value in light|dark modes.
- For customized images: initialization remains in the constructor.
This is a refactoring CL without any behaviour changes.
Bug: 423579377
Change-Id: I9852565c0d4042fa4f0a4970756823ad88e6dd10
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7003871
Reviewed-by: Xinyi Ji <xinyiji@chromium.org>
Commit-Queue: Xi Han <hanxi@chromium.org>
Reviewed-by: Wenyu Fu <wenyufu@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1525042}
Remove Android Super Referrals. The feature is no longer supported or
used, and this cleanup helps reduce unused code and simplify the overall
system as part of https://github.com/brave/brave-browser/issues/44403.
Resets the overflow main menu to the top every time is shown. Modifications are applied using bytecode manipulations as we needed to modify upstream class `AppMenuHandlerImpl`.
Here we remove the original interfaces and move them directly to the places they are used.
Interfaces are still genereric, replacing them to a specific interfaces should be done when these parts of code are touched.
In addition, in this PR were fixed presubmit warnings in the files that were touched.
Introduces a unified Wallet-fragment architecture that centralizes how Brave's Android wallet UI talks to WalletModel, manages pending transactions, and stays in sync with keyring state.
[Android] Adds kBraveFreshNtpAfterIdleExpirement experiment flag.
That commit adds the flag with parameters and a functionality
to use cached flags on Android.
Resolves: https://github.com/brave/brave-browser/issues/50567
Previously, the import/export icons were not correctly tinted when the
Android OS was set to dark mode.
To correct this, the icons no longer use a hard-coded fill colour and an
iconTint property is applied in order to leverage the built-in support
that Chromium has for automatically adjusting icons for light/dark mode.
The icons have also been replaced with the upload/download SVG paths
from the brave/leo repo.
Resolvesbrave/brave-browser#50232