Commit Graph
77654 Commits
Author SHA1 Message Date
Claudio DeSouza ea653acd4e [cr148] SetInitialSyncFeatureSetupComplete dropped unused arg
Chromium changes:
https://chromium.googlesource.com/chromium/src/+/448b9a0247edbe13101ad734f58b0e9792d6064b

commit 448b9a0247edbe13101ad734f58b0e9792d6064b
Author: Tanmoy Mollik <triploblastic@google.com>
Date:   Thu Apr 2 05:25:50 2026 -0700

    Remove unused method param in SyncUserSettings

    Bug: 347710361
    Change-Id: Ie08884a8a8d4d37d1f6e8b91f2200f1d4d6bf948
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7715580
    Commit-Queue: Tanmoy Mollik <triploblastic@google.com>
    Reviewed-by: Marc Treib <treib@chromium.org>
    Cr-Commit-Position: refs/heads/main@{#1609128}
2026-04-27 12:00:59 +01:00
AlexeyBarabash 7a2e7fb904 [cr148][Android] Adjusted tabSupplier at HubManagerImpl.ctor
Now it is NullableObservableSupplier, missed old change

Chromium change:
https://source.chromium.org/chromium/chromium/src/+/416a61c418c152a7a7ae568d89302e5ecb6e4a3d

commit 416a61c418c152a7a7ae568d89302e5ecb6e4a3d
Author: Andrew Grieve <agrieve@chromium.org>
Date:   Tue Dec 2 14:13:59 2025 -0800

    Android: Split ObservableSupplier into Nullable / Monotonic / NonNull variants

    The goal is to use proper @Nullable annotations with
    ObservableSuppliers.

    To achieve this, we use interfaces that define nullness:
     * (Settable)NullableObservableSupplier
     * (Settable)ObservableSupplier <-- monotonic
     * (Settable)NonNullObservableSupplier

    And we have ObservableSupplierImpl implement all of them.

    In order to make this migration manageable, I've marked the interfaces
    as @NullUnmarked, and will fix annotations in batches until they
    can be marked @NullMarked.

    This CL includes a batch in order to test out the new interfaces (and
    because many were necessary to make the change).

    Monotonic suppliers are by far the most common afaict, so that's why
    the non-prefixed ObservableSupplier is the monotonic one (that, and
    because "Monotonic" is a mouthful).

    One implication of this approach is that we'll never have:
       ObservableSupplier<@Nullable Foo>
    We'd have instead:
       NullableObservableSupplier<Foo>

    Having the nullness in the interface rather than in the generic
    allows for defining toNonNull() only on monotonic suppliers, and
    simplifies the implementation.

    Bug: 455874046
    Change-Id: Id48e235b9ff16a5b21a9c1199863150d17c22736
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7206746
    Commit-Queue: Andrew Grieve <agrieve@chromium.org>
    Reviewed-by: Calder Kitagawa <ckitagawa@chromium.org>
    Owners-Override: Andrew Grieve <agrieve@chromium.org>
    Cr-Commit-Position: refs/heads/main@{#1553094}
2026-04-27 12:00:59 +01:00
AlexeyBarabash 89c6075667 [cr148][Android] HubManagerImpl.ctor changed
New arg bottomSheetController

Chromium change:
https://source.chromium.org/chromium/chromium/src/+/b8c4e05efe17b2949004e620b9b81c7ec0ce4f71

commit b8c4e05efe17b2949004e620b9b81c7ec0ce4f71
Author: Calder Kitagawa <ckitagawa@chromium.org>
Date:   Wed Apr 1 14:34:42 2026 -0700

    [Hub][Archived] Tweak additional margin offsets

    For Hub
    - If bottom toolbar enabled apply correct bottom sheet offsets.

    For Archived Tabs
    - Offset the snackbar above the close all button.

    Bug: 491514883
    Change-Id: Ib985af97cf6001700012894fdd03ebd0705a606a
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7717783
    Commit-Queue: Calder Kitagawa <ckitagawa@chromium.org>
    Reviewed-by: Brandon Wylie <wylieb@google.com>
    Cr-Commit-Position: refs/heads/main@{#1608780}
2026-04-27 12:00:59 +01:00
AlexeyBarabash 81ff3a21f2 [cr148][Android] Fix divider preference removed by upstream in SiteSettings
Upstream removed the `divider` preference from the screen when
`isSettingsContainmentEnabled()` is true. Our order-adjustment code in
`configureBravePreferences` relied on it being present, causing a null
assert failure.

Drop the divider lookup/ordering entirely and shift
`permission_autorevocation` order directly after the last Brave pref.

Chromium change:
https://source.chromium.org/chromium/chromium/src/+/3e7c1090fe6836b828c58f6ce31ef786aebce69a

commit 3e7c1090fe6836b828c58f6ce31ef786aebce69a
Author: Gazal <agazal@google.com>
Date:   Tue Sep 30 14:10:19 2025 -0700

    [Settings containment]  Remove unwanted dividers in Site Settings and All Sites pages

    Before: https://screenshot.googleplex.com/9nQ28EheaL6E5yR.png
    After: https://screenshot.googleplex.com/87LzVJaFcqxX2DU.png

    Bug: 433576895, 439725777
    Change-Id: I55cf2f6a88d108d19c9fcc0be199194ee08bbe91
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6998571
    Commit-Queue: Wenyu Fu <wenyufu@chromium.org>
    Reviewed-by: Wenyu Fu <wenyufu@chromium.org>
    Auto-Submit: Gazal Agarwal <agazal@google.com>
    Cr-Commit-Position: refs/heads/main@{#1523141}
2026-04-27 12:00:59 +01:00
AlexeyBarabash 99ebb5a603 [cr148][Android] Removed preferences we don't need
BraveMainSettingsFragmentTest#testPreferenceCount caught
2 more prefs we don't want:
- settings_promo_card
- manage_sync

The change below is probably responsible for exposing them

Chromium change:
https://source.chromium.org/chromium/chromium/src/+/1ea4b48ea68982cd81a4a3a6f8bad6e8839789bd

commit 1ea4b48ea68982cd81a4a3a6f8bad6e8839789bd
Author: Josef Raska <josefraska@google.com>
Date:   Wed Mar 18 07:41:06 2026 -0700

    [HoT][Autofill] - Launch HoT screen in Settings

    - Launching an empty screen for now.
    - Video from the test: https://screencast.googleplex.com/cast/NDU3ODE5MTk5MjY4NDU0NHxhNGViM2JiYy1kOQ
    - More tests and user action reporting comes in crrev.com/c/7653458

    Bug: 482994356
    Change-Id: Ib3ae426846faaff85e2fd69da6d04078d7a54b6f
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7653140
    Reviewed-by: Julia Sobiech <jsobiech@google.com>
    Reviewed-by: Jinsuk Kim <jinsukkim@chromium.org>
    Reviewed-by: Abe Boujane <boujane@google.com>
    Reviewed-by: Timofey Chudakov <tchudakov@google.com>
    Commit-Queue: Josef Raska <josefraska@google.com>
    Cr-Commit-Position: refs/heads/main@{#1601279}
2026-04-27 12:00:59 +01:00
AlexeyBarabash 949d29fb70 [cr148][Android] Chromium refactored NewTabPageCoordinator
Chromium change:
https://source.chromium.org/chromium/chromium/src/+/f85df3955cb3bcc7d90cf0af71458e5cad9d45cc

1. NewTabPage.initializeMainView renamed to
   initializeFeedSurfaceProvider
2. Some code from NewTabPage.initializeMainView
   was moved to c-tor

commit f85df3955cb3bcc7d90cf0af71458e5cad9d45cc
Author: Xi Han <hanxi@google.com>
Date:   Mon Mar 30 09:06:59 2026 -0700

    [NtpRefactor] Polish NewTabPageCoordinator.

    1. Move several parameters passed in NewTabPageCoordinator#initialize()
       to the constructor. This allows to set multiple member variables as
       final variables.
    2. Add missing @Nullable to member variables and add null check in
       code for them. This includes: mSearchBoxCoorinator, mUiConfig etc.
    3. Re-arange the sequencings in #destroy(): the last created object is
       destroyed first.

    Bug: 487641528
    Change-Id: I935e3aee111a6fd816a228f004f7b1d9663d03d6
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7709015
    Reviewed-by: Calder Kitagawa <ckitagawa@chromium.org>
    Commit-Queue: Xi Han <hanxi@chromium.org>
    Cr-Commit-Position: refs/heads/main@{#1607137}
2026-04-27 12:00:59 +01:00
AlexeyBarabash 5a8311a89e [cr148][Android] Fix missing androidx_activity_activity_java dep in androidx_fragment_fragment
Upstream androidx roll removed `androidx_activity_activity_java` from
`androidx_fragment_fragment` deps. This broke compilation because
`Fragment.registerForActivityResult` references
`androidx.activity.result.contract.ActivityResultContract` from that lib:

  obj/.../androidx_fragment_fragment_java.ijar.jar:
  error: Cannot attach type annotations to Fragment.registerForActivityResult:
    class file for androidx.activity.result.contract.ActivityResultContract not found

Chromium change:
https://source.chromium.org/chromium/chromium/src/+/ada9ea879eecaba01f2f1ee9c3e463d3ad743ae7

commit ada9ea879eecaba01f2f1ee9c3e463d3ad743ae7
Author: chromium-autoroll <chromium-autoroll@skia-public.iam.gserviceaccount.com>
Date:   Tue Mar 31 01:34:26 2026 -0700

    Roll androidx from gC_MaDqHwyg6cLUuq... to WDVd3JIX6yvavWuXd...

    If this roll has caused a breakage, revert this CL and stop the roller
    using the controls here:
    https://autoroll.skia.org/r/androidx-chromium
    Please CC clank-build@google.com,clank-library-failures@google.com,wnwen@google.com on the revert to ensure that a human
    is aware of the problem.

    To file a bug in Chromium: https://bugs.chromium.org/p/chromium/issues/entry

    To report a problem with the AutoRoller itself, please file a bug:
    https://issues.skia.org/issues/new?component=1389291&template=1850622

    Documentation for the AutoRoller is here:
    https://skia.googlesource.com/buildbot/+doc/main/autoroll/README.md

    Cq-Include-Trybots: luci.chrome.try:android-internal-binary-size;luci.chrome.try:android-internal-rel;luci.chrome.try:test-emulator
    Tbr: clank-library-failures@google.com
    Change-Id: I4e9302dd90c5b5eaabf19cb7a31f19120354b74f
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7713047
    Bot-Commit: chromium-autoroll <chromium-autoroll@skia-public.iam.gserviceaccount.com>
    Commit-Queue: chromium-autoroll <chromium-autoroll@skia-public.iam.gserviceaccount.com>
    Cr-Commit-Position: refs/heads/main@{#1607712}
2026-04-27 12:00:59 +01:00
AlexeyBarabash 6a680adf32 [cr148][Android] DropdownCommonProperties removed
SuggestionCommonProperties is used instead

Chromium change:
https://source.chromium.org/chromium/chromium/src/+/fdf1ac3a145796f9cb1e3c8a72a639506d18a6e0

commit fdf1ac3a145796f9cb1e3c8a72a639506d18a6e0
Author: Charles Cai <charlesyc@google.com>
Date:   Mon Mar 30 17:42:35 2026 -0700

    Refactor Omnibox suggestion properties into a single common class

    This CL merges `DropdownCommonProperties` into
    `SuggestionCommonProperties`. This unifies the property definitions for
    Omnibox suggestions into a single location to simplify property model
    management. This is a pure data-layer refactoring that prepares the
    architecture for migrating UI elements like headers and group separators
    to ItemDecorations.

    Bug: 491220357
    Change-Id: Ie531dc38e9e53b5829060ae1a7f49c014061f409
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7708772
    Commit-Queue: Charles Cai <charlesyc@google.com>
    Reviewed-by: Tomasz Wiszkowski <ender@google.com>
    Reviewed-by: Sky Malice <skym@chromium.org>
    Cr-Commit-Position: refs/heads/main@{#1607509}
2026-04-27 12:00:59 +01:00
AlexeyBarabash c6fa7e3e00 [cr148][Android] MultiWindowUtils changes
- isOpenInOtherWindowSupported removed;
- isLinkNavigationToNewWindowSupported added;
- isLinkNavigationToIncognitoWindowSupported added.

Chromium change:
https://source.chromium.org/chromium/chromium/src/+/8ebbccb8137c4b44999c92edfb971e821d9365ba

commit 8ebbccb8137c4b44999c92edfb971e821d9365ba
Author: Aishwarya Rajesh <aishwaryarj@google.com>
Date:   Mon Mar 30 11:44:27 2026 -0700

    Update conditions for "Move to other window" / "Move to new window"
    visibility on context menus for link navigation

    The CL creates / updates utility methods in MultiWindowUtils to
    determine when these options are shown on a link context menu per latest
    recommendations:
    - Open in new window
    - Open in Incognito window
    - Open in other window

    The updates in this CL ensure that either "Open in new window" or "Open
    in other window" (not both) are visible on the menu. Both options will
    invoke the same codepath currently, this will be updated in fast-follow
    CLs.

    Bug: 475571336
    Change-Id: I33a597703e634a7d5cd2d6b66c4c2ca9254374ef
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7680970
    Reviewed-by: Jinsuk Kim <jinsukkim@chromium.org>
    Reviewed-by: Sirisha Kavuluru <skavuluru@google.com>
    Commit-Queue: Aishwarya Rajesh <aishwaryarj@google.com>
    Reviewed-by: Shu Yang <shuyng@google.com>
    Cr-Commit-Position: refs/heads/main@{#1607263}
2026-04-27 12:00:58 +01:00
Emerick Rogul 8664eefb03 [cr148] Modify settings search_page to adapt to new searchSettingsUpdate template
The underlying HTML template changed, so this is just adapting to the new
location of `enginesSubpageTrigger`.

Chromium changes:
https://chromium.googlesource.com/chromium/src/+/e2f64330135a11f61fb46f3e7972fc9a8d83f4fe

commit e2f64330135a11f61fb46f3e7972fc9a8d83f4fe
Author: Amelie Schneider <amelies@google.com>
Date:   Thu Mar 26 08:44:17 2026 -0700

    [Search] Hide chrome://settings/searchEngines with flag enabled

    With the flag `SearchSettingsUpdate`, the engines choices are moved
    to chrome://settings/search. Therefore, the search engines page
    should be deprecated.

    Bug: 490316576
    Change-Id: Ibe3ade1a5a25cbb2c24da37117988b290d740896
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7679398
    Commit-Queue: Amelie Schneider <amelies@google.com>
    Reviewed-by: David Roger <droger@chromium.org>
    Cr-Commit-Position: refs/heads/main@{#1605544}
2026-04-27 12:00:58 +01:00
Emerick Rogul 1bb4e3ac37 [cr148] Remove support for legacy EnumTraits signatures
Chromium changes:
https://chromium.googlesource.com/chromium/src/+/a1c3e6338a3e6742b0195c672f61ac8019ab66e4

commit a1c3e6338a3e6742b0195c672f61ac8019ab66e4
Author: Jan Wilken Dörrie <jdoerrie@chromium.org>
Date:   Tue Mar 31 09:48:53 2026 -0700

    [mojo] Remove support for legacy EnumTraits signatures

    This change removes the remaining support for the legacy Mojo EnumTraits
    FromMojom signature. Previously, these traits used a non-idiomatic
    C-style pattern with a boolean return value and an out-parameter for the
    converted value.

    To modernize the Mojo C++ bindings, all EnumTraits specializations have
    been migrated to return the converted type directly for infallible
    conversions, or wrapped in a std::optional for fallible ones. This
    update finalizes the transition by:

    - Enforcing the new return-by-value or return-by-optional signature in
      the Mojo C++ template generator.
    - Removing the legacy template branches that supported out-parameters.
    - Deleting obsolete overloads of internal helpers ConvertEnumValue and
      DeserializeEnum.
    - Migrating the final set of trait specializations across the codebase,
      including those in cc/, skia/, and ui/.

    Fixed: 483092898
    Change-Id: I7a5edc0a22157d7670e8c8f73e7db8c56a6a6964
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7712053
    Reviewed-by: Daniel Cheng <dcheng@chromium.org>
    Owners-Override: Daniel Cheng <dcheng@chromium.org>
    Auto-Submit: Jan Wilken Dörrie <jdoerrie@chromium.org>
    Commit-Queue: Daniel Cheng <dcheng@chromium.org>
    Cr-Commit-Position: refs/heads/main@{#1607926}
2026-04-27 12:00:58 +01:00
Claudio DeSouza 1a76ab3440 [cr148] perfetto categories larger than constexpr depth limits
It has now become an issue for Brave that
`PERFETTO_DEFINE_TEST_CATEGORY_PREFIXES` has grown larger enough to cause the
whole macro machinery around it to fall apart due to `constexpr` depth
evaluation limits. This change bumps constexpr-depth to 1024.

A bug has been logged with Chromium to have this tracked in upstream:
crbug.com/498698527

Chromium changes:
https://chromium.googlesource.com/chromium/src/+/7a9d0ab407d1968885a9185589bbd369401476f8

commit 7a9d0ab407d1968885a9185589bbd369401476f8
Author: Aldo Culquicondor <acondor@chromium.org>
Date:   Tue Mar 31 17:54:45 2026 -0700

    Glic: Add metrics and traces for webui initialization

    Track the time time from the web contents creation until the navigation
    commits and from then until the page load completes.

    Also added a dedicated glic category.

    Bug: 495451913
    Change-Id: I3124c26c9c630d19f381826edec192887fea43bb
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7711298
    Reviewed-by: Etienne Pierre-Doray <etiennep@chromium.org>
    Auto-Submit: Aldo Culquicondor <acondor@chromium.org>
    Commit-Queue: Aldo Culquicondor <acondor@chromium.org>
    Reviewed-by: Dan Harrington <harringtond@chromium.org>
    Reviewed-by: Roger McFarlane <rogerm@chromium.org>
    Cr-Commit-Position: refs/heads/main@{#1608223}
2026-04-27 12:00:58 +01:00
Claudio DeSouza 0b91d58de8 [cr148] Adjusting LowPriorityUserTypes() override to new location
This function's implementation has been moved from the header and into
the translation unit. This change moves the override to match that too.

Chromium changes:
https://chromium.googlesource.com/chromium/src/+/8ba91b3cd483e2a39ddc37d754e30877855bfeaf

commit 8ba91b3cd483e2a39ddc37d754e30877855bfeaf
Author: Mikel Astiz <mastiz@chromium.org>
Date:   Tue Mar 31 12:54:12 2026 -0700

    [sync] Centralize more datatype traits in a table

    Refactoring without noticeable behavioral changes: the general idea is
    that datatype-specific traits (most notably including product decisions)
    should be centralized in a configuration-like table, instead of having
    this information distributed throughout the codebase.

    This is achieved by introducing a struct, including members that
    leverage newly-introduced enums to make the information as readable as
    possible.

    Bug: None
    Change-Id: I04a9352e7ab6ddf62ad150fef7cad2a7bd96d156
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7707933
    Reviewed-by: Rohit Rao <rohitrao@chromium.org>
    Commit-Queue: Mikel Astiz <mastiz@chromium.org>
    Reviewed-by: Maksim Moskvitin <mmoskvitin@google.com>
    Cr-Commit-Position: refs/heads/main@{#1608038}
2026-04-27 12:00:58 +01:00
Claudio DeSouza b5b81a2808 [cr148] Preemtping unwanted replacement for MultiContentsView
Due to recent header additions to this class, a build error started
occurring due to an unwanted substitution.

```
../../content/public/browser/web_contents_observer.h:922:16: error: duplicate 'virtual' declaration specifier [-Werror,-Wduplicate-decl-specifier]
  922 |   virtual void OnWebContentsFocused(RenderWidgetHost* render_widget_host) {}
      |                ^
../../brave/chromium_src/chrome/browser/ui/views/frame/multi_contents_view.h:15:30: note: expanded from macro 'OnWebContentsFocused'
   15 | #define OnWebContentsFocused virtual OnWebContentsFocused
      |                              ^
1 error generated.
```

Chromium changes:
https://chromium.googlesource.com/chromium/src/+/9b1a481b8d0dab06a5c20bde25faa00cc6417c8c

commit 9b1a481b8d0dab06a5c20bde25faa00cc6417c8c
Author: Eshwar Stalin <estalin@chromium.org>
Date:   Wed Apr 1 15:50:32 2026 -0700

    [SxS] Minor cleanup of SplitTabHighlightController

    Having the delegate interface directly implemented by the view and
    passing the delegate directly into the controller class. This is more
    modular and more aligned to the design principles.

    Change-Id: I83797b7d82939ac69456852c3ca0e862132257b9
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7720599
    Reviewed-by: Steven Luong <stluong@chromium.org>
    Commit-Queue: Eshwar Stalin <estalin@chromium.org>
    Cr-Commit-Position: refs/heads/main@{#1608832}
2026-04-27 12:00:58 +01:00
Claudio DeSouza 77e983f623 [cr148] ContentSettingImageModel::ImageType now mojom generated
This changes how the entries are worded.

Chromium changes:
https://chromium.googlesource.com/chromium/src/+/7bc22e082c77b7de13cb93cdedf0f770307f4941

commit 7bc22e082c77b7de13cb93cdedf0f770307f4941
Author: Caleb Raitto <caraitto@chromium.org>
Date:   Tue Mar 31 16:07:30 2026 -0700

    Migrate ContentSettingImageModel::ImageType to Mojo

    To migrate ContentSettingImageView to WebUI, the type of the icon needs
    to be passed to the TypeScript code over Mojo.

    Currently, we're using the existing ContentSettingsType enum [0][1][2],
    which is already in Mojo. However, one issue with this is that some
    icons, specifically popups and framebusting, share the same underlying
    ContentSettingsType (specifically POPUPS).

    To address this, this CL moves the ImageType to Mojo so that it can be
    used in a subsequent CL instead of ContentSettingType.

    Put the new enum together with other new WebUI types, in
    toolbar_ui_api_data_model.mojom. Also, adopt style guide naming, kValue
    instead of VALUE, and use the implicitly-generated kMaxValue.

    [0]
    https://source.chromium.org/chromium/chromium/src/+/main:components/content_settings/core/common/content_settings_types.mojom;l=18;drc=9ca1f26b86f52739c8701e867f7f42cd01b59a0b

    [1]
    https://source.chromium.org/chromium/chromium/src/+/main:components/browser_apis/ui_controllers/toolbar/toolbar_ui_api_data_model.mojom;l=78;drc=bc6497c76dbde173025ed3cf3f9215c0949cd045

    [2]
    https://source.chromium.org/chromium/chromium/src/+/main:components/browser_apis/ui_controllers/toolbar/toolbar_ui_api.mojom;l=49;drc=c227e4729788b427eb646d080a55bce66968e5c9

    Bug: 489109708
    Change-Id: I632ae68190af90fb6eb30a73216b9caddaf58ff4
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7713352
    Reviewed-by: Joe Mason <joenotcharles@google.com>
    Commit-Queue: Caleb Raitto <caraitto@chromium.org>
    Reviewed-by: Foromo Daniel Soromou <koretadaniel@chromium.org>
    Cr-Commit-Position: refs/heads/main@{#1608161}
2026-04-27 12:00:58 +01:00
Claudio DeSouza 9cfaf652ae [cr148] PasswordManagerSettingsServiceFactory under factories
This affects how targets are added now, and a shadow file had to be
corrected.

Chromium changes:
https://chromium.googlesource.com/chromium/src/+/bd7255bd8bf88581d34c38be1b16b05f7d5703b6

commit bd7255bd8bf88581d34c38be1b16b05f7d5703b6
Author: Vasilii Sukhanov <vasilii@chromium.org>
Date:   Tue Mar 31 05:13:51 2026 -0700

    Refactor: Move PasswordManagerSettingsServiceFactory to factories/

    Moves password_manager_settings_service_factory.{h,cc} from
    //chrome/browser/password_manager/ to
    //chrome/browser/password_manager/factories/.

    Eliminates the `password_factory_headers` source_set in
    factories/BUILD.gn and wires everything cleanly to the unified
    //chrome/browser/password_manager/factories target. All internal include
    directives and BUILD.gn usages across webauthn, webid, autofill,
    ui/passwords, and actor_login were adjusted properly.

    Bug: 353332589
    Change-Id: I318230d1df39b0b849a026977f00f2d3d0047831
    Bypass-Check-License: moving the files
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7710837
    Reviewed-by: Friedrich Hauser <friedrichh@chromium.org>
    Commit-Queue: Vasilii Sukhanov <vasilii@chromium.org>
    Cr-Commit-Position: refs/heads/main@{#1607791}
2026-04-27 12:00:58 +01:00
Claudio DeSouza f47d374e15 [cr148] Patching for developer_private.idl moved
This change moves the patching to its new location. It also introduces a
new patching for the webidl representation that has been introduced
upstream, to match the idl version.

Chromium changes:
https://chromium.googlesource.com/chromium/src/+/d6fb2ac71ba993553eecb43bb5d1161ff1364fcf

commit d6fb2ac71ba993553eecb43bb5d1161ff1364fcf
Author: Tim Judkins <tjudkins@chromium.org>
Date:   Tue Mar 31 18:19:48 2026 -0700

    [Extensions] Convert developerPrivate to WebIDL

    This conversion was largely done using a detailed description of the
    conversion process passed to Gemini CLI. To double check this work, the
    file has also been copied into the converted schemas test to verify no
    functional difference in output.

    Also updated a few comments to use the new filename.

    Fixed: 493990846
    Change-Id: I50da75a21869d45a988678dd589df7f4a6c3f778
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7694979
    Commit-Queue: Tim <tjudkins@chromium.org>
    Reviewed-by: Emilia Paz <emiliapaz@chromium.org>
    Reviewed-by: Kelvin Jiang <kelvinjiang@chromium.org>
    Cr-Commit-Position: refs/heads/main@{#1608234}
2026-04-27 12:00:58 +01:00
Emerick Rogul 871fd3bb4d [cr148] Add new IDC_SHOW_READING_MODE_KEYBOARD command to Commander unit test metadata
Updated Commander unit test metadata to support the new command.

Chromium changes:
https://chromium.googlesource.com/chromium/src/+/bd8ce1fbdc3492bbdce7a9c4d8a4b022fb177a7d

commit bd8ce1fbdc3492bbdce7a9c4d8a4b022fb177a7d
Author: Martín Gómez <martinglopez@google.com>
Date:   Mon Mar 30 12:58:02 2026 -0700

    [Reading Mode] Add keyboard shortcut to open and close Reading Mode

    @robliao and @groby approved the the keyboard shortcut combination.
    The shortcut for each platform is the following:
    - Option-Command-R for Mac OS
    - Alt + Shift + R for ChromeOS, Linux and Windows

    The CL also includes the following adjustments for Reading Mode to
    support the new keyboard shortcut:

    - Add kKeyboardShortcut to the ReadAnythingOpenTrigger enum.
    - Make `ReadAnythingEntryPointController::ToggleUI` public so the
    BrowserCommandController can use the method to open/close reading mode.

    NO_IFTTT=Command is not gated on fenced frame network

    Bug: 40909577
    Change-Id: I3aea6f491b92cc882d81f9edf167ba33d7ae664e
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7684297
    Reviewed-by: Lauren Winston <lwinston@google.com>
    Reviewed-by: Darryl James <dljames@chromium.org>
    Commit-Queue: Martín Gómez <martinglopez@google.com>
    Cr-Commit-Position: refs/heads/main@{#1607320}
2026-04-27 12:00:58 +01:00
Emerick Rogul 0c5dcfcdd7 [cr148] tpcd_heuristics deleted
Removing our related overrides for `tcpd_heuristics` which was completely
deleted.

Chromium changes:
https://chromium.googlesource.com/chromium/src/+/037fbcccbcf615935481c45b6359b79c90543082

commit 037fbcccbcf615935481c45b6359b79c90543082
Author: Fiona Macintosh <fmacintosh@google.com>
Date:   Mon Mar 30 09:43:22 2026 -0700

    Delete content/browser/tpcd_heuristics

    Cleaning out obsolete 3pcd logic

    Change-Id: I151fcf473e15ea65561b9e25289d749e7a145365
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7697345
    Reviewed-by: Joshua Hood <jdh@chromium.org>
    Reviewed-by: Alexei Svitkine <asvitkine@chromium.org>
    Commit-Queue: Fiona Macintosh <fmacintosh@google.com>
    Commit-Queue: Alexei Svitkine <asvitkine@chromium.org>
    Reviewed-by: Avi Drissman <avi@chromium.org>
    Cr-Commit-Position: refs/heads/main@{#1607164}
2026-04-27 12:00:57 +01:00
Emerick Rogul a717499d70 [cr148] tab_group_editor_bubble_view.cc moved into groups subfolder
Chromium changes:
https://chromium.googlesource.com/chromium/src/+/71652909a3655cf176c20bb779af7f16a68c8ff2

commit 71652909a3655cf176c20bb779af7f16a68c8ff2
Author: Eshwar Stalin <estalin@chromium.org>
Date:   Mon Mar 30 16:41:15 2026 -0700

    Moving shared groups views into the common folder

    Moving group views shared between horizontal and vertical tab strip is
    now moved into the common groups folder. The follow-up is to have
    separate BUILD.gn files for each folder after we have things in the
    final structure.

    Bypass-Check-License: Moving existing files
    Change-Id: I830aca510c381b9d615a080c0bdd9a6f7feebf7b
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7708747
    Commit-Queue: Eshwar Stalin <estalin@chromium.org>
    Reviewed-by: Caroline Rising <corising@chromium.org>
    Cr-Commit-Position: refs/heads/main@{#1607444}
2026-04-27 12:00:57 +01:00
Claudio DeSouza 221fa38aa2 [cr148] WebString::FromASCII renamed
The naming now follows the guidelines as `WebString::FromAscii`.

Chromium changes:
https://chromium.googlesource.com/chromium/src/+/e296ed299c34488ce76fbc1cf9a93d1c7bc3f7e3

commit e296ed299c34488ce76fbc1cf9a93d1c7bc3f7e3
Author: Kent Tamura <tkent@chromium.org>
Date:   Tue Mar 31 01:47:41 2026 -0700

    Rename blink::WebString::FromASCII to FromAscii

    To follow a naming rule of Google C++ style guide.
    This CL has no behavior changes.

    Bug: 492927412
    Change-Id: I572d7e4e3382ec0f96f232f5a0e6b5fcb31cdf51
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7714579
    Reviewed-by: Fredrik Söderquist <fs@opera.com>
    Owners-Override: Kent Tamura <tkent@chromium.org>
    Auto-Submit: Kent Tamura <tkent@chromium.org>
    Commit-Queue: Fredrik Söderquist <fs@opera.com>
    Cr-Commit-Position: refs/heads/main@{#1607722}
2026-04-27 12:00:57 +01:00
Claudio DeSouza f264962178 [cr148] String::FromUTF8 deleted
This has been replaced with `String::FromUtf8`

Chromium changes:
https://chromium.googlesource.com/chromium/src/+/b4e81f96c4c5e4117bfab65a7771d9673a49512b

commit b4e81f96c4c5e4117bfab65a7771d9673a49512b
Author: Kent Tamura <tkent@chromium.org>
Date:   Mon Mar 30 21:49:18 2026 -0700

    WTF: Remove deprecated String::FromUTF8()

    This CL removes the deprecated String::FromUTF8() methods and updates
    all call sites to use String::FromUtf8() instead. The FromUTF8 methods
    were deprecated as they simply forwarded to FromUtf8 and are no longer
    needed.

    Bug: 492927412
    Change-Id: I0055b96becdb1a48b73e982ea959dcab67219384
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7707740
    Reviewed-by: Daniel Cheng <dcheng@chromium.org>
    Commit-Queue: Kent Tamura <tkent@chromium.org>
    Cr-Commit-Position: refs/heads/main@{#1607616}
2026-04-27 12:00:57 +01:00
Claudio DeSouza ba107e707c [cr148] TabStrip::UpdateHoverCard override fixed
The signature for this function has changed, but this is for arguments
that just get passed along.

Chromium changes:
https://chromium.googlesource.com/chromium/src/+/e8ce621318d56bf293ef01a6d045e097d2cc6440

commit e8ce621318d56bf293ef01a6d045e097d2cc6440
Author: Dominic Austria <dominicaustria@google.com>
Date:   Tue Mar 31 00:35:28 2026 -0700

    Add Hover Cards to Tab Group Headers in Horizontal Tab Strip

    We show the hover card for tab group headers for the horizontal tab
    strip, on mouse hover or focus. Like in the vertical tab case, we
    generate the card data right before showing the hover card because the
    tab group does not get updated when one of its tabs are deleted or
    navigated to a new page, see bug 497896801

    Bug: 493242596
    Change-Id: I3244fcb110fdb67f7c027297baff2f94ad5d45be
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7701562
    Reviewed-by: Caroline Rising <corising@chromium.org>
    Commit-Queue: Dominic Austria <dominicaustria@google.com>
    Reviewed-by: Eshwar Stalin <estalin@chromium.org>
    Cr-Commit-Position: refs/heads/main@{#1607691}
2026-04-27 12:00:57 +01:00
Claudio DeSouza fc79d495fc [cr148] Password store factory headers moved
These are now under chrome/browser/password_manager/factories/.

Chromium changes:
https://chromium.googlesource.com/chromium/src/+/36cbca739593ae8b8cb3c01ac064b875f310bc15

commit 36cbca739593ae8b8cb3c01ac064b875f310bc15
Author: Vasilii Sukhanov <vasilii@chromium.org>
Date:   Tue Mar 31 04:21:53 2026 -0700

    Move password store factories from //chrome/browser to the smaller
    target in chrome/browser/password_manager/factories/BUILD.gn.

    Bug: 353332589
    Change-Id: I3b19769f13af5db892c4dda03ab3dca40ef2dbd5
    Bypass-Check-License: Moving files, no license changes.
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7702977
    Reviewed-by: Friedrich Hauser <friedrichh@chromium.org>
    Commit-Queue: Vasilii Sukhanov <vasilii@chromium.org>
    Cr-Commit-Position: refs/heads/main@{#1607775}
2026-04-27 12:00:57 +01:00
AlexeyBarabash 9ba38450f8 [cr148][Android] Fixed NPE at JNI_HomeModulesRankingHelper_*
The commit mentioned below made showMagicStack() unconditional,
exposing the latent null-check bug in home_modules_ranking_helper.cc.

Chromium change:
https://source.chromium.org/chromium/chromium/src/+/637ab3d33243fac8b3ee914db8357adb2fd79464

commit 637ab3d33243fac8b3ee914db8357adb2fd79464
Author: Xi Han <hanxi@google.com>
Date:   Wed Mar 25 09:04:27 2026 -0700

    [MagicStack] Clean up feature MagicStackAndroid.

    In this CL, we clean up all remaining code for the feature flag of
    magic stack. The feature has been launched long time ago.

    Bug: 41485537, 487641528, 493844946
    Change-Id: Ifc8d51793b942974ea0366656c0d4878b9578857
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7697213
    Reviewed-by: Xinyi Ji <xinyiji@chromium.org>
    Reviewed-by: Michael Thiessen <mthiesse@chromium.org>
    Commit-Queue: Xi Han <hanxi@chromium.org>
    Cr-Commit-Position: refs/heads/main@{#1604869}
2026-04-27 12:00:57 +01:00
Claudio DeSouza 72dd4cd8b8 [cr148] ProfileResetterMockObject modularised
This function is only used by our browser tests, and this change adds
the new target as one of the deps.

Chromium changes:
https://chromium.googlesource.com/chromium/src/+/b319111eaa8bee49a347e981c6a83afe9b663dc7

commit b319111eaa8bee49a347e981c6a83afe9b663dc7
Author: Orko Garai <orko@igalia.com>
Date:   Mon Mar 30 12:36:51 2026 -0700

    Finish modularizing c/b/profile_resetter

    Move the remaining profile_resetter sources from c/b to
    c/b/profile_resetter target.

    Bug: 353332589
    Change-Id: I419b9d63e331df48415e18ee2479563dea09069d
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7703695
    Commit-Queue: Orko Garai <orko@igalia.com>
    Reviewed-by: Darryl James <dljames@chromium.org>
    Cr-Commit-Position: refs/heads/main@{#1607306}
2026-04-27 12:00:57 +01:00
Claudio DeSouza 72424452e3 [cr148] Fixing ShouldTrackBrowser call in TabSearchPageHandler
There has been a recent refactor that requires passing `profile_` into
this function.

Chromium changes:
https://chromium.googlesource.com/chromium/src/+/7c978026959ee9a0d177f01adcd306da3687cbf1

commit 7c978026959ee9a0d177f01adcd306da3687cbf1
Author: David Yeung <dayeung@chromium.org>
Date:   Mon Mar 30 14:57:04 2026 -0700

    [TabSearch] Refactor event listening to use TabStrip API

    CL migrates the event observation in TabSearchPageHandler to use the
    TabStripAPI instead of TabStripModel's observer. While this CL has
    changed how we're receiving the events, the handling of those events are
    the same.

    The previous TabSearchPageHandler only cares about 3 events:
    - when a tab is removed
    - when a split tab is removed
    - when the tab data changes

    The main focus of this CL is transitioning those events and making sure
    they're received.

    Key changes:
    - Replace BrowserTabStripTracker with TabStripServiceAggergator
    - Replace OnTabStripModelChanged and OnTabChangedAt with OnTabEvents
    - Created helper methods to split OnTabEvents into: OnNodesRemoved, OnTabsRemoved, OnTabDataChanged, OnSplitTabRemoved

    Bug: 477686464
    Change-Id: Ida32de4e3e25bb7209c823c0904df7b431491a97
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7697541
    Reviewed-by: Tom Lukaszewicz <tluk@chromium.org>
    Commit-Queue: David Yeung <dayeung@chromium.org>
    Cr-Commit-Position: refs/heads/main@{#1607402}
2026-04-27 12:00:57 +01:00
Claudio DeSouza 3f0d50471a [cr148] kReportPakFileIntegrity deleted
This feature flag is deleted and with it the code it was guarding.

Chromium changes:
https://chromium.googlesource.com/chromium/src/+/a7f5d81c8c7ed8f53c46e8394c983c949c2aeaff

commit a7f5d81c8c7ed8f53c46e8394c983c949c2aeaff
Author: Daniel Rubery <drubery@chromium.org>
Date:   Mon Mar 30 12:13:56 2026 -0700

    Deprecate SafeBrowsing.PakIntegrity.*

    Safe Browsing isn't monitoring this anymore, so remove the code.

    OBSOLETE_HISTOGRAMS=Removed 2026-03 due to lack of use
    Fixed: 495423545

    Change-Id: I1c0a2ad7f137545cf4e9b0be48d1e60a9a98aef2
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7694830
    Reviewed-by: Varun Khaneja <vakh@chromium.org>
    Reviewed-by: Tom Lukaszewicz <tluk@chromium.org>
    Commit-Queue: Daniel Rubery <drubery@chromium.org>
    Cr-Commit-Position: refs/heads/main@{#1607289}
2026-04-27 12:00:57 +01:00
Claudio DeSouza 71a73115fb [cherry-pick][cr148] OS simulator wipe and boot reliability cherry picks landed
Chromium changes:
https://chromium.googlesource.com/chromium/src/+/39a1c1938c9f9c3bcf36f015172600018169b6db
https://chromium.googlesource.com/chromium/src/+/b4a2fed9285188d8a5957d87f72db7162ff90026

commit 39a1c1938c9f9c3bcf36f015172600018169b6db
Author: Yue She <yueshe@google.com>
Date:   Wed Mar 18 11:57:28 2026 -0700

    Improve iOS simulator wipe and boot reliability in test runners

    - Reorders simulator teardown steps: `kill_simulators` is now invoked
    after wiping/erasing data instead of before. This ensures that any stray processes or simulators left in a bad state from the wipe/erase
    procedures are properly cleaned up.
    - Adds a retry mechanism for simulator pre-booting.

    Bug: 441038354
    Change-Id: I8f94649d195a3804d9392dafdcde6dbd2c88ec88
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7676077
    Reviewed-by: Will Yeager <wyeager@google.com>
    Commit-Queue: Yue She <yueshe@google.com>
    Cr-Commit-Position: refs/heads/main@{#1601444}

commit b4a2fed9285188d8a5957d87f72db7162ff90026
Author: Yue She <yueshe@google.com>
Date:   Mon Mar 23 10:21:18 2026 -0700

    [iOS] Cache dyld before pre-booting simulators

    This seems to help with simulator booting failures. The workaround is also suggested in https://developer.apple.com/documentation/xcode-release-notes/xcode-26_1-release-notes

    Bug: 441038354
    Change-Id: I5bc754bddbd98a580ed16b1245cf43a267807908
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7691682
    Commit-Queue: Yue She <yueshe@google.com>
    Reviewed-by: Will Yeager <wyeager@google.com>
    Cr-Commit-Position: refs/heads/main@{#1603573}
2026-04-27 12:00:56 +01:00
Claudio DeSouza a07ff0019d [cr148][cherry-pick] kPasswordDateLastFilled temp disabling landed
Chromium changes:
https://chromium.googlesource.com/chromium/src/+/ac7e26b7bfb7579956b52b25c0af08383559dd35

commit ac7e26b7bfb7579956b52b25c0af08383559dd35
Author: Martin Kreichgauer <martinkr@google.com>
Date:   Tue Mar 17 10:50:02 2026 -0700

    Temporarily disable kPasswordDateLastFilled as mitigation

    Bug: 485895402
    Change-Id: I03aca033dd6978731035e04be54d6d23ab0c98d4
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7674577
    Auto-Submit: Martin Kreichgauer <martinkr@google.com>
    Reviewed-by: Mohamed Amir Yosef <mamir@chromium.org>
    Commit-Queue: Martin Kreichgauer <martinkr@google.com>
    Cr-Commit-Position: refs/heads/main@{#1600656}
2026-04-27 12:00:56 +01:00
AlexeyBarabash e87cb4745b [cr148][Android] new_tab_page_layout.xml updated
Chromium changes:
https://source.chromium.org/chromium/chromium/src/+/6edb0dee6f14aeeafbd19b9140c94f6be4a83fd6

commit 6edb0dee6f14aeeafbd19b9140c94f6be4a83fd6
Author: Xi Han <hanxi@google.com>
Date:   Fri Mar 27 11:35:29 2026 -0700

    [Composeplate] Clean up the composeplate v1 layout [1/2]

    In this CL, we remove the V1 layout composeplate_view_layout.xml, and
    clean up ViewBinder and Properties.

    Bug: 421944848, 487641528
    Change-Id: Ia9d21a2069ce5e7ff9d7c3d622d8893973950774
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7708412
    Commit-Queue: Xi Han <hanxi@chromium.org>
    Reviewed-by: Xinyi Ji <xinyiji@chromium.org>
    Cr-Commit-Position: refs/heads/main@{#1606375}

https://source.chromium.org/chromium/chromium/src/+/8ddf6bb4ecfeed84c878714b5990b8d02ef21193

commit 8ddf6bb4ecfeed84c878714b5990b8d02ef21193
Author: Xi Han <hanxi@google.com>
Date:   Fri Mar 27 11:35:44 2026 -0700

    [Composeplate] Clean up the composeplate v1 layout [2/2]

    Rename composeplate_view_layout_v2.xml to composeplate_view_layout.xml.

    Bug: 421944848, 487641528
    Bypass-Check-License: the layout is renamed from composeplate_view_layout_v2.xml.
    Change-Id: I09c6ebd91a992d2d7c343074ef64e4afe1626ae9
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7708273
    Reviewed-by: Xinyi Ji <xinyiji@chromium.org>
    Commit-Queue: Xi Han <hanxi@chromium.org>
    Cr-Commit-Position: refs/heads/main@{#1606376}
2026-04-27 12:00:56 +01:00
AlexeyBarabash 727a295757 [cr148][Android] MultiInstanceOrchestratorImpl.moveTabsToWindowByIdChecked signature changed
New arg bringToFront

Chromium change:
https://source.chromium.org/chromium/chromium/src/+/15b60a7f51080d75b18d37f6bbf83a7a39151c15

commit 15b60a7f51080d75b18d37f6bbf83a7a39151c15
Author: Lijin Shen <lazzzis@google.com>
Date:   Fri Mar 27 14:06:30 2026 -0700

    tabs.move on Android: allow moving tabs in the background

    Fixes a behavior discrepancy between Android and Desktop when moving
    tabs between windows via the extension API (e.g., chrome.tabs.move).
    Currently on Android, the destination window is always brought to the
    front

    Added a bringToFront boolean parameter to conditionally controls the
    call to ApiCompatibilityUtils.moveTaskToFront(). This defaults to true
    such that this CL won't bring any behavior change. This sets false in
    TabModelSelectorImpl.java such that tab.move won't activate the
    destination window.

    Bug: 495516043
    Change-Id: I60e7b42794c240023669afcf3cd15f8031c16ded
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7685707
    Reviewed-by: Linyu He <linyuh@google.com>
    Reviewed-by: Aishwarya Rajesh <aishwaryarj@google.com>
    Commit-Queue: Lijin Shen <lazzzis@google.com>
    Reviewed-by: Calder Kitagawa <ckitagawa@chromium.org>
    Cr-Commit-Position: refs/heads/main@{#1606471}
2026-04-27 12:00:56 +01:00
AlexeyBarabash 0bad49cb8e [cr148][Android] Conflict on BraveTabCollectionTabModelImplBase.isTabModelRestored()
Upstream moved isTabModelRestored() into the TabGroupModelFilter
interface, which TabModel now extends, making the previously
private method in BraveTabCollectionTabModelImplBase conflict
with the now-public interface method.

Error message:
../../brave/android/java/org/chromium/chrome/browser/tabmodel/BraveTabCollectionTabModelImplBase.java:61: error: isTabModelRestored() in BraveTabCollectionTabModelImplBase cannot implement isTabModelRestored() in TabGroupModelFilter
    private boolean isTabModelRestored() {
                    ^
  attempting to assign weaker access privileges; was public

Chromium change:
https://source.chromium.org/chromium/chromium/src/+/401697a07af594e4420ef1f4998d13f43533874f

commit 401697a07af594e4420ef1f4998d13f43533874f
Author: Jingping Sun <jings@microsoft.com>
Date:   Fri Mar 27 10:23:32 2026 -0700

    [TabModel] Make TabModel extend TabGroupModelFilter

    As part of combining these interfaces this CL is the first step.

    * IncognitoTabGroupModelFilterImpl is inlined onto
      IncognitoTabModelImpl.
    * StubTabGroupModelFilterImpl is no longer required.
    * EmptyTabModel now has stub methods for TabGroupModelFilter.

    BYPASS_LARGE_CHANGE_WARNING: all stub methods

    Bug: 463685717, 476144237, 493519189
    Change-Id: Ia27c3a355f92da60cdb3c1e8ac9fabe892b49bc0
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7684470
    Reviewed-by: Calder Kitagawa <ckitagawa@chromium.org>
    Reviewed-by: Sky Malice <skym@chromium.org>
    Commit-Queue: Jingping Sun <jings@microsoft.com>
    Cr-Commit-Position: refs/heads/main@{#1606333}
2026-04-27 12:00:56 +01:00
AlexeyBarabash 943dba183b [cr148][Android] ButtonData classes moved to a dedicated button subpackage
Chromium change:
https://source.chromium.org/chromium/chromium/src/+/04f42625a4b2b0ee463088ef65d72022191bc7bb

commit 04f42625a4b2b0ee463088ef65d72022191bc7bb
Author: Dan Polanco <polardz@google.com>
Date:   Fri Mar 27 11:49:00 2026 -0700

    [Actions] Move ButtonData classes to a dedicated button subpackage

    This change moves ActionButtonData, DelegateButtonData,
    DisplayButtonData, DrawableButtonData, TabSwitcherDrawableButtonData,
    FullButtonData and ResourceButtonData into a new ui/actions/button
    subpackage.

    Bypass-Check-License: Moving files.
    Bug: 483096892
    Change-Id: Ibdb1c3898fc022c5eef29177ba71656480e9914d
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7706022
    Reviewed-by: Calder Kitagawa <ckitagawa@chromium.org>
    Commit-Queue: Dan Polanco <polardz@google.com>
    Auto-Submit: Dan Polanco <polardz@google.com>
    Cr-Commit-Position: refs/heads/main@{#1606387}
2026-04-27 12:00:56 +01:00
AlexeyBarabash 57c3071714 [cr148][Android] SnackbarView/SnackbarManager ctor changed
Chromium change:
https://source.chromium.org/chromium/chromium/src/+/36279bf7b4c5515fa7a64d8f462faed9f5da4e7b

commit 36279bf7b4c5515fa7a64d8f462faed9f5da4e7b
Author: Calder Kitagawa <ckitagawa@chromium.org>
Date:   Fri Mar 27 14:07:42 2026 -0700

    [Snackbar] Drive snackbar bottom margin externally

    This should have no behavioral changes!

    Goals
    - Decoupling of E2E from Snackbar.
    - Allow bottom margin to be driven by the owning component to take into
      account other UI elements without coupling to Snackbar code e.g.
      (bottomsheets, etc.)
    - In future allow pushParentViewToOverrideStack to customize the bottom
      margin appropriately for a different container context.

    Bug: 491514883
    Change-Id: I8c71f3122ad809e6459892a4b216ce4f8a0a8a19
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7689191
    Reviewed-by: Charles Hager <clhager@google.com>
    Reviewed-by: Aishwarya Rajesh <aishwaryarj@google.com>
    Commit-Queue: Calder Kitagawa <ckitagawa@chromium.org>
    Cr-Commit-Position: refs/heads/main@{#1606473}
2026-04-27 12:00:56 +01:00
Emerick Rogul a1192cc6d0 [cr148][ios] SendTabToSelfModel::AddEntry takes a NavigationHistory param now
Chromium changes:
https://chromium.googlesource.com/chromium/src/+/19645de672e801f850aec8480cc120467e9ab758

commit 19645de672e801f850aec8480cc120467e9ab758
Author: Michael Tatarski <mtatarski@google.com>
Date:   Sat Mar 28 04:03:32 2026 -0700

    [STTS] Add navigation history support to STTS model

    To support sending a tab's full back/forward history (similar to "Tabs
    from other devices"), this CL updates the Send-Tab-To-Self core model,
    entry definition, and sync bridge.

    A dedicated `NavigationHistory` struct has been introduced to cleanly
    encapsulate a vector of `sessions::SerializedNavigationEntry` objects
    along with the current navigation index. The `SendTabToSelfEntry` class
    is updated to hold this struct and serialize/deserialize it to and from
    `sync_pb::SendTabToSelfSpecifics`.

    Bug: 491743359
    Change-Id: Ia87854b09b09bbc2aa01726ca6fba12a169beb06
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7694034
    Reviewed-by: Marc Treib <treib@chromium.org>
    Commit-Queue: Michael Tatarski <mtatarski@google.com>
    Cr-Commit-Position: refs/heads/main@{#1606668}
2026-04-27 12:00:56 +01:00
Emerick Rogul 713b531349 [cr148][ios] Use span in base::HexEncode
Chromium changes:
https://chromium.googlesource.com/chromium/src/+/da12fb560afc4519dc2ae1f831714008fda90bac

commit da12fb560afc4519dc2ae1f831714008fda90bac
Author: raorui <ruirao565@gmail.com>
Date:   Fri Mar 27 03:27:18 2026 -0700

    Code Health: Use span in base::HexEncode

    - Migrate HexEncode callers from raw pointer+length to controlled views:
      - strings: std::string_view or base::as_byte_span
      - IOBuffer: io_buffer()->span()
      - struct bytes: reinterpret_cast + base::span<const uint8_t>
    - Clamp adapter MAC length before slicing to avoid OOB when encoding
    - Remove pointer-based HexEncode overload and associated TODO
    - Update tests and fuzzers to new interfaces

    Bug: 40284755
    Change-Id: I3352bb1a795b2f10cf5a8bedb432fe7d4bdf7290
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7607319
    Reviewed-by: Ken Buchanan <kenrb@chromium.org>
    Owners-Override: Colin Blundell <blundell@chromium.org>
    Commit-Queue: Colin Blundell <blundell@chromium.org>
    Reviewed-by: Colin Blundell <blundell@chromium.org>
    Cr-Commit-Position: refs/heads/main@{#1606068}
2026-04-27 12:00:56 +01:00
Emerick Rogul 58ce5bde97 [cr148] Reanchor override since ShouldDisplayVerticalTabs was deleted
Chromium changes:
https://chromium.googlesource.com/chromium/src/+/6943dc09af6f5b5445c30d3088f3477289ef2617

commit 6943dc09af6f5b5445c30d3088f3477289ef2617
Author: Dana Fried <dfried@chromium.org>
Date:   Fri Mar 27 13:12:34 2026 -0700

    [Animation] Move [vertical] tab strip to new animation system

    This should maintain rough feature parity with the previous
    functionality, which is to say there are still serious issues.

    It does add internal curved corners when the tab strip bumps out on
    hover.

    Here are the follow-up items:
     - Curved corners on a custom corners background should receive a stroke
       if either adjacent edge has a stroke, not if both do.
     - Need to handle transition from expanded on hover (or expanding on
       hover) to uncollapse without snapping the VTS back to collapsed at
       the beginning.
     - Whatever other visual adjustments are needed, including a drop shadow.

    Bug: 493594309, 493593592
    Change-Id: I5ab4d9599af991f774001f32cd6a58f030e3895c
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7681390
    Reviewed-by: Eshwar Stalin <estalin@chromium.org>
    Commit-Queue: Dana Fried <dfried@chromium.org>
    Auto-Submit: Dana Fried <dfried@chromium.org>
    Reviewed-by: Caroline Rising <corising@chromium.org>
    Cr-Commit-Position: refs/heads/main@{#1606426}
2026-04-27 12:00:56 +01:00
Emerick Rogul b566bb1a9f [cr148] Fix PartitionedHostStateMapTest.MultiplePartitions test by scoping AutoReset per partition
This test broke in 148 due to changes in `AutoReset` move-assignment, which made
reusing a single `AutoReset` for multiple partition changes unreliable. This
change gives each partition its own scoped `AutoReset` object, ensuring RAII
restores the previous partition correctly.

Chromium changes:
https://chromium.googlesource.com/chromium/src/+/31aff9a0d6ab3e4e2e8bf928d9a9146def053018

commit 31aff9a0d6ab3e4e2e8bf928d9a9146def053018
Author: gate kibr <gkvjwa@gmail.com>
Date:   Fri Mar 27 03:04:37 2026 -0700

    Add move-assignment for AutoReset

    Existing code only cover move construction. Add coverage for move
    assignment to an AutoReset that already manages a variable, which should
    restore the old value before taking ownership of the new one.

    Change-Id: If652a12b967f7f93fb827916fbab0765f58d2dee
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7684905
    Reviewed-by: Jan Wilken Dörrie <jdoerrie@chromium.org>
    Commit-Queue: Jan Wilken Dörrie <jdoerrie@chromium.org>
    Reviewed-by: Lei Zhang <thestig@chromium.org>
    Cr-Commit-Position: refs/heads/main@{#1606058}
2026-04-27 12:00:55 +01:00
Emerick Rogul 9fcd3a4b8b [cr148] Use AutocompleteInput::SanitizeString to sanitize omnibox match description/contents
Autocomplete match strings are now checked against the more stringent
sanitization that this function provides.

Chromium changes:
https://chromium.googlesource.com/chromium/src/+/701d98351457eb9db829972cacfdb8c876f09f3e

commit 701d98351457eb9db829972cacfdb8c876f09f3e
Author: Stepan Khapugin <stkhapugin@chromium.org>
Date:   Thu Mar 26 13:02:39 2026 -0700

    [Omnibox] Sanitize page title for verbatim matches.

    OmniboxClient->GetTitle() may be unsanitized (and it is on iOS).
    Sanitize it before using in the verbatim match.

    Bug: 375522403
    Change-Id: I554f06c39cd36fc3c91f66468842372862bbfe6e
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6074727
    Auto-Submit: Stepan Khapugin <stkhapugin@chromium.org>
    Commit-Queue: Kyle Horimoto <khorimoto@chromium.org>
    Reviewed-by: Justin Donnelly <jdonnelly@chromium.org>
    Reviewed-by: manuk hovanesian <manukh@chromium.org>
    Reviewed-by: Kyle Horimoto <khorimoto@chromium.org>
    Cr-Commit-Position: refs/heads/main@{#1605726}
2026-04-27 12:00:55 +01:00
AlexeyBarabash 1b73a5930c [cr148] Code Health: Use span in base::HexEncode
https://source.chromium.org/chromium/chromium/src/+/da12fb560afc4519dc2ae1f831714008fda90bac

commit da12fb560afc4519dc2ae1f831714008fda90bac
Author: raorui <ruirao565@gmail.com>
Date:   Fri Mar 27 03:27:18 2026 -0700

    Code Health: Use span in base::HexEncode

    - Migrate HexEncode callers from raw pointer+length to controlled views:
      - strings: std::string_view or base::as_byte_span
      - IOBuffer: io_buffer()->span()
      - struct bytes: reinterpret_cast + base::span<const uint8_t>
    - Clamp adapter MAC length before slicing to avoid OOB when encoding
    - Remove pointer-based HexEncode overload and associated TODO
    - Update tests and fuzzers to new interfaces

    Bug: 40284755
    Change-Id: I3352bb1a795b2f10cf5a8bedb432fe7d4bdf7290
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7607319
    Reviewed-by: Ken Buchanan <kenrb@chromium.org>
    Owners-Override: Colin Blundell <blundell@chromium.org>
    Commit-Queue: Colin Blundell <blundell@chromium.org>
    Reviewed-by: Colin Blundell <blundell@chromium.org>
    Cr-Commit-Position: refs/heads/main@{#1606068}
2026-04-27 12:00:55 +01:00
AlexeyBarabash 56fcfc94c6 [cr148] Moved profile_manager.h to the new target
Chromium change:
https://source.chromium.org/chromium/chromium/src/+/fa00b2f67d04301745eb9556038bc7290ce50079

commit fa00b2f67d04301745eb9556038bc7290ce50079
Author: Vasilii Sukhanov <vasilii@chromium.org>
Date:   Fri Mar 27 08:21:30 2026 -0700

    Move profile_manager.h to the new target.

    Many targets depend on this include. The CL moves it from chrome/browser/BUILD.gn to a smaller target. As a side effect the following files can also be moved:
    - "profile_metrics.*"
    - "profile_shortcut_manager.*"
    - "profile_destroyer.*"
    - "profile_manager.cc"

    AX-Relnotes: n/a.

    Bug: 353332589
    Change-Id: Iecaeebf68b32d6af39306ff6a755a97881cfe3fa
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7055004
    Commit-Queue: Vasilii Sukhanov <vasilii@chromium.org>
    Reviewed-by: Alex Ilin <alexilin@chromium.org>
    Cr-Commit-Position: refs/heads/main@{#1606230}
2026-04-27 12:00:55 +01:00
AlexeyBarabash a8276272eb [cr148][Android] Emulator android_33_google_atd_x64.textpb was removed
We used it to run the tests.
Switched to `android_33_google_apis_x64`

Chromium change:
https://source.chromium.org/chromium/chromium/src/+/d791b7eb1211d53a879106167bc2da94f4fc00dc

commit d791b7eb1211d53a879106167bc2da94f4fc00dc
Author: Haiyang Pan <hypan@google.com>
Date:   Tue Mar 24 09:39:37 2026 -0700

    Remove all the Android atd images and unused Android FYI builders.

    We use the same image for CI builders as well as for developers' local
    debugging to makes it easier to repro issues. But atd images are
    not good options for local debugging as it disables the rendering.
    So remove all atd images for now.

    The following Android fyi builders have been paused or duped with
    non-fyi builders so remove them as well:
    * android-10-x86-fyi-rel
    * android-12-x64-fyi-rel
    * android-12l-x64-fyi-dbg
    * android-13-x64-fyi-rel
    * android-14-arm64-fyi-rel
    * android-14-x64-fyi-rel
    * android-15-x64-fyi-rel

    Bug: 347759127, 40930660, 40263601
    Change-Id: I3a65e885ec8513e8b1747b98570ae57c4348302e
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7694232
    Reviewed-by: Ben Pastene <bpastene@chromium.org>
    Commit-Queue: Haiyang Pan <hypan@google.com>
    Cr-Commit-Position: refs/heads/main@{#1604195}
2026-04-27 12:00:55 +01:00
AlexeyBarabash ad6cedaf22 [cr148][Android] Changes at ShareDelegateImpl.ctor
New args:
signinAndHistorySyncActivityLauncher;
activityResultTracker;
modalDialogManagerSupplier;
snackbarManager.

Chromium change:
https://source.chromium.org/chromium/chromium/src/+/0af385e0296806bb278d2c4b73e7e652d310def5

commit 0af385e0296806bb278d2c4b73e7e652d310def5
Author: quacksort <quacksort@google.com>
Date:   Tue Mar 24 06:59:26 2026 -0700

    [Signin][Android] Migrate send tab to self sign-in to activity-less flow

    This is part of the effort to reduce reliance on
    SigninAndHistorySyncActivity by sign-in entry points.
    go/activityless-signin

    The new flow uses BottomSheetSigninAndHistorySyncCoordinator to handle
    the sign-in process, avoiding the need to launch a separate activity.

    Bug: 478814334
    Change-Id: I0448875de416af5e3e48d1ac5f2eeb3d18e6efcc
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7647173
    Reviewed-by: Anton Goncharenko <agonch@google.com>
    Commit-Queue: Lucia Giorgi <quacksort@google.com>
    Cr-Commit-Position: refs/heads/main@{#1604087}
2026-04-27 12:00:55 +01:00
AlexeyBarabash 9ad9019b60 [cr148][Android] Move MultiInstanceManager#openUrlInOtherWindow() to
MultiInstanceOrchestrator

Removed multiInstanceManager from:
- NewTabPage.ctor;
- LocationBarCoordinator.ctor;
- LocationBarMediator.ctor;
- ToolbarManager.ctor.

Chromium change:
https://source.chromium.org/chromium/chromium/src/+/8d0821cb4bcc840ed271bbc209298da535523a62

commit 8d0821cb4bcc840ed271bbc209298da535523a62
Author: Aishwarya Rajesh <aishwaryarj@google.com>
Date:   Wed Mar 25 10:58:50 2026 -0700

    [MIR] Move MultiInstanceManager#openUrlInOtherWindow() to
    MultiInstanceOrchestrator

    This will make the implementation accessible from
    non-ChromeTabbedActivity contexts.

    Also remove now unused MultiInstanceManager dependency from impacted
    classes.

    Bug: 494034921
    Change-Id: I9eb1b871476a82a49a6e7f294e542d58a913c3fe
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7695235
    Reviewed-by: Sirisha Kavuluru <skavuluru@google.com>
    Reviewed-by: Ted Choc <tedchoc@chromium.org>
    Commit-Queue: Aishwarya Rajesh <aishwaryarj@google.com>
    Cr-Commit-Position: refs/heads/main@{#1604957}
2026-04-27 12:00:55 +01:00
AlexeyBarabash 922b41d912 [cr148][Android] Removed tabContentManagerSupplier from NewTabPage.ctor
Chromium change:
https://source.chromium.org/chromium/chromium/src/+/637ab3d33243fac8b3ee914db8357adb2fd79464

commit 637ab3d33243fac8b3ee914db8357adb2fd79464
Author: Xi Han <hanxi@google.com>
Date:   Wed Mar 25 09:04:27 2026 -0700

    [MagicStack] Clean up feature MagicStackAndroid.

    In this CL, we clean up all remaining code for the feature flag of
    magic stack. The feature has been launched long time ago.

    Bug: 41485537, 487641528, 493844946
    Change-Id: Ifc8d51793b942974ea0366656c0d4878b9578857
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7697213
    Reviewed-by: Xinyi Ji <xinyiji@chromium.org>
    Reviewed-by: Michael Thiessen <mthiesse@chromium.org>
    Commit-Queue: Xi Han <hanxi@chromium.org>
    Cr-Commit-Position: refs/heads/main@{#1604869}
2026-04-27 12:00:55 +01:00
AlexeyBarabash f2fb800992 [cr148][Android] Cleanup MultiWindowUtils#getInstanceCountWithFallback()
Chromium change:
https://source.chromium.org/chromium/chromium/src/+/a8ce63dc2a3db3dbe93ef44747e21fae654f35ec

commit a8ce63dc2a3db3dbe93ef44747e21fae654f35ec
Author: Aishwarya Rajesh <aishwaryarj@google.com>
Date:   Thu Mar 26 13:51:59 2026 -0700

    [RWM] Cleanup MultiWindowUtils#getInstanceCountWithFallback()

    Rename the method to getInstanceCount() and use this to replace current
    callsites of getIncognitoInstanceCount() so that the latter can be
    removed.

    Bug: 461553972
    Change-Id: I0eb9cc5c48394312310bce90c2a7e1970249d816
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7700123
    Reviewed-by: Sirisha Kavuluru <skavuluru@google.com>
    Commit-Queue: Aishwarya Rajesh <aishwaryarj@google.com>
    Cr-Commit-Position: refs/heads/main@{#1605765}
2026-04-27 12:00:55 +01:00
AlexeyBarabash 22660beed3 [cr148][Android] Replace ConfirmationDialogHelper with ActionConfirmationDialog
Chromium change:
https://source.chromium.org/chromium/chromium/src/+/f3ba4ddfcd5f49cded342e0fe965cb2dee67f5bc

commit f3ba4ddfcd5f49cded342e0fe965cb2dee67f5bc
Author: Piotr Kotynia <piotrkotynia@google.com>
Date:   Wed Mar 25 06:50:24 2026 -0700

    [Android] Replace ConfirmationDialogHelper with ActionConfirmationDialog

    This CL deprecates the ConfirmationDialogHelper and replaces its usage
    inside the keyboard accessory with the generic ActionConfirmationDialog
    from browser_ui.

    End-to-end integration testing for the deletion dialog flow inside the
    keyboard accessory will be added in a follow-up CL.

    Bug: 440257087
    Change-Id: I3844d662d5295eb670792384f4ea403a675661d3
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7666141
    Reviewed-by: Friedrich Hauser <friedrichh@chromium.org>
    Commit-Queue: Piotr Kotynia <piotrkotynia@google.com>
    Reviewed-by: Sky Malice <skym@chromium.org>
    Auto-Submit: Piotr Kotynia <piotrkotynia@google.com>
    Cr-Commit-Position: refs/heads/main@{#1604763}
2026-04-27 12:00:55 +01:00
AlexeyBarabash ef91d54bdd [cr148][Android] kMagicStackAndroid removed and enabled
Chromium commit:
https://source.chromium.org/chromium/chromium/src/+/637ab3d33243fac8b3ee914db8357adb2fd79464

commit 637ab3d33243fac8b3ee914db8357adb2fd79464
Author: Xi Han <hanxi@google.com>
Date:   Wed Mar 25 09:04:27 2026 -0700

    [MagicStack] Clean up feature MagicStackAndroid.

    In this CL, we clean up all remaining code for the feature flag of
    magic stack. The feature has been launched long time ago.

    Bug: 41485537, 487641528, 493844946
    Change-Id: Ifc8d51793b942974ea0366656c0d4878b9578857
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7697213
    Reviewed-by: Xinyi Ji <xinyiji@chromium.org>
    Reviewed-by: Michael Thiessen <mthiesse@chromium.org>
    Commit-Queue: Xi Han <hanxi@chromium.org>
    Cr-Commit-Position: refs/heads/main@{#1604869}
2026-04-27 12:00:54 +01:00
Emerick Rogul 3485b23513 [cr148] Ensure BraveShortcutsProviderTest initializes the HistoryService
This initialization is now required and enforced by upstream.

Chromium changes:
https://chromium.googlesource.com/chromium/src/+/aac2a1dad2e0f384b3df12e985e2a21b329cf438

commit aac2a1dad2e0f384b3df12e985e2a21b329cf438
Author: Sylvain Defresne <sdefresne@chromium.org>
Date:   Tue Mar 17 02:29:59 2026 -0700

    Ensure ShortcutsProviderTest initializes the HistoryService

    In production it is not possible to get access to an HistoryService
    that has not been initialized, so change ShortcutsProviderTest to
    call HistoryService::Init(...) on the fake service it creates.

    This will allow changing HistoryService to prevent registering
    observers after the call to the Shutdown() method.

    Bug: 481635191
    Change-Id: Iedd4300792209b0c11bdc052a6c4a30b1759889a
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7670577
    Reviewed-by: Nihar Majmudar <niharm@google.com>
    Commit-Queue: Sylvain Defresne <sdefresne@chromium.org>
    Cr-Commit-Position: refs/heads/main@{#1600402}
2026-04-27 12:00:54 +01:00