Commit Graph
100 Commits
Author SHA1 Message Date
Claudio DeSouza 2d41d7aa65 [cr149] UpdateDevtools simplified
Chromium changes:
https://chromium.googlesource.com/chromium/src/+/01ff99168958e53d2a5a0e7bef3e14d13cbcfe96

commit 01ff99168958e53d2a5a0e7bef3e14d13cbcfe96
Author: Thomas Lukaszewicz <tluk@chromium.org>
Date:   Sun Apr 19 17:11:57 2026 -0700

    Simplify DevtoolsUIController

    DevtoolsUIController::UpdateDevtools is updated to only take the
    target web contents - instead of the container view and web contents.

    The implementation assumes that the container view was the host of
    web contents, however this can be easily resolved from just the
    web contents itself within the DevtoolsUIController and mitigates
    the risk of the params drifting.

    Removes a DeprecatedLayoutImmediately() call from
    BrowserView::UpdateDevTools() which has been in the codebase since
    2009 and is no longer necessary. Instead layout is invalidated if
    necessary.

    Note: DevtoolsUIController::UpdateDevTools() still needs to return
    whether a layout is required as BrowserView may need to perform
    a synchronous layout operation separately from marking the layout
    as invalid.

    Bug: 502745808
    Change-Id: I627a45dca0c975a5d422b2aedfa75bd4de8134a2
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7766514
    Reviewed-by: Darryl James <dljames@chromium.org>
    Commit-Queue: Thomas Lukaszewicz <tluk@chromium.org>
    Cr-Commit-Position: refs/heads/main@{#1617272}
2026-05-22 16:25:05 -04:00
Claudio DeSouza ba22be5679 [cr149] GetAvatarToolbarButton() deleted
Chromium changes:
https://chromium.googlesource.com/chromium/src/+/6c9ccc1c9d53aee2a221dc37dab54b167fb3e09c

commit 6c9ccc1c9d53aee2a221dc37dab54b167fb3e09c
Author: Russ Hamilton <behamilton@google.com>
Date:   Fri Apr 17 09:50:05 2026 -0700

    [WebUI Avatar] Migrate callers to AvatarToolbarButtonInterface

    This CL migrates all usages of
    ToolbarButtonProvider::GetAvatarToolbarButton() to use
    GetAvatarToolbarButtonInterface() instead. This is part of the effort to
    make toolbar components framework-agnostic and support both Views and
    WebUI implementations of the avatar button.

     - Remove the deprecated GetAvatarToolbarButton() method from the
       ToolbarButtonProvider interface.
     - Remove implementations of GetAvatarToolbarButton() in ToolbarView
       and WebAppFrameToolbarView.
     - Migrate all production and test callers to use the interface and its
       framework-agnostic methods.
     - Update includes across the codebase to prefer
       avatar_toolbar_button_interface.h over avatar_toolbar_button.h where
       the concrete type is no longer needed.

    Bug: 470045174
    Change-Id: Iff0147b3ba6eb354a893115be873eb27808150f8
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7727070
    Reviewed-by: Ryan Sultanem <rsult@google.com>
    Auto-Submit: Russ Hamilton <behamilton@google.com>
    Commit-Queue: Russ Hamilton <behamilton@google.com>
    Cr-Commit-Position: refs/heads/main@{#1616641}
2026-05-22 16:25:04 -04:00
Claudio DeSouza ca98abdf61 [cr149] Reanchoring clipboard_host_impl.h override
Chromium changes:
https://chromium.googlesource.com/chromium/src/+/32963b6b2e6886a83b4c5bb02d938f209bb54400

commit 32963b6b2e6886a83b4c5bb02d938f209bb54400
Author: Ahmed Raslan <rslan@google.com>
Date:   Thu Apr 16 11:24:18 2026 -0700

    Unify ClipboardEndpoint creation

    This change centralizes the logic for creating ui::DataTransferEndpoint
    and content::ClipboardEndpoint instances by moving the helper functions
    CreateDataEndpoint and CreateClipboardEndpoint into
    content/public/browser/clipboard_types.h

    Bug: 410835513
    Change-Id: I42461c2551fa3ddbd479f4c2c47c1d18417eeba7
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7748266
    Reviewed-by: Bo Liu <boliu@chromium.org>
    Reviewed-by: Dominique Fauteux-Chapleau <domfc@chromium.org>
    Reviewed-by: Nasko Oskov <nasko@chromium.org>
    Commit-Queue: Ahmed Raslan <rslan@google.com>
    Cr-Commit-Position: refs/heads/main@{#1616013}
2026-05-22 16:25:04 -04:00
Claudio DeSouza 1a56382987 [cr149] Fixing @typescript-eslint/no-explicit-any
Chromium changes:
https://chromium.googlesource.com/chromium/src/+/3de9c88e2d8b97d42020b68371f93044d366d3f4

commit 3de9c88e2d8b97d42020b68371f93044d366d3f4
Author: dpapad <dpapad@chromium.org>
Date:   Fri Apr 17 12:17:03 2026 -0700

    WebUI: Fix violations of @typescript-eslint/no-explicit-any, part 5.

    Bug: 494464740
    Change-Id: I5dc211b93b5c7dcd6cb61fb92451b0d4d11d3742
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7769450
    Reviewed-by: Fred Shih <ffred@chromium.org>
    Commit-Queue: Demetrios Papadopoulos <dpapad@chromium.org>
    Cr-Commit-Position: refs/heads/main@{#1616760}
2026-05-22 16:25:04 -04:00
Claudio DeSouza ee21a68e88 [cr149] Correcting how PageActionPassKey is passed around
This follows the upstream change to change the type alias.

Chromium changes:
https://chromium.googlesource.com/chromium/src/+/2e10893b38937e012a704bcfc3fe0d31e2a5e6a6

commit 2e10893b38937e012a704bcfc3fe0d31e2a5e6a6
Author: Kaan Alsan <alsan@chromium.org>
Date:   Fri Apr 17 08:39:41 2026 -0700

    Refactor PageActionController to decouple from PageActionView

    Change-Id: Ibbe900b983c980e7af502e89eda530082015dd4c
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7755799
    Commit-Queue: Kaan Alsan <alsan@chromium.org>
    Reviewed-by: Muhammad Salmaan <musalmaan@chromium.org>
    Cr-Commit-Position: refs/heads/main@{#1616595}
2026-05-22 16:25:04 -04:00
Claudio DeSouza 3b6b6f1a07 [cr149] window_finder.h moved under dragging/
Chromium changes:
https://chromium.googlesource.com/chromium/src/+/65bd2a06e6234336695791f408fa1de79f6d9c83

commit 65bd2a06e6234336695791f408fa1de79f6d9c83
Author: Alison Gale <agale@chromium.org>
Date:   Thu Apr 16 11:46:19 2026 -0700

    Move window finder into dragging subfolder

    Bug: 475568167
    Change-Id: I21eb567e5c5b69bd83be735d2d81b271ea75274b
    Bypass-Check-License: files moved
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7762340
    Commit-Queue: Alison Gale <agale@chromium.org>
    Reviewed-by: Vince Lugli <lugli@google.com>
    Cr-Commit-Position: refs/heads/main@{#1616028}
2026-05-22 16:25:03 -04:00
Claudio DeSouza dd6dae5f42 [cr149] tab_strip_observer.h moved under shared/
Chromium changes:
https://chromium.googlesource.com/chromium/src/+/0c88dc794ab433f902d690ed5d793b535c79c8c2

commit 0c88dc794ab433f902d690ed5d793b535c79c8c2
Author: Alison Gale <agale@chromium.org>
Date:   Thu Apr 16 13:17:30 2026 -0700

    Move shared tabs files to shared subdirectory

    Bug: 475568167
    Change-Id: I3099c519174a4860701c64c46c61bea0f3801234
    Bypass-Check-License: Moving files
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7763412
    Auto-Submit: Alison Gale <agale@chromium.org>
    Reviewed-by: Mitsuru Oshima <oshima@chromium.org>
    Reviewed-by: Vince Lugli <lugli@google.com>
    Commit-Queue: Mitsuru Oshima <oshima@chromium.org>
    Cr-Commit-Position: refs/heads/main@{#1616085}
2026-05-22 16:25:03 -04:00
Claudio DeSouza 00d7fccd8a [cr149] Several fixes around NativeFrameViewLinux
With this CL moving things around, this has caused a lot small issues
in several places where unwanted replecaments started to occur, or other
types of failures, like name collision.

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

commit e0f759f728337f7df2f808ebc2c1eefffab5c5e3
Author: Athul Iddya <athul@iddya.com>
Date:   Thu Apr 16 17:08:08 2026 -0700

    Add a native frame view for non-browser widgets on Linux

    Introduces NativeFrameViewLinux, a FrameViewLinux subclass that provides
    native client-side decorations for non-browser widgets on Linux. This
    class is preferred over FrameViewLinux for the GTK UI theme. Its
    implementation mirrors BrowserFrameViewLinuxNative, using
    WindowFrameProvider for frame decoration and NavButtonProvider for
    window control buttons.

    NativeFrameViewLayoutLinux similarly extends FrameViewLayoutLinux to
    override frame and button layout decisions using WindowFrameProvider and
    NavButtonProvider. Shared utilities between NativeFrameViewLinux and
    BrowserFrameViewLinuxNative are extracted into frame_view_utils_linux.

    WindowFrameProvider and NativeTheme gain options for non-browser frame
    rendering: top area height, padding and border APIs, and bottom border
    drawing in the top area, to match the appearance of native GTK dialogs.

    Bug: 396190939
    Cq-Include-Trybots: luci.chromium.try:linux-wayland-mutter-rel,linux-wayland-weston-rel
    Change-Id: Iee94d493a1751176c38d793e7efcfe47271bc909
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7615475
    Commit-Queue: Thomas Anderson <thomasanderson@chromium.org>
    Reviewed-by: Thomas Anderson <thomasanderson@chromium.org>
    Auto-Submit: Athul Iddya <athul@iddya.com>
    Reviewed-by: David Yeung <dayeung@chromium.org>
    Cr-Commit-Position: refs/heads/main@{#1616203}
2026-05-22 16:25:03 -04:00
Claudio DeSouza b4591a82e3 [cr149] Update BraveUpdateClientConfig ctor calls
`ChromeUpdateClientConfig` has dropped the `url_override` arg. Th change
also removes an unnecessary patch for `ChromeUpdateClientConfig` which
was causing issues.

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

commit e585ba13ce9ed5667530a315850713c1eeb3cd20
Author: Joshua Pawlicki <waffles@chromium.org>
Date:   Fri Apr 17 07:58:49 2026 -0700

    extension updater: Use update_client updater for sync/policy installs

    Previously, the first install of an extension (when driven by sync or
    policy) would still default to using the old extension update stack.
    This isn't necessary; the new stack can be used in this case.

    This relands
    https://chromium-review.googlesource.com/c/chromium/src/+/7545510
    The original CL is patchset 1. Since then,
    ExternalProviderImplTest.InAppPayments (which isn't covered by CQ)
    is fixed, which was unfortunately a bigger job than I hoped.

    Fixed: 482088398, 500551122
    Change-Id: Iee3d224770896f5abc288d1facbd492f67ef9554
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7769170
    Reviewed-by: Owen Min <zmin@chromium.org>
    Auto-Submit: Joshua Pawlicki <waffles@chromium.org>
    Commit-Queue: Joshua Pawlicki <waffles@chromium.org>
    Reviewed-by: Devlin Cronin <rdevlin.cronin@chromium.org>
    Cr-Commit-Position: refs/heads/main@{#1616564}
2026-05-22 16:25:03 -04:00
Claudio DeSouza fed5a45acd [cr149] Upgrading Apple toolchain to 26.4
Chromium changes:
https://chromium.googlesource.com/chromium/src/+/8e4be4466c32838b84511a1f65130f6b7ac097f6

commit 8e4be4466c32838b84511a1f65130f6b7ac097f6
Author: Devon Loehr <dloehr@google.com>
Date:   Fri Apr 17 09:48:46 2026 -0700

    mac: Switch to Xcode 26.4 (17E192) and SDK 26.4 (25E236)

    Additionally, update the instructions in xcode_binaries.yaml to make it
    more convenient to compute the version numbers during the cipd upload.

    Bug: 503714260
    Change-Id: Ie981bc0d96118293194300ef8506070d91331847
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7726997
    Reviewed-by: Hans Wennborg <hans@chromium.org>
    Reviewed-by: Mark Mentovai <mark@chromium.org>
    Commit-Queue: Devon Loehr <dloehr@google.com>
    Cr-Commit-Position: refs/heads/main@{#1616640}
2026-05-22 16:25:02 -04:00
Claudio DeSouza b8aa9d78ba [cr149] components/os_crypt/sync deleted
Remove any remnants of os_crypt/sync from Brave - all Brave code has
already been transitioned to async OSCrypt.

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

commit a4cab4afb48c24f4557ec6dc7cbd1bd192fb65b4
Author: Tom Anderson <thomasanderson@chromium.org>
Date:   Fri Apr 17 15:10:45 2026 -0700

    [OSCrypt] Remove sync backend

    R=thestig

    Fixed: 447372315
    Change-Id: I56d58c4326aa74f540370cd1daf6cf974b15d4d6
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7765593
    Reviewed-by: Lei Zhang <thestig@chromium.org>
    Commit-Queue: Thomas Anderson <thomasanderson@chromium.org>
    Cr-Commit-Position: refs/heads/main@{#1616892}
2026-05-22 16:25:02 -04:00
Claudio DeSouza affc277c28 [cr149] Use //components/one_time_tokens/core/common:features
These features were moved under common

Chromium changes:
https://chromium.googlesource.com/chromium/src/+/3fe669867f71303e859e010511f565c174eff5ff

commit 3fe669867f71303e859e010511f565c174eff5ff
Author: Thomas Lottermann <lottermann@google.com>
Date:   Wed Apr 8 02:25:11 2026 -0700

    [OTP] Make One Time Token service URL configurable via FeatureParam.

    This change replaces the hardcoded URL for fetching email one-time
    tokens with a FeatureParam, allowing the service URL to be modified
    through Finch. The default value of the FeatureParam is set to the
    original URL.

    Bug: b:478840986
    Fixed: b:478840986
    Change-Id: I7e0f0a48c1d8fd735d451fc741635a5cfc4460ee
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7711420
    Commit-Queue: Thomas Lottermann <lottermann@google.com>
    Reviewed-by: Matthias Körber <koerber@google.com>
    Reviewed-by: Trang Mai <trangm@google.com>
    Cr-Commit-Position: refs/heads/main@{#1611334}
2026-05-22 16:25:02 -04:00
Claudio DeSouza cffb249298 [cr149] FindLastActiveWithProfile returning BWI
This change allows a couple of more places to be migrated to
`BrowserWindowInterface`.

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

commit e8d0df41d25900497716dd3a4b070c6436fa1a97
Author: Kun Wang <kunwang@microsoft.com>
Date:   Wed Apr 15 23:35:39 2026 -0700

    [bedrock] Migrate FindLastActiveWithProfile Step 1

    Bug: 494010890
    Change-Id: Ie0385deeda2e2f28baf75a810ada0becf5807c78
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7753884
    Reviewed-by: Thomas Lukaszewicz <tluk@chromium.org>
    Reviewed-by: Qikai Zhong <qikaizhong@microsoft.com>
    Commit-Queue: Kun Wang <kunwang@microsoft.com>
    Cr-Commit-Position: refs/heads/main@{#1615659}
2026-05-22 16:24:59 -04:00
Claudio DeSouza 93b24be10d [cr149] //chrome/browser/password_manager introduced
This is part of the broader browser modularisation.

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

commit 9ddae426e2086192e5dcef713af29ccb535784f8
Author: Erik Chen <erikchen@chromium.org>
Date:   Wed Apr 15 17:38:39 2026 -0700

    Reland "Modularize //chrome/browser/password_manager"

    This reverts commit d781c61029b64c262748f62b5968c3ab85f4cc9f.

    Reason for revert: The revert was not necessary. Two CLs landed at the same time and caused issues:
    https://chromium-review.googlesource.com/c/chromium/src/+/7762999
    https://chromium-review.googlesource.com/c/chromium/src/+/7763756

    Both CLs were reverted. The second revert was not necessary.

    Original change's description:
    > Revert "Modularize //chrome/browser/password_manager"
    >
    > This reverts commit cbf43bd0c009932dcdd962090bfd1bd83aec840d.
    >
    > Reason for revert: Suspect culprit of tree closure https://ci.chromium.org/ui/p/chromium/builders/ci/Linux%20MSan%20Builder/119674/overview, https://ci.chromium.org/ui/p/chromium/builders/ci/Linux%20MSan%20Builder/119672/overview
    >
    > Original change's description:
    > > Modularize //chrome/browser/password_manager
    > >
    > > This change refactors the `chrome/browser/password_manager` BUILD.gn to
    > > split it into a separate `:password_manager` (headers/public interface)
    > > and `:impl` (implementation) source sets. The file listings are moved
    > > out of the top-level `chrome/browser/BUILD.gn` into the
    > > password_manager-local BUILD.gn, improving modularity. Downstream
    > > BUILD.gn files across the tree are updated to add the new dependency
    > > targets as needed.
    > >
    > > AGENT_GENERATED_CL
    > >
    > > Bug: 353332589
    > > Change-Id: I813398f6d49fc57a247663533d9707d9cd84c04f
    > > Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7763756
    > > Commit-Queue: Erik Chen <erikchen@chromium.org>
    > > Reviewed-by: Thomas Lukaszewicz <tluk@chromium.org>
    > > Cr-Commit-Position: refs/heads/main@{#1615417}
    >
    > Bug: 353332589
    > No-Presubmit: true
    > No-Tree-Checks: true
    > No-Try: true
    > Change-Id: I89659141371c73ed2bca7ce278ae052e914dd097
    > Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7765706
    > Bot-Commit: rubber-stamper@appspot.gserviceaccount.com <rubber-stamper@appspot.gserviceaccount.com>
    > Owners-Override: Anthony Cui <cuianthony@chromium.org>
    > Cr-Commit-Position: refs/heads/main@{#1615431}

    Bug: 353332589
    Change-Id: Ic15570d8da995828e705853aceadcd653e1fed49
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7766729
    Bot-Commit: rubber-stamper@appspot.gserviceaccount.com <rubber-stamper@appspot.gserviceaccount.com>
    Reviewed-by: Thomas Lukaszewicz <tluk@chromium.org>
    Commit-Queue: Erik Chen <erikchen@chromium.org>
    Commit-Queue: Thomas Lukaszewicz <tluk@chromium.org>
    Cr-Commit-Position: refs/heads/main@{#1615521}
2026-05-22 16:24:58 -04:00
Claudio DeSouza 2966bf1d7a [cr149] BookmarkBarController fetched through a static
The accessor is now gone, and `BrowserView::GetBrowserViewForBrowser` is
used in its place.

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

commit aaed67f345e86a74c60a9f666cd19fe898d23605
Author: Thomas Lukaszewicz <tluk@chromium.org>
Date:   Wed Apr 15 11:32:42 2026 -0700

    [bedrock] Move bookmark-related methods to BookmarkBarController

    This CL re-homes bookmark-related methods on BrowserWindow to the
    BookmarkBarController browser window feature. Test-specific methods
    that only have a BrowserView impl have been removed and test code
    updated to check the BrowserView directly.

    This is part of an effort to slim BrowserWindow and better modularize
    browser feature code.

    Bug: 502745808
    Change-Id: I4046786862ff822a6a11c278e25948f478340aa2
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7763260
    Reviewed-by: David Yeung <dayeung@chromium.org>
    Commit-Queue: Thomas Lukaszewicz <tluk@chromium.org>
    Cr-Commit-Position: refs/heads/main@{#1615305}
2026-05-22 16:24:58 -04:00
Claudio DeSouza b832a750a3 [cr149] FindAllTabbedBrowsersWithProfile deleted
Chromium changes:
https://chromium.googlesource.com/chromium/src/+/4650246ccb09055bd278e075fb26055343174087
https://chromium.googlesource.com/chromium/src/+/830564b5f14f755a81fa9f9d5f1e171b568dfc6a

commit 4650246ccb09055bd278e075fb26055343174087
Author: Kun Wang <kunwang@microsoft.com>
Date:   Tue Apr 14 20:46:35 2026 -0700

    [bedrock] Remove FindAllTabbedBrowsersWithProfile() from BrowserFinder

    Bug: 494010890
    Change-Id: I7d237edf67693e11d23397813f06d4e32d27d5a4
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7738568
    Reviewed-by: Thomas Lukaszewicz <tluk@chromium.org>
    Reviewed-by: Qikai Zhong <qikaizhong@microsoft.com>
    Commit-Queue: Kun Wang <kunwang@microsoft.com>
    Cr-Commit-Position: refs/heads/main@{#1614924}

commit 830564b5f14f755a81fa9f9d5f1e171b568dfc6a
Author: Yu He <yhe@microsoft.com>
Date:   Thu Mar 19 12:08:13 2026 -0700

    Reland "[bedrock] FindAllTabbedBrowsersWithProfile() function call point refactoring"

    This is a reland of commit e1e46c26f73c2b52e384e7ea0b59d312ab6399c5

    The original CL was reverted because it caused
    ActorLoadAndExtractContentToolBrowserTest.WindowClosedPrematurely to
    fail on linux-wayland-mutter-rel-tests.

    Root cause: GetActiveWindowId() used ProfileBrowserCollection::ForEach()
    with the default kCreation order. On Wayland, when a new browser window
    is shown via BrowserView::Show(), DidBecomeActive() is called
    synchronously for the new window, but DidBecomeInactive() for the
    previous window only fires asynchronously when the compositor sends a
    "lost focus" event. This means both windows can have IsActive()==true
    simultaneously. With kCreation order, the older (wrong) window was found
    first. The original FindAllTabbedBrowsersWithProfile() iterated in
    activation order, so the most recently shown window was always checked
    first.

    Fix: Pass BrowserCollection::Order::kActivation to ForEach() in
    GetActiveWindowId() to match the original iteration order.

    Also re-enables the WindowClosedPrematurely test on Linux, which was
    disabled by a gardener after the original CL landed.

    Patchset 3 fixes the issue and has been verified locally by running the
    test 50 times under mutter/Wayland without failure.

    Original change's description:
    > [bedrock] FindAllTabbedBrowsersWithProfile() function call point refactoring
    >
    > Migrate all non-test call sites of FindAllTabbedBrowsersWithProfile()
    > from Browser* to BrowserWindowInterface*, adapting downstream method
    > calls accordingly.
    >
    > Call sites migrated:
    > - actor_proto_conversion.cc: session_id() → GetSessionID()
    > - load_and_extract_content_tool_request.cc: session_id() → GetSessionID()
    > - tab_sensitivity_cache.cc: tab_strip_model() → GetTabStripModel()
    >
    > The function still returns std::vector<Browser*>; each call site uses
    > BrowserWindowInterface* as the range-based for loop variable, relying
    > on the implicit upcast from Browser* to BrowserWindowInterface*.
    >
    > Bug: 431671320
    > Change-Id: Ie621746798e54642981b5d2330a653a5f2501821
    > Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7665417
    > Auto-Submit: Yu He <yhe@microsoft.com>
    > Reviewed-by: Qikai Zhong <qikaizhong@microsoft.com>
    > Reviewed-by: Tom Lukaszewicz <tluk@chromium.org>
    > Commit-Queue: Qikai Zhong <qikaizhong@microsoft.com>
    > Cr-Commit-Position: refs/heads/main@{#1600308}

    Bug: 431671320
    Change-Id: I35bd2cc00fc4411c61570be4b906dc3b4dab5dba
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7678191
    Reviewed-by: Qikai Zhong <qikaizhong@microsoft.com>
    Commit-Queue: Tom Lukaszewicz <tluk@chromium.org>
    Reviewed-by: Tom Lukaszewicz <tluk@chromium.org>
    Cr-Commit-Position: refs/heads/main@{#1602148}
2026-05-22 16:24:57 -04:00
Claudio DeSouza 82a6cc677d [cr149] MV2DeprecationImpactChecker moved and ctor changed
Chromium changes:
https://chromium.googlesource.com/chromium/src/+/b11ac9f51e136dd9f345c3f9f79b83aca5d6cb1f

commit b11ac9f51e136dd9f345c3f9f79b83aca5d6cb1f
Author: Miyoung shin <myid.shin@igalia.com>
Date:   Tue Apr 14 17:37:04 2026 -0700

    Move MV2DeprecationImpactChecker to //extensions

    This CL relocate MV2DeprecationImpactChecker to //extensions since
    it no longer depends on //chrome.

    Bug: 358567092
    Change-Id: Ie50342cb170f33ff1b2ae5981d6f556c134c0ac8
    Bypass-Check-License: Moving files
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7736242
    Reviewed-by: Devlin Cronin <rdevlin.cronin@chromium.org>
    Commit-Queue: Miyoung Shin <myid.shin@igalia.com>
    Cr-Commit-Position: refs/heads/main@{#1614819}
2026-05-22 16:24:57 -04:00
Claudio DeSouza cb4ca01cfc [cr149] ActorTask::AddTab asks on-dettach behaviour for tab
Chromium changes:
https://chromium.googlesource.com/chromium/src/+/c93c5d88e4f60a6586e10ff1ce4a8feeaf3f4248

commit c93c5d88e4f60a6586e10ff1ce4a8feeaf3f4248
Author: Chris Fredrickson <cfredric@chromium.org>
Date:   Wed Apr 15 12:37:06 2026 -0700

    Add LoadAndExtractContent's tabs to ActorTask's tab set

    This ensures that LoadAndExtractContent does not bypass the enterprise
    policy blocklist, sensitive site list, or static navigation blocklist.

    This CL also adds the ability to add a tab to the controlled tabs set
    without stopping the ActorTask when that tab is detached/closed. This is
    needed for the ephemeral tabs created by the LoadAndExtractContent tool.

    Fixed: 497342466
    Change-Id: I355e2bc4ab9a27d52281de10ce6bdc98b50cc43a
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7727485
    Reviewed-by: Jeremy Roman <jbroman@chromium.org>
    Auto-Submit: Chris Fredrickson <cfredric@chromium.org>
    Reviewed-by: Avi Drissman <avi@chromium.org>
    Commit-Queue: Chris Fredrickson <cfredric@chromium.org>
    Cr-Commit-Position: refs/heads/main@{#1615339}
2026-05-22 16:24:57 -04:00
Claudio DeSouza efd6458b00 [cr149] BrowserListObserver deleted
All classes are being migrated to BrowserCollectionObserver.

Chromium changes:
https://chromium.googlesource.com/chromium/src/+/2ebf7353bb2535b6121d1a26340d3f4e74046e42

commit 2ebf7353bb2535b6121d1a26340d3f4e74046e42
Author: Thomas Lukaszewicz <tluk@chromium.org>
Date:   Tue Apr 14 21:51:30 2026 -0700

    [bedrock] Remove BrowserListObserver

    Bug: 431671320
    Change-Id: Iff946bf520ab44049c855d91576ef53ca1916e00
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7744448
    Reviewed-by: Qikai Zhong <qikaizhong@microsoft.com>
    Commit-Queue: Thomas Lukaszewicz <tluk@chromium.org>
    Cr-Commit-Position: refs/heads/main@{#1614935}
2026-05-22 16:24:57 -04:00
Claudio DeSouza d422395bce [cr149][WIP] Fixing @typescript-eslint/no-explicit-any warnings
Chromium changes:
https://chromium.googlesource.com/chromium/src/+/8f97262a2cc5aa37fcd710c3c141eb7f08c01f92

commit 8f97262a2cc5aa37fcd710c3c141eb7f08c01f92
Author: dpapad <dpapad@chromium.org>
Date:   Wed Apr 15 15:03:48 2026 -0700

    WebUI: Enable @typescript-eslint/no-explicit-any where possible.

    Since there are too many violations across the codebase, enabling this
    check by default will take a while. Instead of waiting until all
    violations are fixed before the check is enabled anywhere, enabling it
    for all targets that already don't exhibit any violations.

    As the remaining offending targets are fixed they will be removed from
    the exception list to ensure they can no longer regress after being
    fixed.

    The new check is skipped on Ash-only WebUI targets for now.

    Bug: 494464740
    Change-Id: Iadaa8718b1bb6e0188b80615cf2aff4ec3193588
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7763564
    Reviewed-by: John Lee <johntlee@chromium.org>
    Commit-Queue: Demetrios Papadopoulos <dpapad@chromium.org>
    Cr-Commit-Position: refs/heads/main@{#1615435}
2026-05-22 16:24:56 -04:00
Claudio DeSouza f783ea1495 [cr149] SettingSource::kTpcdGrant deleted
This was being passed along in a place, which can be easily deleted, and
in another place it was being used as a macro anchor, which has been
corrected.

Chromium changes:
https://chromium.googlesource.com/chromium/src/+/4f6f66374bd8fb36de59c75b329361eb1f4a0396

commit 4f6f66374bd8fb36de59c75b329361eb1f4a0396
Author: Fiona Macintosh <fmacintosh@google.com>
Date:   Wed Apr 15 01:49:38 2026 -0700

    Delete remaining obsolete 3PCD-related enum values

    Removes k3PCDMetadata, kTpcdGrant, kEnforcedByTpcdGrant

    Change-Id: Id9f3ac6fc20334ade63e62bb01d823396ea30a01
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7749186
    Reviewed-by: Arthur Sonzogni <arthursonzogni@chromium.org>
    Commit-Queue: Judith Hemp <hempjudith@google.com>
    Reviewed-by: Judith Hemp <hempjudith@google.com>
    Auto-Submit: Fiona Macintosh <fmacintosh@google.com>
    Reviewed-by: Maks Orlovich <morlovich@chromium.org>
    Reviewed-by: Christian Dullweber <dullweber@chromium.org>
    Cr-Commit-Position: refs/heads/main@{#1615003}
2026-05-22 16:24:56 -04:00
Claudio DeSouza 92d5f95f44 [cr149] WebString::FromUTF8 renamed to FromUTF8
Chromium changes:
https://chromium.googlesource.com/chromium/src/+/98defbb5fe4cd74acc53e9f8d3b3ad9443adda65

commit 98defbb5fe4cd74acc53e9f8d3b3ad9443adda65
Author: Kent Tamura <tkent@chromium.org>
Date:   Wed Apr 15 01:28:25 2026 -0700

    Reland "Remove blink::WebString::FromUTF8()"

    This is a reland of commit 64bea51a34e9a0f68769c2275e939d986f918495

    Differences from the original commit:
    Update `FromUTF8()` in the following files too:
    * chromecast/renderer/activity_filtering_websocket_handshake_throttle.cc
    * components/translate/content/renderer/translate_agent.cc
    * third_party/blink/renderer/core/script_tools/model_context_test.cc

    Original change's description:
    > Remove blink::WebString::FromUTF8()
    >
    > We prefer FromUtf8().
    > This CL has no behavior changes.
    >
    > Bug: 492927412
    > Change-Id: I3976e85012e2189dd4377a7cd49148771970d158
    > Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7760402
    > Commit-Queue: Fredrik Söderquist <fs@opera.com>
    > Owners-Override: Kent Tamura <tkent@chromium.org>
    > Auto-Submit: Kent Tamura <tkent@chromium.org>
    > Reviewed-by: Fredrik Söderquist <fs@opera.com>
    > Cr-Commit-Position: refs/heads/main@{#1614316}

    Bug: 492927412
    Change-Id: I36fa1420e10759ad581bf8d2ccf7552831e10205
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7760406
    Reviewed-by: Fredrik Söderquist <fs@opera.com>
    Commit-Queue: Kent Tamura <tkent@chromium.org>
    Commit-Queue: Fredrik Söderquist <fs@opera.com>
    Owners-Override: Kent Tamura <tkent@chromium.org>
    Auto-Submit: Kent Tamura <tkent@chromium.org>
    Cr-Commit-Position: refs/heads/main@{#1614993}
2026-05-22 16:24:56 -04:00
Claudio DeSouza d1e78d9694 [cr149] Fixing unwanted Init substitution
Due to transient header inclusions and with `Init` being a common token,
we've got another unwanted substitution which this preemptive header
inclusion prevents.

Chromium changes:
https://chromium.googlesource.com/chromium/src/+/979202122d8d2ae3fffd4ffc027bdb86b78b7232

commit 979202122d8d2ae3fffd4ffc027bdb86b78b7232
Author: Qingxin Wu <qingxinwu@google.com>
Date:   Tue Apr 14 05:40:00 2026 -0700

    [WebUI LLBC] Introduce PermissionChip Interfaces.

    This CL is Phase 1 of decoupling the Left-Hand Side (LHS) location bar
    chips from native Views, preparing for a WebUI implementation.

    It introduces an abstract interfaces: `PermissionChipInterface`.

    The native `PermissionChipView` now inherit from this interface. C++
    controllers (`ChipController` and `PermissionDashboardController`) have
    been refactored to hold pointers to the interfaces rather than concrete
    View classes.

    Bug: 495419742
    Change-Id: I8451110f6c28d267528fa8ed2ead22dbb485e0a9
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7705932
    Reviewed-by: Maks Orlovich <morlovich@chromium.org>
    Reviewed-by: Paul Jensen <pauljensen@chromium.org>
    Reviewed-by: Elias Klim <elklm@chromium.org>
    Reviewed-by: Thomas Lukaszewicz <tluk@chromium.org>
    Commit-Queue: Qingxin Wu <qingxinwu@google.com>
    Cr-Commit-Position: refs/heads/main@{#1614388}
2026-05-22 16:24:55 -04:00
Claudio DeSouza 68624bc8be [cr149] GetAppMenuControl() removed from ToolbarView
We are now accessing this value through a private accessor with the
parent class.

Chromium changes:
https://chromium.googlesource.com/chromium/src/+/0800caaa61eb1b551c622e41025def941ea6f0c9

commit 0800caaa61eb1b551c622e41025def941ea6f0c9
Author: Youssef Bourouphael <ybourouphael@google.com>
Date:   Tue Apr 14 06:30:17 2026 -0700

    Refactor: Extract AppMenuControl interface

    This change extracts the core functionalities of the app menu button
    into a new `AppMenuControl` interface.

    - Introduced `AppMenuControl` interface defining methods to interact with the app menu button.
    - Updated `AppMenuButton` to implement the new `AppMenuControl` interface.
    - Modified `ToolbarButtonProvider` to expose the `AppMenuControl` interface instead of directly returning `AppMenuButton`.
    - Migrated all call sites that previously accessed `AppMenuButton` directly to use the `AppMenuControl` interface.
    - Updated bubble anchoring logic to utilize `views::BubbleAnchor`, allowing for more flexible anchoring options.
    - Many existing calls to `GetAppMenuButton()` were migrated to use `views::ElementTrackerViews` to get the button view.

    This refactoring is a prerequisite for future work on a Web UI version
    of the app menu.

    Bug: 470045312
    Change-Id: I01d722ad76687e0f1e409f04a4feef4d0386540e
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7722207
    Reviewed-by: Paul Jensen <pauljensen@chromium.org>
    Reviewed-by: Eshwar Stalin <estalin@chromium.org>
    Commit-Queue: Youseff Bourouphel <ybourouphael@google.com>
    Cr-Commit-Position: refs/heads/main@{#1614401}
2026-05-22 16:24:54 -04:00
Claudio DeSouza 8771818344 [cr149] extension_allowlist.h moved to new path
Chromium changes:
https://chromium.googlesource.com/chromium/src/+/925b145d425b369c3c71dea1d266b25569a84b60

commit 925b145d425b369c3c71dea1d266b25569a84b60
Author: Miyoung shin <myid.shin@igalia.com>
Date:   Tue Apr 14 02:05:32 2026 -0700

    Move ExtensionAllowlist to //extensions

    This CL relocate ExtensionAllowlist to //extensions since it no
    longer depends on //chrome.

    Bug: 358567092
    Change-Id: I5af107be7b7506123ee53b755eb2da4f6e128cb6
    Bypass-Check-License: Moving files
    Low-Coverage-Reason: TRIVIAL_CHANGE
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7724912
    Commit-Queue: Miyoung Shin <myid.shin@igalia.com>
    Reviewed-by: Devlin Cronin <rdevlin.cronin@chromium.org>
    Cr-Commit-Position: refs/heads/main@{#1614325}
2026-05-22 16:24:54 -04:00
Claudio DeSouza 3e5f041d1b [cr149] mv2_experiment_stage.h changed path
Chromium changes:
https://chromium.googlesource.com/chromium/src/+/277ef269ab36909b8f8e0408942855fc67de1a86

commit 277ef269ab36909b8f8e0408942855fc67de1a86
Author: Miyoung shin <myid.shin@igalia.com>
Date:   Mon Apr 13 22:37:48 2026 -0700

    Move mv2_experiment_stage.h to //extensions

    This CL relocate mv2_experiment_stage.h to //extensions since it no
    longer depends on //chrome.

    Bug: 358567092
    Change-Id: I8184bdfcdb3e6cc1dd60e310687f3f5a7b43bd5b
    Bypass-Check-License: Moving files
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7738462
    Commit-Queue: Miyoung Shin <myid.shin@igalia.com>
    Reviewed-by: Devlin Cronin <rdevlin.cronin@chromium.org>
    Cr-Commit-Position: refs/heads/main@{#1614234}
2026-05-22 16:24:54 -04:00
Claudio DeSouza e676e448a9 [cr149] SetCanonicalCookieAsync dropping default arg value
This is just a mirror of the change in upstream.

Chromium changes:
https://chromium.googlesource.com/chromium/src/+/4d84d8a0cdb1b946de455ec1f511c7205f9b27ab

commit 4d84d8a0cdb1b946de455ec1f511c7205f9b27ab
Author: Chris Fredrickson <cfredric@chromium.org>
Date:   Mon Apr 13 02:15:19 2026 -0700

    Remove default args from CookieStore virtual methods

    Virtual methods are forbidden to have default arguments by the style
    guide
    (https://google.github.io/styleguide/cppguide.html#Default_Arguments).

    Change-Id: I42528f3dd0aa2750cd6a1d773e53f6f4d5fc3891
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7726975
    Reviewed-by: Joey Arhar <jarhar@chromium.org>
    Auto-Submit: Chris Fredrickson <cfredric@chromium.org>
    Reviewed-by: Rohit Rao <rohitrao@chromium.org>
    Commit-Queue: Victor Vianna <victorvianna@google.com>
    Reviewed-by: Richard (Torne) Coles <torne@chromium.org>
    Reviewed-by: Victor Vianna <victorvianna@google.com>
    Cr-Commit-Position: refs/heads/main@{#1613572}
2026-05-22 16:18:10 -04:00
Claudio DeSouza 2541494417 [cr149] CookieMonster test-only ctor with reduced visibility
This ctor was not meant to be used in production, and now it is being
locked down with a passkey to avoid to accidental uses.

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

commit fa56e60fe80ac8560c65cbf660cd8254fb701d8a
Author: Chris Fredrickson <cfredric@chromium.org>
Date:   Mon Apr 13 08:59:55 2026 -0700

    Restrict visibility of test-only CookieMonster ctor

    This makes it either a compiler-error or a presubmit warning to use the
    test-only ctor inappropriately.

    Change-Id: I549948fc78258f18abb0a4bbacf48e91cd74b83a
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7727488
    Reviewed-by: Maks Orlovich <morlovich@chromium.org>
    Auto-Submit: Chris Fredrickson <cfredric@chromium.org>
    Commit-Queue: Chris Fredrickson <cfredric@chromium.org>
    Cr-Commit-Position: refs/heads/main@{#1613764}
2026-05-22 16:18:10 -04:00
Claudio DeSouza 926443bba6 [cr149] TestBrowserClosedWaiter deleted
This change only removes a inclusion to the header for this class that
was left behind in our code.

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

commit dd0cca1d9573996058b06159d99ef55904eae2a0
Author: Tiago Vignatti <tvignatti@igalia.com>
Date:   Mon Apr 13 05:30:29 2026 -0700

    Remove deprecated TestBrowserClosedWaiter

    Delete TestBrowserClosedWaiter and migrate all callers to use
    ui_test_utils::BrowserDestroyedObserver directly, as the class
    was already marked deprecated. The ASSERT_TRUE wrappers around
    WaitUntilClosed() are dropped since it unconditionally returned
    true.

    This also removes the circular dependency between
    //chrome/browser/ui/test:closed_waiter and
    //chrome/test:test_support_ui.

    Bug: 353332589
    Change-Id: I2685dba2a589870fcf1e6639f511932b2a051178
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7706499
    Reviewed-by: Darryl James <dljames@chromium.org>
    Commit-Queue: Tiago Vignatti <tvignatti@igalia.com>
    Cr-Commit-Position: refs/heads/main@{#1613640}
2026-05-22 16:18:10 -04:00
Claudio DeSouza 3fc0b8733b [cr149] GetIndexOfExistingTab deleted
This function has been replaced with a more accurately named one,
`GetIndexOfExistingTabMatchingURL`, which has been declared in a
different header.

Chromium changes:
https://chromium.googlesource.com/chromium/src/+/3d5e08bc7b5649ff297b7a4026224b1040328de5

commit 3d5e08bc7b5649ff297b7a4026224b1040328de5
Author: Jack Thiesen <jthiesen@chromium.org>
Date:   Mon Apr 13 13:14:15 2026 -0700

    Move Navigation Helpers to Shared Location

    WML's Navigate() implementation relies on helpers inside of
    singleton_tabs.h that are not strictly used for singleton tabs and are
    not used by other code. This change updates these helpers to use
    platform-agnostic abstractions and moves them to a location that allows
    for easy sharing between platforms. New unit tests are added.

    Bug: 469764907
    Change-Id: I7f503ea505adc480037e363abe8534f38e7c8d7b
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7747634
    Commit-Queue: Jack Thiesen <jthiesen@chromium.org>
    Reviewed-by: Elly <ellyjones@chromium.org>
    Cr-Commit-Position: refs/heads/main@{#1613927}
2026-05-22 16:18:09 -04:00
Claudio DeSouza 7dc349365c [cr149] FindLastActive returning BrowserWindowInterface
This change corrects several cascading places where passing
`BrowserWindowInterface` is already feasible. It also further corrects
some cases `Browser*` and `Profile*` were being passed alongside each
other, which is redundant.

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

commit c6268a491040e14ca749fb2ba8fb131ab7512f87
Author: Kun Wang <kunwang@microsoft.com>
Date:   Sun Apr 12 23:56:11 2026 -0700

    [bedrock] Migrate FindLastActive Step 1

    Bug:494010890

    Change-Id: I52727f56f3e6172515e3f053a74cb81947c9b8f0
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7743380
    Reviewed-by: Tom Lukaszewicz <tluk@chromium.org>
    Reviewed-by: Hidehiko Abe <hidehiko@chromium.org>
    Commit-Queue: Kun Wang <kunwang@microsoft.com>
    Reviewed-by: Qikai Zhong <qikaizhong@microsoft.com>
    Cr-Commit-Position: refs/heads/main@{#1613517}
2026-05-22 16:18:09 -04:00
Claudio DeSouza 213462eaae [cr149][rust] hashbrown updated to 0.17.0
Chromium changes:
https://chromium.googlesource.com/chromium/src/+/f7733a1032027ad3625e8356db8eab4490572128

commit f7733a1032027ad3625e8356db8eab4490572128
Author: Manish Goregaokar <manishearth@google.com>
Date:   Mon Apr 13 11:27:44 2026 -0700

    Roll indexmap: 2.13.1 => 2.14.0 in //third_party/rust.

    This CL has been created semi-automatically.  The expected review
    process and other details can be found at
    //tools/crates/create_update_cl.md

    Updated crates:

    * indexmap: 2.13.1 => 2.14.0; https://docs.rs/crate/indexmap/2.14.0

    New crates:

    * hashbrown@0.17.0; https://docs.rs/crate/hashbrown/0.17.0

    Removed crates:

    * hashbrown@0.16.1; https://docs.rs/crate/hashbrown/0.16.1

    Bug: None
    Cq-Include-Trybots: chromium/try:android-rust-arm32-rel
    Cq-Include-Trybots: chromium/try:android-rust-arm64-dbg
    Cq-Include-Trybots: chromium/try:android-rust-arm64-rel
    Cq-Include-Trybots: chromium/try:linux-rust-x64-dbg
    Cq-Include-Trybots: chromium/try:linux-rust-x64-rel
    Cq-Include-Trybots: chromium/try:win-rust-x64-dbg
    Cq-Include-Trybots: chromium/try:win-rust-x64-rel
    Disable-Rts: True
    Change-Id: I7f0b56f556a564befd67b51f91a4a4668407ab77
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7756739
    Auto-Submit: Manish Goregaokar <manishearth@google.com>
    Reviewed-by: Daniel Rubery <drubery@chromium.org>
    Commit-Queue: Manish Goregaokar <manishearth@google.com>
    Cr-Commit-Position: refs/heads/main@{#1613872}
2026-05-22 16:18:09 -04:00
Claudio DeSouza c538264b6e [cr149] Adding missing push_messaging component
These sources were recently componentised.

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

commit da1937096d3b9787f6c746cfe3e0ca38d9fa13c2
Author: Orko Garai <orko@igalia.com>
Date:   Fri Apr 10 14:39:46 2026 -0700

    Finish modularizing c/b/push_messaging

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

    Cq-Include-Trybots: luci.chromium.try:android-cast-arm-rel

    Bug: 353332589
    Change-Id: I3a6d5767060edf283015835d1baa550990f60fcd
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7718621
    Commit-Queue: Orko Garai <orko@igalia.com>
    Reviewed-by: Darryl James <dljames@chromium.org>
    Cr-Commit-Position: refs/heads/main@{#1613110}
2026-05-22 16:18:07 -04:00
Claudio DeSouza 3c6b2847e1 [cr149] ESLint fixes for reactive properties
All the fixes in this change are cases where we are converting a
property to a function as more appropriate.

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

commit 9d25d0387044e57a67892521a2863a87c31b9cc9
Author: rbpotter <rbpotter@chromium.org>
Date:   Thu Apr 9 23:38:18 2026 -0700

    WebUI: Validate that properties referenced in Lit template are reactive

    Adding an automated check to ensure that if a class property
    "this.someProp" is referenced in the HTML template, it is also properly
    declared as a reactive property so that Lit will re-render the element
    correctly when it changes.

    Bug: 500066216
    Change-Id: Ieb9989fc672d03cb2b20f2bd43301a688b42f270
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7731479
    Commit-Queue: Rebekah Potter <rbpotter@chromium.org>
    Reviewed-by: Demetrios Papadopoulos <dpapad@chromium.org>
    Cr-Commit-Position: refs/heads/main@{#1612640}
2026-05-22 16:18:07 -04:00
Claudio DeSouza a14306c238 [cr149] Fixing kPageActionProperties patching formating
Recent changes in upstream have changed the tabulation. Although this
has not caused any conflict when applying patches, this change updates
the plaster to better reflect the current desired patching.

Chromium changes:
https://chromium.googlesource.com/chromium/src/+/39f1fc11de89a81d446d6ee520973294a4023254

commit 39f1fc11de89a81d446d6ee520973294a4023254
Author: Ian Wells <iwells@chromium.org>
Date:   Tue Apr 7 09:48:58 2026 -0700

    Add contextual cueing v2 page action

    Contextual cueing v2 will show cues for a few different features, so
    while the page action is registered with the other browser actions, its
    icon, anchored message details and click handler aren't set until it's
    time to show a cue for a specific feature.

    Bug: 497231692
    Change-Id: I641e13d43661806a64759018a837f6fe316bfaac
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7732046
    Reviewed-by: Charlie Harrison <csharrison@chromium.org>
    Reviewed-by: Sophie Chang <sophiechang@chromium.org>
    Commit-Queue: Ian Wells <iwells@chromium.org>
    Cr-Commit-Position: refs/heads/main@{#1610829}
2026-05-22 16:18:04 -04:00
Claudio DeSouza 89f4eb930e [cr149] String::Substring renamed to DeprecatedSubstring
Chromium changes:
https://chromium.googlesource.com/chromium/src/+/c6f8d3ab428ec002d18b29ecd18c0c124b667e87

commit c6f8d3ab428ec002d18b29ecd18c0c124b667e87
Author: Kent Tamura <tkent@chromium.org>
Date:   Thu Apr 9 01:44:49 2026 -0700

    WTF: Rename String::Substring() to DeprecatedSubstring()

    * inspector_css_parser_observer.cc:
      A DCHECK assumes `comment_text` is not empty, so `start_offset`
      should not be greater than `parsed_text_.length()`. We can use
      subview().

    Bug: 473854537
    Change-Id: Ia38b03fd58755e9370037c483bce7bfd5482343e
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7740859
    Auto-Submit: Kent Tamura <tkent@chromium.org>
    Reviewed-by: Fredrik Söderquist <fs@opera.com>
    Commit-Queue: Fredrik Söderquist <fs@opera.com>
    Cr-Commit-Position: refs/heads/main@{#1612041}
2026-05-22 16:18:04 -04:00
Claudio DeSouza 794beb15af [cr149] EnterprisePolicyUrlChecker now EnterprisePolicyChecker
This change updades our checker to use the newer version and keeps a
nullified implementation for the new method added to this new class.

Chromium changes:
https://chromium.googlesource.com/chromium/src/+/75b2acce79497326ac3388f8d3e6d03a21b1459e

commit 75b2acce79497326ac3388f8d3e6d03a21b1459e
Author: Haihan Chen <haihan@google.com>
Date:   Thu Apr 9 08:57:26 2026 -0700

    [GLIC CEP Paste Support] Merge actor enterprise checks into single `EnterprisePolicyChecker` interface

    To simplify the API and avoid extra param for actor tasks for content
    policy checks specifically, since glic is the only user and implements
    both url and content checks in a single class right now
    (`glicactorpolicychecker`).

    This is a refactor, content validation usage in tools like `PageTool` in
    follow-up CL.

    Bug: 473047343
    Change-Id: I8fb9b45955ccff15c3331af445df05dfcc589ac4
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7735646
    Reviewed-by: Kevin McNee <mcnee@chromium.org>
    Commit-Queue: Haihan Chen <haihan@google.com>
    Cr-Commit-Position: refs/heads/main@{#1612275}
2026-05-22 16:18:04 -04:00
Claudio DeSouza c1df6b7336 [cr149] Several actor headers moved
These are merely header inclusion path changes.

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

commit a04bd984f618f1b601d1f1eed03c79526fede1df
Author: Andrew Liu <liu@chromium.org>
Date:   Thu Apr 9 13:21:47 2026 -0700

    Move actor_features, actor_switches, and actor_util to components

    This allows cross-platform (i.e. iOS) reuse of the feature flags. This
    CL also splits out the ScreenshotIframeRedactionScope enums to clean up
    the transitive dependencies.

    Bug: b:498735476
    Link: https://chromium-review.googlesource.com/id/I34099ac7e63ab047fbe2d8afa78bde996a6a6964
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7726881
    Commit-Queue: Andrew Liu <liu@chromium.org>
    Reviewed-by: Siddhartha S <ssid@chromium.org>
    Reviewed-by: Kevin Graney <kmg@google.com>
    Cr-Commit-Position: refs/heads/main@{#1612467}
2026-05-22 16:18:03 -04:00
Claudio DeSouza cac9a404dd [cr149] kTrackingProtection3pcd deleted
This feature has been deleted with the flag, which we were disabling.

Chromium changes:
https://chromium.googlesource.com/chromium/src/+/6cecf5c9cf156340d248173d59672e41981467af

commit 6cecf5c9cf156340d248173d59672e41981467af
Author: Fiona Macintosh <fmacintosh@google.com>
Date:   Thu Apr 9 01:59:36 2026 -0700

    Delete kTrackingProtection3pcd feature

    Fixed: b:482352097
    Change-Id: I856bdd18a750581b6bc717652e4a531ee5cda00f
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7741961
    Auto-Submit: Fiona Macintosh <fmacintosh@google.com>
    Reviewed-by: Christian Dullweber <dullweber@chromium.org>
    Commit-Queue: Christian Dullweber <dullweber@chromium.org>
    Cr-Commit-Position: refs/heads/main@{#1612047}
2026-05-22 16:18:03 -04:00
Claudio DeSouza 3b0f99edcf [cr149] Rely on //chrome/browser/ui/test:dialog
This the componentisation of these files, we do not need anymore to
include these sources ourselves in `brave_browser_tests`.

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

commit e0cd9afb25e911c62c8c096ef55816bd9e3b665e
Author: Tiago Vignatti <tvignatti@igalia.com>
Date:   Thu Apr 9 07:28:31 2026 -0700

    Componentize chrome/browser/ui/test/

    This changes create chrome/browser/ui/test/BUILD.gn with dedicated
    targets for all test files in this directory, which were previously
    scattered across chrome/test/BUILD.gn and chrome/browser/ui/BUILD.gn.
    Some of the files were duplicated in multiple targets, and has now
    fixed.

    New targets:
    - :dialog — moved from //chrome/test:test_support and de-duplicated from
      browser_tests/interactive_ui_tests
    - :closed_waiter — moved from //chrome/test:test_support_ui
    - :test_support — de-duplicated and moved from browser_tests,
      interactive_ui_tests, and //chrome/browser/ui:test_support
    - :confirm_bubble — moved from //chrome/browser/ui:test_support
    - :browser_tests — browser test files
    - :interactive_ui_tests — interactive UI test files
    - :app_window — moved from //chrome/browser/ui:test_support

    Bug: 353332589
    Change-Id: I602615d0b8a96af88af82cf1caaf75a3a2184d07
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7704138
    Reviewed-by: Darryl James <dljames@chromium.org>
    Commit-Queue: Tiago Vignatti <tvignatti@igalia.com>
    Cr-Commit-Position: refs/heads/main@{#1612208}
2026-05-22 16:18:03 -04:00
Claudio DeSouza 0e4e07ea90 [cr149] AddFakeURLToHistoryDB deleted
`history::AddFakeURLsToHistoryService` should be used instead.

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

commit b93f6d1f2368fadbd2367931cc2fbccb1abcc790
Author: Greg Thompson <grt@chromium.org>
Date:   Tue Apr 7 06:58:55 2026 -0700

    Add sequence checks to sql::Database

    Also in this change:

    - Fix a few tests that were violating the sequence requirements.
    - Remove Database::ReportMemoryUsage, which was unused.

    Bug: 40827949
    Change-Id: I1a5c4630ed150552cdf66cf5951e2111c7aa8434
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7687491
    Commit-Queue: Greg Thompson <grt@chromium.org>
    Auto-Submit: Greg Thompson <grt@chromium.org>
    Reviewed-by: Jean-Philippe Gravel <jpgravel@chromium.org>
    Reviewed-by: Moe Ahmadi <mahmadi@chromium.org>
    Cr-Commit-Position: refs/heads/main@{#1610716}
2026-05-22 16:18:02 -04:00
Claudio DeSouza 2a75a3f8c6 [cr149] MakeOptionsFor[Set|Get] with top_frame_origin arg
This recent change requires us to fix our own overrides and callers for
these functions.

Chromium changes:
https://chromium.googlesource.com/chromium/src/+/1575bebcd1c16fa1508c87eda06c5b3b1c364c3c

commit 1575bebcd1c16fa1508c87eda06c5b3b1c364c3c
Author: Duncan Mercer <mercerd@google.com>
Date:   Wed Apr 8 15:31:53 2026 -0700

    [Blink/Network] Support origin targeting for secure exemptions

    This change updates WebSecurityPolicy to support origin targeting
    for secure embedder exceptions by allowing specific origins instead
    of applying globally to an entire scheme.

    It also migrates secure cookie exemptions—specifically those affecting
    third-party cookie blocking and SameSite restrictions—in CookieManager
    and CookieSettings from scheme/host-based registration to
    url::Origin-based registration. This enables precise, unscoped
    exemptions for secure origins (such as chrome-untrusted://lens)
    without modifying the properties or behavior of the cookie origin
    itself.

    Bug: b:483614998
    Change-Id: I7fe2a00e631513c6ebcdb5fb996914f5b48a9447
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7689068
    Reviewed-by: Daniel Cheng <dcheng@chromium.org>
    Reviewed-by: Nidhi Jaju <nidhijaju@chromium.org>
    Reviewed-by: Dylan Cutler <dylancutler@google.com>
    Commit-Queue: Duncan Mercer <mercerd@google.com>
    Reviewed-by: Joshua Hood <jdh@chromium.org>
    Reviewed-by: Lily Chen <chlily@chromium.org>
    Cr-Commit-Position: refs/heads/main@{#1611822}
2026-05-22 16:18:02 -04:00
Claudio DeSouza 8070a2b7f7 [cr149] TranslateLanguageList with TranslateUrlFetcher arg
This change corrects several places to pass `TranslateUrlFetcher` into
`TranslateLanguageList`.

Chromium changes:
https://chromium.googlesource.com/chromium/src/+/6aef37c345ee6449713a213c04878417dd87d0c4

commit 6aef37c345ee6449713a213c04878417dd87d0c4
Author: Danilo Françoso Tedeschi <danft@google.com>
Date:   Wed Apr 8 06:26:11 2026 -0700

    Replace static DisableUpdate with dependency injection for TranslateLanguageList.

    This change removes the global static flag `update_is_disabled` from TranslateLanguageList and instead allows injecting a TranslateUrlFetcher instance. This improves testability by allowing mock fetchers to be used without relying on global state. TranslateDownloadManager now has a setter for its TranslateLanguageList.

    Change-Id: I739659aba52e95e6236e0b5d85fd9672b090c864
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7719220
    Reviewed-by: Basia Zimirska <basiaz@google.com>
    Commit-Queue: Danilo Françoso Tedeschi <danft@google.com>
    Cr-Commit-Position: refs/heads/main@{#1611437}
2026-05-22 16:18:02 -04:00
Claudio DeSouza 01294c6062 [cr149] BubbleAnchor now a type
This used to be an alias to:

```cxx
using BubbleAnchor = std::variant<std::nullptr_t, View*, ui::TrackedElement*>;
```

Chromium changes:
https://chromium.googlesource.com/chromium/src/+/1ba6a69579ba3b5f5925ff77a390be5a99d748e7

commit 1ba6a69579ba3b5f5925ff77a390be5a99d748e7
Author: Maks Orlovich <morlovich@chromium.org>
Date:   Tue Apr 7 11:33:31 2026 -0700

    Make BubbleAnchor an own class.

    The variant implementation has a property that seems very unfortunate:
    it has 3 possible places it can store nullptr, which makes it tricky to
    reason about and work with, e.g.:

    BubbleAnchor Foo() {
     if (View* view = Bar()) {
       return view;
     }
     return nullptr;
    }

    is not equivalent to: BubbleAnchor Foo() {
      return Bar();
    }

    It's also somewhat awkward to use, and can't be forward declared.

    The class wrapper normalizes the nulls. It also gives it is own
    header (and can be forward declared).

    Change-Id: I2aacb894ee995af7fd012f2762826cd30f277179
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7647509
    Reviewed-by: Dana Fried <dfried@chromium.org>
    Commit-Queue: Maks Orlovich <morlovich@chromium.org>
    Cr-Commit-Position: refs/heads/main@{#1610910}
2026-05-22 16:18:01 -04:00
Claudio DeSouza 18febcb2ed [cr149] Use ui_test_utils::FindAnyBrowser
Chromium changes:
https://chromium.googlesource.com/chromium/src/+/ddd5ffe0ad3129bb03508ab864465e77f0e50bed
https://chromium.googlesource.com/chromium/src/+/2174233eeebf04d1a671c66f2be7b630e6117de0

commit ddd5ffe0ad3129bb03508ab864465e77f0e50bed
Author: Yu He <yhe@microsoft.com>
Date:   Wed Apr 8 12:02:16 2026 -0700

    [bedrock] Remove unused chrome::FindAnyBrowser()

    The FindAnyBrowser() function in browser_finder.h
    is unused. Its declaration already carried a warning ("Do not use this
    method"), and there are no remaining callers in the codebase.

    Remove the declaration and definition to reduce dead code.

    Bug: 494010890
    Change-Id: Iec391a4c4f9001726daf4b350fc3e3eccafe9017
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7736509
    Commit-Queue: Tom Lukaszewicz <tluk@chromium.org>
    Auto-Submit: Yu He <yhe@microsoft.com>
    Reviewed-by: Tom Lukaszewicz <tluk@chromium.org>
    Reviewed-by: Qikai Zhong <qikaizhong@microsoft.com>
    Cr-Commit-Position: refs/heads/main@{#1611701}

commit 2174233eeebf04d1a671c66f2be7b630e6117de0
Author: yhe <yhe@microsoft.com>
Date:   Sun Mar 29 15:57:42 2026 -0700

    [bedrock] Move FindAnyBrowser to ui_test_utils

    Migrate chrome::FindAnyBrowser() into ui_test_utils::FindAnyBrowser(),
    reimplementing it on top of GlobalBrowserCollection and
    BrowserWindowInterface instead of the legacy Browser-based APIs.

    The new helper:
    - Returns BrowserWindowInterface* (instead of Browser*).
    - Iterates browsers via GlobalBrowserCollection::ForEach() in
      activation order.
    - Skips delete-scheduled browsers.
    - On ChromeOS, excludes windows shown on another user's desktop
      via ash::MultiUserWindowManager.
    - Defaults match_original_profiles to true (most callers used true).

    Update all test call-sites to use the new function:
    - session_login_browsertest.cc
    - profile_window_browsertest.cc
    - browser_finder_chromeos_browsertest.cc
    - browser_finder_chromeos_unittest.cc
    - toolbar_view_interactive_uitest.cc

    Add the required BUILD.gn deps (//chrome/browser/ui/browser_window,
    //chrome/browser/ui/ash/multi_user, //chrome/test:test_support_ui).

    Bug: 494010890
    Change-Id: I07701d0c20514e51ead54c3367ddfbb0317735a6
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7686930
    Reviewed-by: Qikai Zhong <qikaizhong@microsoft.com>
    Reviewed-by: Tom Lukaszewicz <tluk@chromium.org>
    Commit-Queue: Tom Lukaszewicz <tluk@chromium.org>
    Auto-Submit: Yu He <yhe@microsoft.com>
    Cr-Commit-Position: refs/heads/main@{#1606838}
2026-05-22 16:18:01 -04:00
Claudio DeSouza 110869ed10 [cr149] SidePanelEntry::PanelType entries now in SidePanelType
Chromium changes:
https://chromium.googlesource.com/chromium/src/+/78425c46e1229419e65b0b8485e0e5b4e405bb85

commit 78425c46e1229419e65b0b8485e0e5b4e405bb85
Author: Mohamed Adel <adelm@google.com>
Date:   Wed Apr 8 10:21:20 2026 -0700

    [Side Panel Infra] Move SidePanelEntry::PanelType into side_panel_enums

    Bug: 499977101
    Change-Id: I04e7d9559c496d59fb84731bb0f26d99fbc5afe6
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7731922
    Reviewed-by: Theresa Sullivan <twellington@chromium.org>
    Auto-Submit: Moe Adel <adelm@google.com>
    Commit-Queue: Moe Adel <adelm@google.com>
    Cr-Commit-Position: refs/heads/main@{#1611625}
2026-05-22 16:18:01 -04:00
Claudio DeSouza 8f31759480 [cr149] kTpcdMetadataGrants deleted
The feature was being disabled in Brave, and now it is gone.

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

commit b7f05fafa03fe5ae3a7039fbad7dcf16198beda4
Author: Fiona Macintosh <fmacintosh@google.com>
Date:   Tue Apr 7 12:00:10 2026 -0700

    Delete TPCD metadata manager and associated 3pcd cookies logic

    Change-Id: I258499866c8714129644e219a76e4816e24f4783
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7726996
    Reviewed-by: Josh Karlin <jkarlin@chromium.org>
    Reviewed-by: Christian Dullweber <dullweber@chromium.org>
    Reviewed-by: Alex Ilin <alexilin@chromium.org>
    Reviewed-by: Hidehiko Abe <hidehiko@chromium.org>
    Reviewed-by: Maks Orlovich <morlovich@chromium.org>
    Commit-Queue: Fiona Macintosh <fmacintosh@google.com>
    Reviewed-by: Joshua Hood <jdh@chromium.org>
    Cr-Commit-Position: refs/heads/main@{#1610923}
2026-05-22 16:18:01 -04:00
Claudio DeSouza 6e74e53c4e [cr149] IWYU for base/logging.h
Chromium changes:
https://chromium.googlesource.com/chromium/src/+/57a7dfb4e2645b9c62d3a005436c815f4314b5e6
https://chromium.googlesource.com/chromium/src/+/a65d0fd3d0c70c37e7ac03bbc7389961eb69e66d

commit 57a7dfb4e2645b9c62d3a005436c815f4314b5e6
Author: Daniel Cheng <dcheng@chromium.org>
Date:   Tue Apr 7 01:29:42 2026 -0700

    Remove base/logging.h include from validation_errors.h

    This header is included in many C++ source files generated from .mojom
    and is fairly heavyweight. While moving the logging out of the headers
    is straightforward, array validation failures generate a std::string
    with some runtime details. `std::string_view` handles both cases nicely,
    but there is value in minimizing the includes in this file as much as
    possible. `const char*` and using `.c_str()` was the initial approach
    considered, but discarded as a bit too hacky after some prototyping.

    Instead, the helpers that create additional context for array validation
    failures now return a struct with details about the failure. The various
    validation error reporting functions have additional overloads that
    internally stringify the details so that validation errors are still
    reported in the exact same way.

    gemini-cli was used to quickly prototype some ideas as well as implement
    the overall CL, with some manual followups to improve naming and reduce
    duplication.

    One unintended side effect is a minor improvement in binary size, since
    the new error detail structs are trivially destructible, unlike
    std::string.

    Bug: 499476145
    Change-Id: If52b10f4928b7920ea7b120754a1798c125fefa7
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7730404
    Commit-Queue: Daniel Cheng <dcheng@chromium.org>
    Reviewed-by: Lei Zhang <thestig@chromium.org>
    Cr-Commit-Position: refs/heads/main@{#1610607}

commit a65d0fd3d0c70c37e7ac03bbc7389961eb69e66d
Author: Daniel Cheng <dcheng@chromium.org>
Date:   Tue Apr 7 01:23:35 2026 -0700

    Fix several more IWYU errors for base/logging.h

    Bug: 499476145
    Change-Id: Iba431f2c534365f9ea575c9be86bd70e8fa6a268
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7732103
    Owners-Override: Takuto Ikuta <tikuta@chromium.org>
    Reviewed-by: Takuto Ikuta <tikuta@chromium.org>
    Reviewed-by: Kentaro Hara <haraken@chromium.org>
    Reviewed-by: Kouhei Ueno <kouhei@chromium.org>
    Cr-Commit-Position: refs/heads/main@{#1610606}
2026-05-22 16:18:00 -04:00
Claudio DeSouza 9e5e5102d3 [cr149] CSSSelectorFragmentAnchor feature removed
This feature was being disabled in Brave.

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

commit d57f3260469cb57abc0109976110a760d30dcfbb
Author: Andrew Paseltiner <apaseltiner@chromium.org>
Date:   Wed Apr 8 14:15:25 2026 -0700

    Remove experimental CSSSelectorFragmentAnchor feature

    The CSSSelectorFragmentAnchor feature was an experimental extension to
    fragment directives that has not seen active development in years and
    has never been officially specified. Furthermore, the implementation
    lacked certain security controls (crbug.com/497956094) discussed in the
    feature proposal
    (https://github.com/WICG/scroll-to-text-fragment/blob/main/EXTENSIONS.md#proposed-solution).

    This CL removes the implementation, including:
    - The CssSelectorFragmentAnchor and CssSelectorDirective classes.
    - The CSSSelectorFragmentAnchor runtime-enabled feature flag.
    - The -internal-selector-fragment-anchor pseudo-class.
    - Associated UA styles and metrics.

    The createSelectorDirective() JS API is preserved as it is used by the
    Text Fragments feature to generate TextDirectives. Related WPTs are
    updated to remove CssSelector specific tests while maintaining coverage
    for general directive parsing.

    Bug: 1253707, 40203851, 40203761, 497956094
    Change-Id: I2b11bdbde4475e48693f182ecca3c0bf9c79c198
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7735903
    Reviewed-by: Sebastien S-G <sebsg@chromium.org>
    Commit-Queue: Andrew Paseltiner <apaseltiner@chromium.org>
    Reviewed-by: Rick Byers <rbyers@chromium.org>
    Cr-Commit-Position: refs/heads/main@{#1611777}
2026-05-22 16:18:00 -04:00
Claudio DeSouza 31bd278439 [cr149] Bump resource_ids
Chromium changes:
https://chromium.googlesource.com/chromium/src/+/012ad31d6d103d5300df5e0141c22d3d7491d123

commit 012ad31d6d103d5300df5e0141c22d3d7491d123
Author: dpapad <dpapad@chromium.org>
Date:   Mon Apr 27 20:43:30 2026 -0700

    Fix grit.exception.IdRangeOverflow: ID range overflow build error.

    Likely triggered by the file additions in https://crrev.com/c/7791019.

    Fixed: 507182397
    Change-Id: I5a7a53a80a479a8041dcfc56a6ba7297f7314d11
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7798499
    Commit-Queue: Demetrios Papadopoulos <dpapad@chromium.org>
    Auto-Submit: Demetrios Papadopoulos <dpapad@chromium.org>
    Reviewed-by: Fumitoshi Ukai <ukai@google.com>
    Cr-Commit-Position: refs/heads/main@{#1621526}
2026-05-22 16:17:59 -04:00
Claudio DeSouza ab73e83f1f [cr149] IWYU fixes. 2026-05-22 16:17:59 -04:00
Claudio DeSouza 1e4cd8fd09 [cr149] gnrt run for Chromium 149.0.7824.1. 2026-05-22 16:17:58 -04:00
Claudio DeSouza 63f95ad6d6 Conflict-resolved patches from Chromium 148.0.7778.179 to Chromium 149.0.7824.1. 2026-05-22 16:17:58 -04:00
Claudio DeSouza c9f97c1560 Apply-fixed 🩹 patches from Chromium 148.0.7778.96 to Chromium 149.0.7824.1. 2026-05-22 16:17:58 -04:00
Claudio DeSouza 2f5da17f69 Update from Chromium 148.0.7778.179 to Chromium 149.0.7827.14. 2026-05-22 16:17:58 -04:00
cdesouza-chromium ffa95ab18c [best-practices] Simple fixes to the 🩹 best practices (#36653)
This document was mentioning `plaster` keys with the wrong name.
2026-05-22 15:21:13 +01:00
cdesouza-chromium a651e03a79 [plaster] Introducing a 🩹 YAML frontend (#36651)
This PR introduces the YAML frontend for plaster that is meant to
eventually become the only frontend, once all `.toml` Plaster files are
migrated.

This change covers all places where the assumption about `.toml` files
was being used, inclusing `brockit`, and `git-cr` tools.

Most of the code that should be deleted in the future is well guarded
with comments leading back to the issue tracking, so the TOML parser can
be dropped eventually.

With this change, a dependency to `pyyaml` has been introduced. This
dependency has wheels provided by `vpython`, which is already the
expected python runtime for Plaster.

 - Rationale for this change

We have experimented at length with `.toml` files, in order to
understand some of the shortcomings they have that would be addressed
with `.yaml` files.

 * `prettier` offers YAML formatting out-of-the-box. On the other hand,
   formatters for TOML files are not easy to find, as both `prettier`
   and `vpython` have their own challanges with the current options
 * YAML's sytanx works better with codeblocks, as it doesn't require
   quoting. This makes the content seen less noisy. Looking on some of
   the migrated plasters, the YAML substitutions look more readable.
 * YAML has better sytanx highlight support in some editors.

Bug: https://github.com/brave/brave-browser/issues/55738
2026-05-22 15:20:51 +01:00
cdesouza-chromium 0ac0947704 [toolchain] Rust WASM builder tomllib fallback (#36637)
This PR introduces some fallback parsing for `tomllib` use, when running
this script in a machine with a python version older than `3.11`. This
will be necessary for the time being with the Linux node still using
Python 3.10.
2026-05-22 12:24:50 +01:00
cdesouza-chromium 348b19ce7d [toolchain] Rust WASM toolchain builder uses llvm-ar.exe (#36633)
On Windows, we have to manually correct the default the `ar`
`config.toml` value to `llvm-ar.exe`, as Windows defaults as a normal
Windows build uses `llvm-lib.exe`.
2026-05-21 21:53:01 +01:00
cdesouza-chromium 6e5477de72 [toolchain] Fix rust WASM builder picking up clang-cl.exe (#36628)
On Windows, we need to make sure we are picking up the correct C
compiler for the WASM build, and as this value was not being provided in
the template, `clang-cl.exe` was being picked up.

This PR generates a fuller stanza in the template for the WASM build,
that replicates the host one, but makes sure to tweak this necessary
value for windows. It is also of notice that we keep the linker whatever
is the default to be picked up.
2026-05-21 20:12:33 +01:00
cdesouza-chromium b4fa116f87 [toolchain] Checkout the tag manually on the rust WASM builder (#36615)
This PR changes how the checkout works in the rust toolchain WASM
builder, to avoid the use of `gclient sync -r {ref}`. It is not clear if
we are having issues with it exactly, but the Windows pipeline keeps
hanging, and this particular long standing `gclient` issue has caused
pipeline issues before.

This PR also follows up on the work done by the previous one, and
updates all the other scripts to output the `stderr` the same way the
rust builder is doing.

Bug: https://github.com/brave/brave-browser/issues/44921
2026-05-21 18:00:40 +01:00
cdesouza-chromium 3213961ae5 [cr150][brockit] Fix fixup! block message parsing (#36610)
[cr150][brockit] Fix handling of `fixup!` block messages

This PR fixes how we are handling the block messages for `fixup!`, as
the parsing for them was always assuming that they would receive the
label `will be skipped:` for not having any message in them, but
actually that doesn't appear to be the case with every `fixup!`. With
this change, `fixup!` blocks that have no message are now discarded too.

Bug: https://github.com/brave/brave-browser/issues/55466
2026-05-21 17:48:00 +01:00
cdesouza-chromium f64a6cba89 [cr150][brockit] Rebase-v2 terminal needs to be interactive (#36608)
This PR changes our `rebase --interactive` call to be use `terminal.run`
with `interactive=True`, so we don't capture the output of that command.
This will generate noise when running `brockit rebase`, however this is
necessary for the user to be able to use the editor opened due to
`EditorRecoverableFailure`.

There are also changes to `terminal`, to make sure we stop producing any
type of status update while `interactive=True` commands are ongoing.

Bug: https://github.com/brave/brave-browser/issues/55466
2026-05-21 16:23:27 +01:00
cdesouza-chromium 1da5e1ede6 [include-what-you-use] //components/brave_wallet/common/ fixes (#36515)
This is an experimental pass of `include-what-you-use`.

Bug: https://github.com/brave/brave-browser/issues/42212
2026-05-21 15:56:20 +01:00
cdesouza-chromium 9458d597bc [toolchain] Allow stderr through in the rust builder (#36604)
This PR changes the function we use to run commands in the rust builder
to always allow `stderr` through. We are also adding a log whenever the
script is launched to indicate the value of `GIT_CACHE_PATH`.
2026-05-21 13:16:05 +01:00
cdesouza-chromium 9f8b06fc62 [plaster] Apply on change (#36563)
This PR introduces a check mechanism to `plaster` that will allow it by
default to just reapply patches when that's needed. This is being done
with a simple approach:

 * Check if the `.patchinfo` timestamp older than the plaster file,
   patch, or upstream source.
 * If `.patchinfo` is newer than any of these, we go on to check if the
   checksums are matching with what is in the `.patchinfo`.
 * If any of the checksum chcks fail, we reapply the patch.

This is very lightweight, and will make most of the uses of `apply`
reliable for reruns while working on a feature.

Resolves https://github.com/brave/brave-browser/issues/45057
2026-05-20 15:31:34 +01:00
cdesouza-chromium e58a6c503f [rust][toolchain] Fix checkout bug (#36560)
This fix corrects an issue that has been present in this builder all
along, where it locks onto whatever was the latest checkout version
after cloning, rather than the one we want to sync with.

With this change, the python rust modules are loaded only after the
checkout.
2026-05-20 13:37:26 +01:00
cdesouza-chromium 764f28a940 [plaster][android] Migrate AUTOPLAY patches (#36290)
[cr150][plaster][android] Migrate `AUTOPLAY` patches

This PR migrates several java patches for `AUTOPLAY` to plaster. It uses
the same previous techniques, where we match the enum block and add at
the end.

The only innovation in this PR as an approach for plaster is the
replacement of the value `NUM_ENTRIES` with `+1` for whatever keys we
are inserting, while at the same time using the previous value of
`NUM_ENTRIES` as the starting value for the first key.

Resolved https://github.com/brave/brave-browser/issues/55385
2026-05-19 22:44:45 +01:00
cdesouza-chromium 78129286ae [docs] Include docs/ to md auto-format (#36521)
This is in conformance with the guidelines that `.md` files under
`docs/` must use 80-columns.
2026-05-19 20:02:22 +01:00
cdesouza-chromium c31f01cfc2 [include-what-you-use] Initial tooling (#36508)
This PR introduces the basic tooling to have `include-what-you-use` run
against the brave codebase in maintainance mode. This manual regular
runs that cover more and more of the codebase.

Bug: https://github.com/brave/brave-browser/issues/42212
2026-05-19 18:59:55 +01:00
cdesouza-chromium 8f1df4f996 [toolchain][brockit] Adding update-xcode-toolchain (#36514)
This is a new `brockit` subcommand that takes care in creating the
commit updating the Xcode toolchain in brave-core.

```sh
brockit.py update-xcode-toolchain --culprit=[optional] <url>
```

The URL in question is printed by CI when generating a new toolchain,
with the label `Download URL: <url>`

Bug: https://github.com/brave/brave-browser/issues/55528
2026-05-19 17:44:55 +01:00
cdesouza-chromium 7128c2ea48 [CodeHealth][plaster] Keep in chromium_src non-macro code (#36502)
This PR moves to `chromium_src` code that can live in there, and does
with no need for `#define` macro uses. This keeps plaster files shorter,
which reduces the noise in them, and it also permits C++ code to live
in C++ sources, that can benefit from code formatting, and DEPS
validation.
2026-05-18 23:51:45 +01:00
cdesouza-chromium b03cb46d83 [brockit] Fix reassignment bug in rebase v2 (#36510)
The regex used to parse the subcommand was not matching properly, and
therefore `reassign!` commits were being dropped.

Bug: https://github.com/brave/brave-browser/issues/55466
2026-05-18 20:20:37 +01:00
cdesouza-chromium fc38927b10 [mac][brockit] Fix repository_test.py temp path failures (#36503)
This is a small fix for mac, as the base path resolution for the
repository sandbox was getting messed by symlinks.
2026-05-18 10:15:17 +01:00
cdesouza-chromium ef816f7f9d [include-what-you-use] //components/brave_ads/browser (#36443)
This PR has combined runs of IWYU for for:

 - `//components/brave_ads/browser`

This is being done in an experimental manner to acquire some experience
with this tooling.

Bug: https://github.com/brave/brave-browser/issues/42212
2026-05-15 16:42:50 +01:00
cdesouza-chromium d0a4e2413b [toolchain] XCode toolchain builder (#36451)
This is an experimental toolchain build for the Apple toolchain. It just
packs certain files in a single archive so we can use it during the
build in a particular place, preserve the hermetic aspect of it.

Naming convention for the toolchain file is being calculated now based
on the version we are upgrading to, and the version Chromium has been
upgraded to, so we have a better view of what the toolchain is. This
will allow toolchain update to be done by `brockit` automatically,
whenever the toolchain is available.

Bug: https://github.com/brave/brave-browser/issues/55528
2026-05-15 11:55:06 +01:00
cdesouza-chromium cfb51c172f Disabling PDF Save To Drive (#36452)
This PR disables this feature with the existing buildflag. This may
change in the future.

This feature is showing to users when they browse to a pdf addres, but
it is not working anyway.

Resolves https://github.com/brave/brave-browser/issues/55531
Resolves https://github.com/brave/brave-browser/issues/54852
2026-05-15 00:15:14 +01:00
cdesouza-chromium 6148d17fe6 [brockit][sync] Avoiding bool in DeviceInfo (#36409)
The use of `bool` for `DeviceInfo` fields has led to bugs in the past.
This has been correct with plaster, however we should also convert the
field to an enum to make sure we follow the upstream practice of using
enums in this type.

Resolves https://github.com/brave/brave-browser/issues/55018
2026-05-14 13:26:01 +01:00
cdesouza-chromium b2c2d6f787 [cr149][brockit] @latest-{channel} latest version for all platforms (#36418)
This channge makes the label `@latest-{channel}` to return the latest
version in all platforms, for all channels, not only `canary`.
2026-05-13 22:10:03 +01:00
cdesouza-chromium 5f4207624a [brockit] Fixing dos-and-donts violations (#36416)
This PR corrects several of the dos-and-donts violations under
`tools/cr`. This is particularly useful to prevent future bugs with file
reads and writes that have been persistent from time to time.
2026-05-13 17:04:36 +01:00
cdesouza-chromium 28b12b61aa [brockit] Python dos and donts (#36406)
This change introduces Python dos and donts for `tools/cr`. These are
just some extra guidelines for the project.
2026-05-13 15:18:37 +01:00
cdesouza-chromium 9a23641ee9 [brockit] Rebase v2 foundation (#36369)
This PR introduces the foundation for a new rebase routine to be used by
`brockit` when doing `brockit --rebase`. This routine is nearly feature
complete with the standard one, the only exception being the dropping of
support for `--recommit`, which was introduced but never really used in
CI.

This implementation aims at making the code around rebases cleaner, more
reliable, and easier to customise in the future. It is also already
taking steps towards us having an implementation for `--continue`
support.

An interesting feature this v2 code brings is taht when parsing
questions occur, we bubble up these issues to the use through exceptions
that launch the user editor to evaluate what's going on.

Bug: https://github.com/brave/brave-browser/issues/55466
2026-05-13 14:37:03 +01:00
cdesouza-chromium 5668c5c158 [plaster] Make RequestType insertions more generic (#36289)
This PR changes the way we are patching `RequestType` to not have to
rely on any particular key, but just introduce our keys at the end of
the enum value. This technique allows for the replacemnt of `kMaxValue
to use the new value we provide.
2026-05-13 12:00:39 +01:00
cdesouza-chromium 3f27daa4ff [plaster] Remove count = 1 lines (#36310)
Removing these lines so we can introduce `count` value checks to steer
users towards fixed counts only when needed, and away from `count=0`. At
the moment removing these as they are redundant.
2026-05-12 18:34:53 +01:00
cdesouza-chromium 2d88b2061e MockToolProvider broken on master (#36343)
The implementation on master is mocking `OnNewGenerationLoop`, but this
function doesn't exist.
2026-05-12 15:57:34 +07:00
cdesouza-chromium 1796f9c9a0 [brockit] Tooling path further restructure for relative paths (#36322)
This change does further restruturing to `tools/cr`, as now we are fully
reliant on paths being completely relative, and derived primarily from
`Repository.brave.root` as an anchor for all other relative paths.

With relative paths already landed, we can now further break down
`alias`, and make tests more reliable, by using `FakeChromiumSrc`
sandboxing for all tests. In particular, `tools/cr/commit.py` has also
been introduced, and now the hook destination path is fully relative to
`brave-core` root. This potentially fixes a recurring issue that in some
cases running tests for `install-hook` was uninstalling hooks in the
current `brave-core` checkout.

As an additional, `git cr` calls were not propagating the `cwd`
correctly, and this can now be corrected too.

This change also adds a README.md, to provide some overview of this
path, and some instructions that may be useful to be picked by AI agents
when writing tests.

For better guarantees, `vpython3_utils.py` now handles the file path
resolution to the vpython3 runtime across all applications in this path.

Finally, logging policy is now established with a default logger for
anything using `terminal.py`. This logger can be replaced by individual
applications, but it is of great benefit to be able to call anything
using `terminal.py` with `--verbose` at any moment.
2026-05-11 17:27:13 +01:00
cdesouza-chromium beb58398e9 [git-cr] Make commit its own module (#36317)
This change makes the code for `git-cr` tools more modular. This will
help with test correctness ultimately, as now we are depending fully on
`Repository` for paths, specially install paths, which eliminates a
recurring issue where tests do seem to interfere with the current
install path `brave-core`.
2026-05-11 13:12:29 +01:00
cdesouza-chromium 9adf57c14b [brockit] Test coverage for Rebase (#36315)
This pr introduces full test coverage for `Rebase`, including
integration tests, in preparation for `rebase --continue`.
2026-05-11 12:10:59 +01:00
cdesouza-chromium 44ee9ede93 [brockit] Make Repository.py paths relative (#36307)
This PR changes how we structure path resolution around all the
utilities under `tools/cr` to be truly relative, with all paths
ultimately being derived from the path for the brave repository. This
should make testing in sandboxing more reliable, as we can just rely on
the CWD to override behaviour in a consistent way across multiple tools,
even if they are being launched as a subprocess, which is not possible
when using mock patching for global constants.

This change eleminates the need for `FakeChromiumSrc` as its main use
was to patch `Repository` to use the path of the `tempdir` provided by
`FakeChromiumRepo`.

After this change, all should stay the same, however this change also
does away with `BRAVE_CORE_PATH`, and replaces it with
`repository.brave.root` as a more idiomatic way to indicate a
`brave-core`'s root path.

The main side effect of this change is that now both `brockt`, and
`plaster` should just work by being called anywhere under `brave/`.

Resolves https://github.com/brave/brave-browser/issues/55404
2026-05-11 10:15:00 +01:00
cdesouza-chromium b61da64f10 [plaster][brockit] PlasterFile does not handle errors (#36271)
This change removes uses of `sys.exit(1)` and error message prints from
`PlasterFile`, as this interferes with other tools using this class,
like `cr-mv`, `cr-follow-renames`, and `brockit`.
2026-05-08 23:54:32 +01:00
cdesouza-chromium 35f807c9ab [plaster][cr149] ECDSA_SHA384 🩹🩹🩹🩹 (#36118)
This change migrates all `ECDSA_SHA384` code additions to plaster. These
additions started causing build breakages in M149 due to unwanted
replacements in a proto generated header, which broke nearly all of
them.

These plasters are smart enough to match with the contents of the block
they are aimed at.

Chromium changes:
https://chromium.googlesource.com/chromium/src/+/70cb8d8433679502ede773d828bf31cb0a1bce16

commit 70cb8d8433679502ede773d828bf31cb0a1bce16
Author: hamda mare <hmare@google.com>
Date:   Tue Apr 28 12:53:24 2026 -0700

    Add proto and type definitions for certificate collection

    This CL adds the necessary proto messages and C++ types to support certificate collection in signal reports.

    Bug: 502634772
    Change-Id: I2136d39ac83c293856690a8acef12d6d2babdeec
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7795711
    Reviewed-by: Igor Ruvinov <igorruvinov@chromium.org>
    Reviewed-by: Zonghan Xu <xzonghan@chromium.org>
    Commit-Queue: Hamda Mare <hmare@google.com>
    Cr-Commit-Position: refs/heads/main@{#1621979}

Resolves https://github.com/brave/brave-browser/issues/55193
2026-05-08 23:25:10 +01:00
cdesouza-chromium 91cb6d755d [git-cr] Rewrite gn references of moved targets (#36209)
This PR introduces support for `cr mv` and `cr follow-renames` to
correct `gn` references across the projects when a `BUILD.gn` path
changes. This is a modest introduction to references path correction.
The rewrite does handle relative references though. In source references
are only corrected for the main target, i.e `:basename`, which gets
corrected to the new path base name.

This new approach also attempts to correct gn references to moved
sources, but only for `//` root reference paths. In the future we could
potentially introduce some mechanism handles file renames.

The baseline for this feature was to get the following to build with no
errors:

```
git cr mv components/api_request_helper/ components/api_foo
npm run build -- --target=brave:all
```

As a small detour, this PR adds `npm run format` to these commands, when
wrapping up. This PR also adds a README.md for the `alias` folder.

Resolves https://github.com/brave/brave-browser/issues/55297
2026-05-06 14:59:00 +01:00
cdesouza-chromium a20bdbdae7 Change pinned commit name for plaster reapply (#36206)
This change uses a new label for plaster reapply commits, as the
previous name had `Regen` in it, which can cause confusion with the
similar command `brockit regen`.
2026-05-06 12:02:55 +01:00
cdesouza-chromium b7e667cb83 [presubmit] Patches should use --default-prefix and similar opts (#36157)
The patching machinery in Brave usually creates patches with the
equivalent of:

```
git -C .. diff --src-prefix=a/ --dst-prefix=b/ --default-prefix --full-index --ignore-space-at-eol browser/foo.cc
```

This is not enforced officially, and every now and then someone
generates patches manually and gets them merged with some other type of
header, which ends up causing issues when syncing, or using other types
of tooling that assume certain expectations from these patches. This PR
prevents that.

Another check being added is to validate that a patch added to this path
always have one file only in it, as this is an invariant of our patching
system.

Resolves https://github.com/brave/brave-browser/issues/55231
2026-05-05 21:29:53 +01:00
cdesouza-chromium 54876ddce3 [toolchain] Rust build script under rebase tooling (#36155)
This change moves the script used to generate the rust WASM toolchain
under `tools/cr/toolchains`, as tooling packaging is a Chromium rebase
concern, and it is better kept under the rebase's team purview. A
separate PR has been submitted to fix CI.
2026-05-05 15:31:43 +01:00
cdesouza-chromium d79eeeeded Moving git-cr code under alias/ (#36154)
This PR is pretty much just a rearranging of code, with no practical
function changes. Files have been renamed to be less repetitive and more
intuitive. There are few minor changes though:

1. `_boot.py` has been introduced to allow `alias/` sources to be able
   to include `tools/cr` into path and make themselves a submodule. This
   is not the best posssible solution, but it does avoid having to mess
   with PATH or PYTHONPATH and any other similar constant before calling
   these scripts.
2. `PRESUBMIT.py` has been updated to run tests in subdirectories.
2026-05-05 15:31:03 +01:00
cdesouza-chromium b029715cde [brockit] Adding 🩹 integration (#36127)
This PR adds integration for `plaster` into `brockit`. This involves
primarily changes to how 3way apply works. With this change, whenever
3way apply fails due to conflicts or a broken patch, we take a next step
attempting to fix the issue by rerunning the plaster.

Why not rerun plaster always for any patch managed with a plaster?

It is important to maintain changes in a granular state that they can be
inspected. We don't want to do blanket `plaster` runs because that may
create a huge committable change, that would be harder to inspect and
specially harder to catch unintended plaster new interpretations based
in underlying Chromium changes.

This PR introduces a two step process for plaster:

1. The plaster re-run commit.

This commit is similar to the use of `Conflict-resolved` commits. It
will be commited with a message:

```
Regen-fixed 🩹 patches from Chromium VERSION to VERSION
```

This will be a pinned commit, and it will helps keep track of the
patches that did require a `plaster` rerun to apply again. This commit
follows the same rules of the `Conflict-Resolved` commit when it comes
to fixups for changes touching the patching in the same dev cycle.

2. The introduction of `plaster check`

At the end of the lift, we run `plaster check`. For the vast majority of
the cases, what the plaster rerun would have generated is exactly what
we got with simply reapplying the patch. However, for cases where the
patch re-applied, and yet a plaster re-run would somehow produce
something different, we want to alert about that, and have that
investigated, and committed with a culprit, to make such a change
visible during review.

It is important to notice that `plaster check` also runs during the
`presubmit` step, so even if not caught at this stage, it would be
brought to someone's attention at some point.

- Broken plasters

A new section in the continuation report has been added for broken
plasters, which are required to be either fixed or deleted before
calling `--continue`.

Resolves https://github.com/brave/brave-browser/issues/55188
2026-05-05 00:51:01 +01:00
cdesouza-chromium 108eefb0a8 [git-cr] Introducing git cr mv and git cr follow-renames (#36116)
These are helpers for the rebase process, in particular involve file
renames. These helpers are supposed to be intuitive on their use. These
commands do something similar, and there's overlap between them, but
they are for different purposes.

What happens when you use `git cr mv`:

 * Move source to destination
 * Correct shadowed file inclusion for `chromium_src`
 * Corrects header guards for the new path
 * Corrects all references elsewhere for that file inclusion
 * Deletes stale patches if moving plasters.

What happens when you use `git cr follow-renames`:

Follow renames has a narrow purpose of taking git changes, checking
which files got renamed, and moving only those particular files to a new
location. It will do nearly everything else identical to `git cr mv`.

Resolves https://github.com/brave/brave-browser/issues/55189
2026-05-03 18:53:14 +01:00
cdesouza-chromium 4df5363858 [plaster] Migrate DeviceInfo override (#35958)
This PR rewrites our overrides relating to `DeviceInfo` specifically
into plaster. This involves dropping `BraveDeviceInfo` and implementing
the functionality in terms of extending `DeviceInfo`

Resolves https://github.com/brave/brave-browser/issues/55018
2026-05-02 00:52:35 +01:00
cdesouza-chromium ba0cebce17 [brockit] Simplify Patchfile determination of underlying source (#36101)
This change simplifies a lot of the code around `Patchfile`, but
expecting instances of `Patchfile` to be provided with the expected
`source` value for the source file to be patched. This eliminates a lot
of the creative ways how we were detecting that information.

We can use a single git call to retrieve the underlying source for all
patches, which this change does.

Additionally, there is some sprucing up of the codebase, to make
consitent uses of `Path`. The use of `PurePath` creates the need for a
lot of conversions, so we are making this more consistent.

Resolves https://github.com/brave/brave-browser/issues/55177
2026-05-01 21:44:00 +01:00