Commit Graph
73538 Commits
Author SHA1 Message Date
Claudio DeSouza 8dcafda2ff [cr143] Single-argument testing::{DoAll,Invoke} deprecated
This change removes all the remaining occurrences of these functions
being used with a single argument, following upstream deprecation.

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

commit b843c806672c1e1b950f0868ddde79390c1eea69
Author: Jonathan Lee <jonathanjlee@google.com>
Date:   Mon Oct 13 16:04:32 2025 -0700

    Roll src/third_party/googletest/src/ 244cec869..7917641ff (4 commits)

    **Note to gardeners**: This CL may be incompatible with other CLs that
    add new usage of single-argument `testing::{DoAll,Invoke}`, which are
    deprecated. Please prefer forward-fixing by cleaning up the deprecated
    callsites instead of reverting this roll. The forward-fix is well-
    understood (crbug.com/439838457), and we want CQ to stop new deprecated
    callsites from landing.

    https://chromium.googlesource.com/external/github.com/google/googletest.git/+log/244cec869d12..7917641ff965

    $ git log 244cec869..7917641ff --date=short --no-merges --format='%ad %ae %s'
    2025-09-02 dmauro Bump Abseil dependency to 20250814.0
    2025-08-24 absl-team Remove unused syslog dependency for Fuchsia.
    2025-08-19 absl-team Internal header include changes.
    2025-08-16 absl-team Deprecate single-argument DoAll and Invoke.

    Created with:
      roll-dep src/third_party/googletest/src

    Change-Id: Id197f789d82c374e16b07153012983792fcb4be7
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6920668
    Reviewed-by: Brian Sheedy <bsheedy@chromium.org>
    Commit-Queue: Jonathan Lee <jonathanjlee@google.com>
    Cr-Commit-Position: refs/heads/main@{#1529188}
2025-11-18 11:18:56 -05:00
Claudio DeSouza 5d667c8815 [cr143] Fix Settings::GetClientID override
This class has been renamed to `SettingsReader`, which broke the
override.

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

commit d07f1a28289ee29a6f72e51d8d092db281a1de02
Author: Joshua Pawlicki <waffles@chromium.org>
Date:   Mon Oct 13 12:26:04 2025 -0700

    Update Crashpad to b9d38f35eb99685dfd2c5156a5f629a486568f64

    2060cc8f6c5d Rename third_party/linux/README.crashpad to .md
    b9d38f35eb99 crashpad: Introduce a new SettingsReader type for read-only
                 access

    Bug: 448113221
    Change-Id: I2bb399c30a99e39e80c640e4b815a7d31d48abe2
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7036932
    Commit-Queue: Joshua Pawlicki <waffles@chromium.org>
    Auto-Submit: Joshua Pawlicki <waffles@chromium.org>
    Commit-Queue: Mark Mentovai <mark@chromium.org>
    Reviewed-by: Mark Mentovai <mark@chromium.org>
    Cr-Commit-Position: refs/heads/main@{#1529062}
2025-11-18 11:18:56 -05:00
Claudio DeSouza 1558171985 [cr143] Stubbing off SetModelDownloadSchedulingParams
The whole of `PredictionManager`. This change stubs the newly-added
function.

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

commit 6c50d62e61227069ba739c1a1fc7ea9060863b2b
Author: Judith Hemp <hempjudith@google.com>
Date:   Tue Oct 14 02:06:41 2025 -0700

    Add API to override model download scheduling

    This change introduces a new API that allows consumers of the
    OptimizationGuideModelProvider to specify custom download scheduling
    parameters for the models they observe.

    Bug: 451567181
    Change-Id: I9eb70735f246123528d19e1a8ab63b0e40c3ec30
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7025921
    Reviewed-by: Mike Wittman <wittman@chromium.org>
    Reviewed-by: Elias Klim <elklm@chromium.org>
    Commit-Queue: Judith Hemp <hempjudith@google.com>
    Cr-Commit-Position: refs/heads/main@{#1529383}
2025-11-18 11:18:55 -05:00
Claudio DeSouza f51e8b973a [cr143] Pass Browser to SavedTabGroupBar ctor
The existing override in brave for the instantiation of
`BraveSavedTabGroupBar` was broken once the local `browser_` field was
converted into a `BrowserWindowInterface*`. This change provides the
`Browser*` value again to the constructor in the same way the upstream
code is doing.

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

commit a3248bace171d5a92a5e94d152334ef002df95ab
Author: Thomas Lukaszewicz <tluk@chromium.org>
Date:   Mon Oct 13 14:51:12 2025 -0700

    [bedrock] Eliminate calls to Browser::IsBrowserClosed() part 1

    Currently there are three closing related methods exposed on Browser:
      - IsAttemptingToCloseBrowser()
      - IsBrowserClosed()
      - is_delete_scheduled()

    Currently attempts to close the browser can be blocked for any number of
    reasons:
      - Important browser dialogs that need to be shown before close
        e.g. warn-before-closing dialogs
      - Before unload handlers (can cancel closing the tab)
      - Configurable policies can block closing a tab

    These checks may happen async - and while this happens
    IsAttemptingToCloseBrowser() will return true until the Browser is
    deleted or the close is blocked / cancelled.

    is_delete_scheduled_ becomes true once all the blocking checks above
    have been cleared (close is confirmed and cannot be blocked) and the
    Browser is scheduled for async destruction.

    IsBrowserClosed() currently is set to true at an arbitrary point during
    the Browser close attempt (at a point close can still be blocked by tab
    policy for e.g.). It's behavior is incorrect and not necessary (clients
    should be query either IsAttemptingToCloseBrowser() or
    is_delete_scheduled() depending on their needs).

    This CL replaces calls to Browser::IsBrowserClosed() with checks against
    either IsAttemptingToCloseBrowser() or is_delete_scheduled() depending
    on which is appropriate.

    Bug: 450660162
    Change-Id: I7b666471f4acf8371c692cf45c4fed530a9982dc
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7035131
    Commit-Queue: Tom Lukaszewicz <tluk@chromium.org>
    Reviewed-by: Fred Shih <ffred@chromium.org>
    Cr-Commit-Position: refs/heads/main@{#1529151}
2025-11-18 11:18:55 -05:00
Claudio DeSouza b37f9b5da9 [cr143] Routing GetWebContentsAt through an object
It is not very clear how this function call has been working all along,
but it is clear the call itself is supposed to be routed via the
TabStripModel.
2025-11-18 11:18:55 -05:00
Claudio DeSouza 40abcefd7a [cr143] PermissionStatus::UNSATISTIED_OPTIONS deleted
All the mentions to this enum value in Brave were required enumaration
list where it was treated similar to `DENIED`.

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

commit de9d0f6c71f986bedf12a1c7e3308b0467ee30df
Author: Antonio Sartori <antoniosartori@chromium.org>
Date:   Mon Oct 13 04:58:34 2025 -0700

    [permissions] Remove PermissionStatus::UNSATISTIED_OPTIONS

    This CL removes PermissionStatus::UNSATISFIED_OPTIONS. The initial
    purpose of it was to inform that a request for a capability could be
    downgraded to less strict options (i.e. request for precise location
    but only approximate is granted).

    This only applies to GEOLOCATION at the moment. However, the pattern
    that we currently have in the code [1] is that we can only request
    permission for GEOLOCATION (without specifying precise/approximate)
    and the selected granularity can be inspected looking at the returned
    PermissionResult.

    In practice, UNSATISFIED_OPTIONS at the moment is coupled to the
    states of approximate and precise location (returned in the
    PermissionResult), representing indirectly the same information.
    However, it happens that it is not propagated correctly, and things go
    out of sync. By removing it, we fix those kind of bugs and avoid the
    weird situation in which the caller of a permission check needs to
    check both things and does not know what to do if they are
    inconsistent.

    We can think later on whether we'll actually need to introduce this
    again.

    [1] https://source.chromium.org/chromium/chromium/src/+/main:content/browser/geolocation/geolocation_service_impl.cc;l=52;drc=62a9a00176f862e688fa47919ed6f19b59f77b5f

    Change-Id: Ie23422fe3125b9527da9847f1c9b5456cb6cde4d
    Bug: 393053278
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7030883
    Commit-Queue: Antonio Sartori <antoniosartori@chromium.org>
    Reviewed-by: Mike West <mkwst@chromium.org>
    Reviewed-by: Andy Paicu <andypaicu@chromium.org>
    Reviewed-by: Peter Beverloo <peter@chromium.org>
    Reviewed-by: Christian Dullweber <dullweber@chromium.org>
    Reviewed-by: Colin Blundell <blundell@chromium.org>
    Cr-Commit-Position: refs/heads/main@{#1528842}
2025-11-18 11:18:55 -05:00
Claudio DeSouza 118ca87b36 [cr143] Revert "[CR141] Fixed crash when clicking a split tab (#31391)"
This reverts commit 5ab800e4cc.

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

commit 1c4742b65fce448d71164a0bc770337559982120
Author: Alison Gale <agale@chromium.org>
Date:   Sun Oct 12 21:33:13 2025 -0700

    [SxS] Allow inactive tabs to show modal dialogs

    This is essentially a partial revert of the following four CLs:
    https://chromium-review.googlesource.com/c/chromium/src/+/6886578
    https://chromium-review.googlesource.com/c/chromium/src/+/6937131
    https://chromium-review.googlesource.com/c/chromium/src/+/6950631
    https://chromium-review.googlesource.com/c/chromium/src/+/6962592

    Note that with this change, if the tab with the modal isn't active,
    you can't activate it due to the scrim. I'm following up offline to
    confirm the behavior we want there.

    Bug: 445713779
    Change-Id: Ib8ce37cb959a010b8de582f19c9f87fdcfbe3f1e
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7022422
    Reviewed-by: Eshwar Stalin <estalin@chromium.org>
    Commit-Queue: Alison Gale <agale@chromium.org>
    Reviewed-by: Keren Zhu <kerenzhu@chromium.org>
    Cr-Commit-Position: refs/heads/main@{#1528746}
2025-11-18 11:18:54 -05:00
Claudio DeSouza da44195b5b [cr143] site_settings_prefs_* => set_settings_*
This change affects one of our patches for a file that has been renamed
in the process.

Chromium changes:
https://chromium.googlesource.com/chromium/src/+/5bedf27a1f8a3b67bc93d85009db406ea5899494

commit 5bedf27a1f8a3b67bc93d85009db406ea5899494
Author: Nicola Tommasi <tommasin@chromium.org>
Date:   Mon Oct 13 05:01:12 2025 -0700

    [AI-Fixit][Settings] Rename site_settings_prefs_browser_proxy

    Rename site_settings_prefs_browser_proxy to site_settings_browser_proxy

    Bypass-Check-License: Files renamed
    Bug: 450336829
    Change-Id: Ifcf7e225bbd8f03c396115b0974e1ec8a15808fd
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7021141
    Commit-Queue: Nicola Tommasi <tommasin@chromium.org>
    Reviewed-by: John Lee <johntlee@chromium.org>
    Cr-Commit-Position: refs/heads/main@{#1528846}
2025-11-18 11:18:54 -05:00
Claudio DeSouza 8599a507b6 [cr143][rust] VET_CONFIG_FILE deleted
This value was being patched by us to use our own tree, however that's
not necessary anymore.

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

commit b2db8fa9667498feafdb6795f51ed9602454e4f0
Author: Lukasz Anforowicz <lukasza@chromium.org>
Date:   Mon Oct 13 16:36:54 2025 -0700

    [rust] Remove most remaining `cargo-vet`-related code pieces.

    This CL keeps `chromium_crates_io/supply-chain/audits.toml` (to avoid
    the risk of breaking https://github.com/google/rust-crate-audits), but
    removes other `cargo-vet`-related functionality from Chromium:

    * `supply-chain/config.toml`
    * `gnrt` functionality related to generating `config.toml`
    * `tools/rust` scripts for building the
      `third_party/rust-toolchain/bin/cargo-vet` binary.

    Manually tested by:

    * `cargo test` under `tools/crates/gnrt`
    * `tools/crates/run_gnrt.py gen` and verifying that no changes are
      generated

    Bug: 405980483
    Change-Id: Idba9c73ba951a2ae9b5b46fdd59c6facbdf7ff03
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7037020
    Commit-Queue: Łukasz Anforowicz <lukasza@chromium.org>
    Reviewed-by: Daniel Cheng <dcheng@chromium.org>
    Cr-Commit-Position: refs/heads/main@{#1529201}
2025-11-18 11:18:54 -05:00
Artem Samoilenko 5e69d71e08 [cr143][Android] Changes for ListMenu.Delegate params
Chromium changes:
https://chromium.googlesource.com/chromium/src/+/cb981d31a11e2ad9d9d519e2d790e12e1fedfa3c

commit cb981d31a11e2ad9d9d519e2d790e12e1fedfa3c
Author: Masa Fujita <massan@google.com>
Date:   Thu Oct 9 20:03:59 2025 -0700

    flyout: a11y: Allow users to control flyout menus with keyboard

    This CL adds the ability for the user to use the keyboard to control the
    flyout menus.

    When the user selects an item with arrow keys and decides to proceed,
    the `View`'s click listeneris called. We capture this and run the flyout
    logic when necessary.

    This CL also makes it so that `ListMenuItemAdapter` sets up the view to
    use both the delegate and the click listener upon click.

    Bug: 447103380
    Change-Id: I4560508cdfe63fab553e44478bb48d3ed528caca
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6978443
    Reviewed-by: Peter Conn <peconn@chromium.org>
    Reviewed-by: Ted Choc <tedchoc@chromium.org>
    Reviewed-by: Jenna Himawan <jhimawan@google.com>
    Commit-Queue: Masa Fujita <massan@google.com>
    Cr-Commit-Position: refs/heads/main@{#1527899}
2025-11-18 11:18:53 -05:00
Claudio DeSouza 609768dac9 [cr143] Changes for SidePanelToolbarPinningController
With the introduction of this class, the override for
`NotifyPinnedContainerOfActiveStateChange` is not viable anymore and
moves to `SidePanelToolbarPinningController::UpdateActiveState`, as this
is where the code lives now.

Also, GetActionItem moved to SidePanelUtil.

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

commit f8878892623fb7b457d7e8b1fed9566350be53c6
Author: Steven Luong <stluong@chromium.org>
Date:   Fri Oct 10 15:08:56 2025 -0700

    [SidePanel] Move pinning logic out of SidePanelCoordinator

    Currently the pinning logic is in the SidePanelCoordinator and should
    be moved to a dedicated class that handles pinning because it is only
    relevant for the side panel header.

    Bug: 450649530
    Change-Id: I4da6ff24bbc2e076efdaf26d8377683865e63482
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7029539
    Reviewed-by: Eshwar Stalin <estalin@chromium.org>
    Commit-Queue: Steven Luong <stluong@chromium.org>
    Cr-Commit-Position: refs/heads/main@{#1528396}
2025-11-18 11:18:53 -05:00
Claudio DeSouza b606d7184a [cr143] Stubbing off kWalletUrl
Brave doesn't support Google Wallet, therefore this URL is being
stubbed.

Chromium changes:
https://chromium.googlesource.com/chromium/src/+/380c84ee932222d10b5d9ec1135f65ef3961fa43

commit 380c84ee932222d10b5d9ec1135f65ef3961fa43
Author: Julia Sobiech <jsobiech@google.com>
Date:   Fri Oct 10 13:30:22 2025 -0700

    [Settings/Autofill] Add `category-reference-card` component

    This new component displays a card with a title and a list of chips.
    Each chip consists of an icon and a label. The page is filled with
    example chip data and final data hierarchy will be introduced in a
    following CL.

    Bug: 433612617
    Change-Id: I1bed25c4d01e53364edb46868a9e9c2cc6c9ccba
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6973441
    Reviewed-by: Demetrios Papadopoulos <dpapad@chromium.org>
    Commit-Queue: Julia Sobiech <jsobiech@google.com>
    Reviewed-by: Stanislav Mikheyev <mikhe@google.com>
    Cr-Commit-Position: refs/heads/main@{#1528335}
2025-11-18 11:18:53 -05:00
Emerick Rogul 48687d00d3 [cr143] Deps fixes 2025-11-18 11:18:52 -05:00
Artem Samoilenko 9e35395989 [cr143][Android] Changes for controls position for top control layers
Chromium changes:
https://chromium.googlesource.com/chromium/src/+/01631371f40ab8d0507313d933d7b17f6d7fb3fa

commit 01631371f40ab8d0507313d933d7b17f6d7fb3fa
Author: Wenyu Fu <wenyufu@chromium.org>
Date:   Wed Oct 8 15:57:48 2025 -0700

    [BrowserControls] Check browser controls position for top control layers

    Alternative approach for crrev.com/c/7017923. Consider toolbar and progress bar hidden when controls position is at the bottom.

    Bug: 449925889
    Change-Id: I745a73e988624565db5c2b4b2993bb700e0e514f
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7021342
    Commit-Queue: Wenyu Fu <wenyufu@chromium.org>
    Reviewed-by: Patrick Noland <pnoland@chromium.org>
    Cr-Commit-Position: refs/heads/main@{#1527208}
2025-11-18 11:18:52 -05:00
Artem Samoilenko 5c4141731f [cr143][Android] Changes for omnibox zoom indicator
Chromium changes:
https://chromium.googlesource.com/chromium/src/+/e9a48c51f61fa4a51510be4240accd03b402405c

commit e9a48c51f61fa4a51510be4240accd03b402405c
Author: Hitarth Kothari <hitarthkothari@google.com>
Date:   Wed Oct 8 12:26:45 2025 -0700

    [Zoom Indicator] Add omnibox zoom indicator

    Demo: http://screencast/cast/NTkwNzk3Mjk3MzY1ODExMnw3YjVkNWNlZi05ZQ

    Bug: 442549901

    Change-Id: Iab5c50b4a78659fdc4b980250fadee07dd909078
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6986161
    Commit-Queue: Hitarth Kothari <hitarthkothari@google.com>
    Reviewed-by: Mark Schillaci <mschillaci@google.com>
    Auto-Submit: Hitarth Kothari <hitarthkothari@google.com>
    Reviewed-by: Calder Kitagawa <ckitagawa@chromium.org>
    Cr-Commit-Position: refs/heads/main@{#1527091}
2025-11-18 11:18:52 -05:00
Claudio DeSouza 7f0b51a8aa [cr143] BrowserList::get() deleted
There are other ways now to retrieve a desired browser instance, but
these are not based on the index anymore. This change converts several
places to use the new methods.

Chromium changes:
https://chromium.googlesource.com/chromium/src/+/5d04fa125244492f91c9dfe58b13e32235d2a294

commit 5d04fa125244492f91c9dfe58b13e32235d2a294
Author: Thomas Lukaszewicz <tluk@chromium.org>
Date:   Wed Oct 8 22:09:28 2025 -0700

    [bedrock] Remove BrowserList::get()

    Bug: 431672609
    Change-Id: Iea705ff6957c51b0510e0e0ba1e7144a02ca96f5
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7019989
    Commit-Queue: Tom Lukaszewicz <tluk@chromium.org>
    Reviewed-by: Alex Carutasu <alcaruta@microsoft.com>
    Cr-Commit-Position: refs/heads/main@{#1527329}
2025-11-18 11:18:51 -05:00
Claudio DeSouza 7d54897d85 [cr143] InProcessBrowserTest::SelectFirstBrowser() removed
This value is now set with the help of `BrowserCreatedObserver`.

Chromium changes:
https://chromium.googlesource.com/chromium/src/+/5202ab57139b9c0d8a6be73af944eb5601a09d74

commit 5202ab57139b9c0d8a6be73af944eb5601a09d74
Author: Thomas Lukaszewicz <tluk@chromium.org>
Date:   Wed Oct 8 18:22:18 2025 -0700

    [bedrock] Remove InProcessBrowserTest::SelectLastActive()

    There are no intended behavioral changes in this CL, this is purely
    a test refactor.

    This CL replaces all remaining uses of SelectFirstBrowser() with
    SetBrowser(), forcing tests to be explicit which Browser instance
    is being set to default - eliminating the dependency on
    BrowserList ordering.

    During setup the last-active Browser is now set as the default
    Browser instance. In the vast majority of cases (barring possibly
    session-restore browser tests) this is the only Browser instance in
    the environment.

    Bug: 431672609
    Change-Id: I0c0eb6e0a7a5b8a7d194c6b27ee3f90ac2972c1b
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7019129
    Commit-Queue: Tom Lukaszewicz <tluk@chromium.org>
    Reviewed-by: Hidehiko Abe <hidehiko@chromium.org>
    Cr-Commit-Position: refs/heads/main@{#1527272}
2025-11-18 11:18:51 -05:00
Claudio DeSouza 2f3e32a10b [cr143] Use MemoryPressureListenerRegistration
`MemoryPressureListener` is now an abstract class. This change for now
migrates to use `MemoryPressureListenerRegistration`, but the
constructor chosen is already deprecated. Another mirgation will take
place once the path for it is a bit clearer.

Chromium changes:
https://chromium.googlesource.com/chromium/src/+/220ae86e5c28f0c21a64990cae0a28d1f234b0fc

commit 220ae86e5c28f0c21a64990cae0a28d1f234b0fc
Author: Patrick Monette <pmonette@chromium.org>
Date:   Thu Oct 9 20:29:28 2025 -0700

    Add MemoryPressureListener interface

    This change adds an new constructor overload to
    MemoryPressureListenerRegistration that accepts a pointer to a
    MemoryPressureListener implementation.

    Bug: 436324601
    Change-Id: I0440405e56d986417d8245c73f4263b34cb5f80e
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7016598
    Reviewed-by: Francois Pierre Doray <fdoray@chromium.org>
    Commit-Queue: Patrick Monette <pmonette@chromium.org>
    Cr-Commit-Position: refs/heads/main@{#1527903}
2025-11-18 11:18:51 -05:00
Claudio DeSouza 8c175faa30 [cr143] Correct GetPrepopulatedEngine overrides
This function and others along with it are now taking the vector
argument by ref.

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

commit 7c778f99c696f4c979179972a780de8b43aaffd4
Author: Nicolas Dossou-Gbete <dgn@chromium.org>
Date:   Thu Oct 9 01:05:22 2025 -0700

    rcaps: Add some tests for keyword-based OSE resource matching

    Also cleans some duplicated TemplateURLPrepopulateData code.

    Bug: 448877758
    Change-Id: Ia9614129b68e90fcba0c92e909f912d22612624c
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7016631
    Auto-Submit: Nicolas Dossou-Gbété <dgn@chromium.org>
    Reviewed-by: Tomasz Wiszkowski <ender@google.com>
    Commit-Queue: Nicolas Dossou-Gbété <dgn@chromium.org>
    Cr-Commit-Position: refs/heads/main@{#1527376}
2025-11-18 11:18:50 -05:00
Claudio DeSouza 83ab0cd4f6 [cr143] Fixing ChromeBrowserMainParts replacements
Unfortunately with the current way how `ChromeBrowserMainParts` is
replaced with a `ChromeBrowserMainParts_ChromiumImpl` there a certain
viral aspect to it, where the external functions using the same class
point end up pointing to a derived class, rather than the Chromium
implementation one.

This change applies this substitution in other places where
`ChromeBrowserMainParts_ChromiumImpl` is expected because the function
in question is called in the body of `ChromeBrowserMainParts`.

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

commit d71ed037ed0acb08f0c4416e5673d31b047df708
Author: Lei Zhang <thestig@chromium.org>
Date:   Thu Oct 9 12:59:50 2025 -0700

    Move ChromeBrowserMainParts code out of chrome_content_browser_client.cc

    Currently, ChromeContentBrowserClient::CreateBrowserMainParts() does all
    the work of selecting the right parts to instantiate. Move this code
    into a new ChromeBrowserMainParts::Create() instead. Then
    chrome_content_browser_client.cc, which is the one of the largest and
    slowest to compile files in the source tree, builds about 3 seconds
    faster in build time benchmarks on a physical workstation. While
    chrome_browser_main.cc, which compiles in about half the time, builds
    about 2.5 seconds slower. Given modern CPUs with many cores, this better
    balances parallel work. Since compiling chrome_content_browser_client.cc
    blocks the critical path to linking the chrome binary, this speeds up
    the overall build by about 3 seconds.

    Change-Id: I4223aa5fc88f615b5157397fffdc47a8b88a7d2c
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7022412
    Reviewed-by: Erik Chen <erikchen@chromium.org>
    Commit-Queue: Lei Zhang <thestig@chromium.org>
    Cr-Commit-Position: refs/heads/main@{#1527728}
2025-11-18 11:18:50 -05:00
Claudio DeSouza 38dc9f46f4 [cr143] ExtensionsMenuViewController renamed
This class is now named `ExtensionsMenuViewPlatformDelegateViews`. This
affects the patch and override in place for it.

Chromium changes:
https://chromium.googlesource.com/chromium/src/+/52cb76cffd1782264aef9daf6e1ea7fb325af6bf

commit 52cb76cffd1782264aef9daf6e1ea7fb325af6bf
Author: EmiliaPaz <emiliapaz@chromium.org>
Date:   Thu Oct 9 17:00:40 2025 -0700

    [Extensions] Change menu platform delegate views name

    ExtensionsMenuViewController was used as the extensions menu
    controller for views::View. With the introduction of a
    platform-agnostic menu controller, it is renamed to
    ExtensionsMenuViewPlatformDelegateView.

    No functionality changed.

    Bug: 449814184
    Bypass-Check-License: moved file
    Change-Id: I09337c68145af5e051568def8ac75da48057dd8c
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7018110
    Reviewed-by: Tim <tjudkins@chromium.org>
    Commit-Queue: Emilia Paz <emiliapaz@chromium.org>
    Cr-Commit-Position: refs/heads/main@{#1527847}
2025-11-18 11:18:50 -05:00
Artem Samoilenko a490d490c0 [cr143][Android] Changes for kLinkedServicesSetting disabled code
Chromium changes:
https://chromium.googlesource.com/chromium/src/+/8e0ca53362ef330a49b98c7add3a7857fc82405e

commit 8e0ca53362ef330a49b98c7add3a7857fc82405e
Author: Martin Šrámek <msramek@chromium.org>
Date:   Tue Oct 7 11:40:45 2025 -0700

    Remove the kLinkedServicesSetting disabled code on Desktop and Android

    Since the feature has been launched.

    Apart from removing many references to the feature, flag, and tests, we're also adapting the ManageSyncSettings code from the previous approach (where the old strings were set in the XML file and the new strings programmatically overwritten in the Java code) to one where the strings are simply set in the XML file.

    We're not removing the equivalent codepaths on iOS, where it hasn't launched yet.

    Bug: 343132001
    Change-Id: I8b92689b67db9485e87dd99657a32f1601277553
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7006398
    Reviewed-by: Rainhard Findling <rainhard@chromium.org>
    Commit-Queue: Martin Šrámek <msramek@chromium.org>
    Reviewed-by: Marc Treib <treib@chromium.org>
    Cr-Commit-Position: refs/heads/main@{#1526439}
2025-11-18 11:18:49 -05:00
Claudio DeSouza 8c6d8ec944 [cr143] kWalletPassesPageURL stub
This is a Google Wallet url, which brave does not support.

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

commit d06de0e3a20ce3de8f710b75beff2916af6427d7
Author: Bruno Braga <brunobraga@google.com>
Date:   Wed Oct 8 10:14:26 2025 -0700

    Reland "[AutofillAi] Walletable Entities have icon and link in management page"

    This reverts commit 8a098e225d05ed2977b03214bd5b798bd81230c0.

    Reason for revert: The issue with the original CL was likely that
    the test was not taking into account the difference between
    branded an non-branded builds. The branded builds uses an internal
    Google Wallet icon, while the non-branded one uses a placeholder
    string. The test is now fixed to check for a shared element
    (icon button) that exists in both branded and non-branded builds.

    Original change's description:
    > Revert "[AutofillAi] Walletable Entities have icon and link in management page"
    >
    > This reverts commit dddb1559416d4e4a4edf9f5b65af62532d4f92a6.
    >
    > Reason for revert: Suspected this broke SettingsTest.AutofillAiSection__AutofillAiSectionUiTest_AutofillAiWalletEntitiesDisplayWalletText - first failing build at https://ci.chromium.org/ui/p/chrome/builders/ci/linux-chromeos-chrome/53891/overview
    >
    > Original change's description:
    > > [AutofillAi] Walletable Entities have icon and link in management page
    > >
    > > screenshot (non branded): https://screenshot.googleplex.com/C2akg5qAvV2Ckoc
    > > screenshot (branded):
    > > https://screenshot.googleplex.com/3aiVkUxRmfpf8Hp
    > >
    > > Bug: 445677971
    > > Change-Id: I6ab9dc5bec5d38edc7b7acb78f1808e4c3f52fff
    > > Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6968624
    > > Auto-Submit: Bruno Braga <brunobraga@google.com>
    > > Reviewed-by: Jan Keitel <jkeitel@google.com>
    > > Commit-Queue: Jan Keitel <jkeitel@google.com>
    > > Cr-Commit-Position: refs/heads/main@{#1522739}
    >
    > Bug: 445677971
    > No-Presubmit: true
    > No-Tree-Checks: true
    > No-Try: true
    > Change-Id: Id49860270fc4a6da0429d6a79c487dcfba3eea3b
    > Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6999452
    > Reviewed-by: Ravjit Uppal <ravjit@chromium.org>
    > Commit-Queue: Robert Flack <flackr@chromium.org>
    > Owners-Override: Robert Flack <flackr@chromium.org>
    > Auto-Submit: Robert Flack <flackr@chromium.org>
    > Bot-Commit: Rubber Stamper <rubber-stamper@appspot.gserviceaccount.com>
    > Cr-Commit-Position: refs/heads/main@{#1522823}

    Bug: 445677971
    Change-Id: I013c3d16ff568028bad92e1074a04ea466291c2d
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7002760
    Reviewed-by: Tim <tjudkins@chromium.org>
    Commit-Queue: Bruno Braga <brunobraga@google.com>
    Reviewed-by: Norge Vizcay <vizcay@google.com>
    Reviewed-by: Demetrios Papadopoulos <dpapad@chromium.org>
    Cr-Commit-Position: refs/heads/main@{#1526998}
2025-11-18 11:18:49 -05:00
Claudio DeSouza 34775ed172 [cr143] Fix callback for CopyFromSurface
This function now passes a structure into the callback, rather than a
Bitmap.

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

commit 2cef47a5d910fb5534cc9a47e9da69509f2fdcf5
Author: Chris Fredrickson <cfredric@chromium.org>
Date:   Wed Oct 8 12:33:28 2025 -0700

    Add wrapper struct for CopyFromSurface output

    This will allow CopyFromSurface to return metadata alongside the bitmap
    itself. This does not change any behavior yet; followup CLs will add
    metadata and change caller(s).

    Bug: b:441532128
    Change-Id: I26765812968770bce8069150309be1f0981e5183
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7003989
    Reviewed-by: thefrog <thefrog@chromium.org>
    Auto-Submit: Chris Fredrickson <cfredric@chromium.org>
    Reviewed-by: Reilly Grant <reillyg@chromium.org>
    Commit-Queue: Duncan Mercer <mercerd@google.com>
    Reviewed-by: Andrey Kosyakov <caseq@chromium.org>
    Reviewed-by: Avi Drissman <avi@chromium.org>
    Reviewed-by: Duncan Mercer <mercerd@google.com>
    Reviewed-by: Khushal Sagar <khushalsagar@chromium.org>
    Reviewed-by: Kyle Horimoto <khorimoto@chromium.org>
    Cr-Commit-Position: refs/heads/main@{#1527094}
2025-11-18 11:18:49 -05:00
Claudio DeSouza 1afa9869b3 [cr143] BrowserViewLayouttaking main_region
This affects the constructor declaration, with some reordering.

Chromium changes:
https://chromium.googlesource.com/chromium/src/+/43f894f3cc8906a052fddc7264518d6b039a3e9b

commit 43f894f3cc8906a052fddc7264518d6b039a3e9b
Author: dljames <dljames@chromium.org>
Date:   Wed Oct 8 15:00:03 2025 -0700

    [TBHSP] Add MainRegion container view

    The main_region_ is introduced to hold 2 things:

    1) The main_container_ (holds the primary UI elements that are affected
    by the ToolbarHeightSidePanel)

    2) The toolbar height side panel

    This change allows us to resize the main components of the browser
    together while allowing the toolbar height side panel to display to its
    full height.

    Change-Id: I4dcddca73d28d0c95def11427f349ebeb4e37049
    Bug: 448163576
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7014039
    Commit-Queue: Darryl James <dljames@chromium.org>
    Reviewed-by: Eshwar Stalin <estalin@chromium.org>
    Cr-Commit-Position: refs/heads/main@{#1527179}
2025-11-18 11:18:48 -05:00
Claudio DeSouza 790d225152 [cr143] Avoid unwanted SidePanelCoordinator substitution
`ContextualTasksSidePanelCoordinator` has been introduced, and the
shadow file for BroswerWindowFeature was uninitentionally applying a
replacement for `SidePanelCoordinator` in the new header.

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

commit fd79ed51dbf90f12dc945bfa810559563b839ecd
Author: Yuheng Huang <yuhengh@chromium.org>
Date:   Tue Oct 7 13:27:05 2025 -0700

    [Contextual Tasks] Add side panel support

    The CL adds a global side panel entry, a browser action and a menu item
    to the 3 dots menu when the feature is enabled. Also hook up a showUi
    mojom call in order to have it load properly and show up in side panel.

    NO_IFTTT='No change needed in render_view_context_menu.h'

    Screencast: https://screencast.googleplex.com/cast/NDg5NDI0OTIwNzIwMTc5MnwzOTU5Y2Q4Zi0xZA
    Bug: 449228314
    Change-Id: I2150ad09cc319a79e0f383e12f38e8a7ba063662
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6997936
    Reviewed-by: Mustafa Emre Acer <meacer@chromium.org>
    Reviewed-by: Robert Kaplow <rkaplow@chromium.org>
    Reviewed-by: Matthew Jones <mdjones@chromium.org>
    Commit-Queue: Yuheng Huang <yuhengh@chromium.org>
    Reviewed-by: Ted Choc <tedchoc@chromium.org>
    Reviewed-by: Tom Lukaszewicz <tluk@chromium.org>
    Cr-Commit-Position: refs/heads/main@{#1526495}
2025-11-18 11:18:48 -05:00
Claudio DeSouza 382664ec71 [cr143] Adding BraveSidePanel::GetHeaderView
This method is similar to the one provided in the upstream class.

Chromium changes:
https://chromium.googlesource.com/chromium/src/+/0755581aabf319de48327db7f8768d1a8d981ecb

commit 0755581aabf319de48327db7f8768d1a8d981ecb
Author: Eshwar Stalin <estalin@chromium.org>
Date:   Tue Oct 7 11:52:33 2025 -0700

    Consolidating and simplifying SidePanelHeader logic management

    Change-Id: If4cc5d55ccfa5f02393f8b0bf05b20b896496d54
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7011611
    Reviewed-by: Caroline Rising <corising@chromium.org>
    Reviewed-by: Steven Luong <stluong@chromium.org>
    Commit-Queue: Eshwar Stalin <estalin@chromium.org>
    Cr-Commit-Position: refs/heads/main@{#1526442}
2025-11-18 11:18:48 -05:00
Claudio DeSouza 0816bab14e [cr143] Use base::MemoryPressureLevel
The existing code was making use of an alias, that is now revmoved.

Chromium changes:
https://chromium.googlesource.com/chromium/src/+/845ec8309a3729a40ced9f3aabd8622f396592f9

commit 845ec8309a3729a40ced9f3aabd8622f396592f9
Author: Patrick Monette <pmonette@chromium.org>
Date:   Tue Oct 7 11:23:23 2025 -0700

    Remove usage of MemoryPressureLevel alias.

    The actual alias will be removed in another CL to reduce the chances of
    revert.

    Bug: 436324601
    Change-Id: I73e8837b454177d79006d3e61bbb5ff659e429bb
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7013949
    Commit-Queue: Francois Pierre Doray <fdoray@chromium.org>
    Commit-Queue: Patrick Monette <pmonette@chromium.org>
    Reviewed-by: Francois Pierre Doray <fdoray@chromium.org>
    Owners-Override: Francois Pierre Doray <fdoray@chromium.org>
    Cr-Commit-Position: refs/heads/main@{#1526427}
2025-11-18 11:18:47 -05:00
Claudio DeSouza db72b622f3 [cr143] kPinnedTabToastOnClose made default
Chromium changes:
https://chromium.googlesource.com/chromium/src/+/c58add96a24cee7771e0f4f7d5a047f042eae1be

commit c58add96a24cee7771e0f4f7d5a047f042eae1be
Author: dljames <dljames@chromium.org>
Date:   Mon Oct 6 15:37:53 2025 -0700

    [PinnedTabToastOnClose] Remove feature flag for default enabled feature

    The PinnedTabToastOnClose feature has been default enabled for nearly 3
    months. Removing the feature flag code since it is no longer needed.

    Change-Id: Ib1476176805c8c5e6a4d33ce808aa3b15a048ac6
    Bug: 409822606
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7007252
    Reviewed-by: Steven Luong <stluong@chromium.org>
    Commit-Queue: Darryl James <dljames@chromium.org>
    Cr-Commit-Position: refs/heads/main@{#1525905}
2025-11-18 11:18:47 -05:00
Claudio DeSouza 13a2651e70 [cr143] GURL::*_piece() removed
All the main methods now return a string_piece, which made the `_piece`
functions redundant.

Chromium changes:
https://chromium.googlesource.com/chromium/src/+/566074ac1aee3a91cbec0d2eac3120b7dd71860b

commit 566074ac1aee3a91cbec0d2eac3120b7dd71860b
Author: Charlie Harrison <csharrison@chromium.org>
Date:   Mon Oct 6 19:18:05 2025 -0700

    Remove GURL::*_piece() method

    There are no more users of this deprecated and misnamed API.
    This completes phase 1.5 of crbug.com/448174617.

    Bug: 448174617
    Change-Id: I82918ec4ec10b68729c31cb36487c7cb02ad0b56
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7008912
    Reviewed-by: Daniel Cheng <dcheng@chromium.org>
    Commit-Queue: Daniel Cheng <dcheng@chromium.org>
    Owners-Override: Charlie Harrison <csharrison@chromium.org>
    Owners-Override: Daniel Cheng <dcheng@chromium.org>
    Cr-Commit-Position: refs/heads/main@{#1525986}
2025-11-18 11:18:46 -05:00
Claudio DeSouza 70625c31c5 [cr143] site_settings_page/ merged into site_settings/
Chromium changes:
https://chromium.googlesource.com/chromium/src/+/8a463db577ff86ef8c319bc4618dc5c2e838e88f

commit 8a463db577ff86ef8c319bc4618dc5c2e838e88f
Author: Nicola Tommasi <tommasin@chromium.org>
Date:   Tue Oct 7 00:08:11 2025 -0700

    [AI-Fixit][Settings] Merge site_settings_page/ into site_settings/

    In order to improve WebUI privacy_page subfolder organization we're
    merging site_settings_page/ into site_settings/

    Bypass-Check-License: Files moved
    Bug: 441410654
    Change-Id: If595581c0c72dce8f9a43b1b936e7b8ba9cb9a93
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7002672
    Commit-Queue: Nicola Tommasi <tommasin@chromium.org>
    Reviewed-by: Rainhard Findling <rainhard@chromium.org>
    Reviewed-by: Demetrios Papadopoulos <dpapad@chromium.org>
    Cr-Commit-Position: refs/heads/main@{#1526074}
2025-11-18 11:18:45 -05:00
Artem Samoilenko 5feab60fc9 [cr143][Android] Changes for added @NullMarked to ToolbarManager
Chromium changes:
https://chromium.googlesource.com/chromium/src/+/97ad9563567b9ef2295f81fcbe03212092c31517

commit 97ad9563567b9ef2295f81fcbe03212092c31517
Author: Henrique Nakashima <hnakashima@chromium.org>
Date:   Fri Oct 3 12:22:57 2025 -0700

    [Android] Add @NullMarked to ToolbarManager

    Cq-Include-Trybots: luci.chromium.try:android-15-tablet-x64-rel,android-desktop-15-x64-fyi-rel;luci.chrome.try:android-internal-dbg,android-internal-rel
    Bug: 389129271,448691376
    Change-Id: I616e4c7be45ee3e80c8e9eb3c0a3a30884de7f01
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7000530
    Reviewed-by: Andrew Grieve <agrieve@chromium.org>
    Auto-Submit: Henrique Nakashima <hnakashima@chromium.org>
    Commit-Queue: Henrique Nakashima <hnakashima@chromium.org>
    Cr-Commit-Position: refs/heads/main@{#1524919}
2025-11-18 11:18:44 -05:00
Artem Samoilenko 53cb0a4775 [cr143][Android] Changes for refactor initialization of NtpCustomizationConfigManager
Chromium changes:
https://chromium.googlesource.com/chromium/src/+/e9da334545f4152c14f5e60b2209b89ae7f49d9b

commit e9da334545f4152c14f5e60b2209b89ae7f49d9b
Author: Xi Han <hanxi@google.com>
Date:   Fri Oct 3 14:58:20 2025 -0700

    [Theme] Refactor initialization of NtpCustomizationConfigManager.

    In this CL, we split the initialization of NtpCustomizationConfigManager:
    - For customized colors: move to maybeInitializeColorTheme() and it is
      triggered when listener is added which can provide the current
      Activity's context. This is because a colorId could return different
      color value in light|dark modes.
    - For customized images: initialization remains in the constructor.
    This is a refactoring CL without any behaviour changes.

    Bug: 423579377
    Change-Id: I9852565c0d4042fa4f0a4970756823ad88e6dd10
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7003871
    Reviewed-by: Xinyi Ji <xinyiji@chromium.org>
    Commit-Queue: Xi Han <hanxi@chromium.org>
    Reviewed-by: Wenyu Fu <wenyufu@chromium.org>
    Cr-Commit-Position: refs/heads/main@{#1525042}
2025-11-18 11:18:44 -05:00
Artem Samoilenko 9a68550466 [cr143][Android] Refactor LogoView to use Drawable from SVG file
Chromium changes:
https://chromium.googlesource.com/chromium/src/+/b6ebd28f9a489688be248371f224d79ca2d93604

commit b6ebd28f9a489688be248371f224d79ca2d93604
Author: Xi Han <hanxi@google.com>
Date:   Fri Oct 3 10:16:24 2025 -0700

    [Theme] Refactor LogoView to use Drawable from SVG file.

    Today, the LogoView uses png files to draw Google Logo, which isn't
    efficient in binary size and performance. In this CL:
    1. Add ic_google_logo.xml, which could replace all google_logo.png;
    2. In LogoView, add logo Drawable.
    3. All changes are behind flag.
    This is a refactoring CL without any behaviour changes.
    Video: http://shortn/_uEO2ICjrUF.

    BYPASS_LARGE_CHANGE_WARNING: will be removed in crrev.com/c/7004745 .

    Bug: 423579377
    Change-Id: I16690a7989e9fd15837a132a073792bcce318ee7
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7003403
    Commit-Queue: Xi Han <hanxi@chromium.org>
    Reviewed-by: Sky Malice <skym@chromium.org>
    Cr-Commit-Position: refs/heads/main@{#1524855}
2025-11-18 11:18:44 -05:00
Claudio DeSouza ef6356613f [cr143][rust] Removing OUT_DIR patching
The workround for these are not necessary anymore, as upstream has
rolled out a solution to make these paths absolute.

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

commit c0a2debb2e8d313dcb992cdfb2710b6c39ce6a4b
Author: Lukasz Anforowicz <lukasza@chromium.org>
Date:   Mon Oct 6 09:43:37 2025 -0700

    [rust] Avoid explicitly using build directory in ninja-level args.

    Before this CL, arguments of `rustc_wrapper.py` could have contained
    machine-specific bits (e.g. `OUT_DIR=../../../../out/Default/....`).
    Such machine-specific bits are in general unfriendly toward caching
    and distributed builds.

    After this CL, we compute `OUT_DIR` as a path relative to the build
    root (rather than relative to the crate root).  This avoids having
    machine-specific bits in arguments of `rustc_wrapper.py`.

    But only making the change above would break
    `include!(concat!(env!("OUT_DIR"), "/foo.rs")) because `rustc` resolves
    such `include!` path relative to the crate root.  So this CL also
    modifies `rustc_wrapper.py` to rewrite all environment variables to
    absolute paths (including `OUT_DIR` and `SDKROOT`;  the latter was
    already being rewritten even before this CL).

    But only making the changes above would means that `.d` files contain
    absolute paths and `ninja` / `siso` complain and error out when that
    happens.  So this CL also tweaks `rustc_wrapper.py` to rewrite `.d`
    files to use build-root-relative paths.

    Fixed: 448040713
    Fixed: 300352286
    Change-Id: I4b7674ddfeafb1d62dcd3658707c3e81989cc006
    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
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7006886
    Reviewed-by: Takuto Ikuta <tikuta@chromium.org>
    Commit-Queue: Łukasz Anforowicz <lukasza@chromium.org>
    Cr-Commit-Position: refs/heads/main@{#1525663}
2025-11-18 11:18:43 -05:00
Claudio DeSouza 1c54f90902 [cr143] Updating AddObserverForOptimizationTargetModel stub
This function's arg list has changed, and therefore it needs to match
the upstream arglist.

Chromium changes:
https://chromium.googlesource.com/chromium/src/+/35efa85f133fe268730020986fba73403fad1213

commit 35efa85f133fe268730020986fba73403fad1213
Author: Mike Wittman <wittman@chromium.org>
Date:   Mon Oct 6 11:14:25 2025 -0700

    Default to the same task runner for model loading and execution

    Moves model loading onto the same task runners as are used for
    execution, for the purpose of having identical task execution priority.
    Excludes AutocompleteScoringModelHandler which runs its model on the
    main thread, and where we don't want to do file I/O.

    Rationale: if running a model is important enough to have user visible
    or user blocking impacts, it's very likely that clients will want to
    load the model as soon as possible and not wait for best effort task
    execution.

    Bug: 429938366
    Change-Id: Iad24ac32845f21a27afbe24af12f1ee7fec14607
    AX-Relnotes: n/a
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6972854
    Reviewed-by: Xinghui Lu <xinghuilu@chromium.org>
    Reviewed-by: Steven Holte <holte@chromium.org>
    Reviewed-by: Dana Fried <dfried@chromium.org>
    Reviewed-by: Siddhartha S <ssid@chromium.org>
    Reviewed-by: Salvador Guerrero Ramos <salg@google.com>
    Commit-Queue: Mike Wittman <wittman@chromium.org>
    Reviewed-by: Nathan Memmott <memmott@chromium.org>
    Reviewed-by: Elias Klim <elklm@chromium.org>
    Reviewed-by: manuk hovanesian <manukh@chromium.org>
    Reviewed-by: Dominic Battre <battre@chromium.org>
    Cr-Commit-Position: refs/heads/main@{#1525726}
2025-11-18 11:18:43 -05:00
Claudio DeSouza fb77d0657b [cr143] Adding stubs for new My Acctivity urls
Brave does not show My Activity urls or interfaces.

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

commit c4ab1cd2469b66c5393c4fb21be6c9fd45396d55
Author: Martin Šrámek <msramek@chromium.org>
Date:   Mon Oct 6 12:28:26 2025 -0700

    Move MyActivity constants from grit to .cc

    The constants were also renamed along the lines of "MyActivityFromHistory" instead of "HistoryInMyActivity", so they stay next to each other in the alphabetical sorting.

    Bug: 442273696
    Change-Id: I19b96a6f2374872972eef1858cc430c82bcee29b
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7008340
    Reviewed-by: Demetrios Papadopoulos <dpapad@chromium.org>
    Commit-Queue: Martin Šrámek <msramek@chromium.org>
    Cr-Commit-Position: refs/heads/main@{#1525780}
2025-11-18 11:18:43 -05:00
Claudio DeSouza 4536ef9158 [cr143] Reachoring BraveBrowserView friend stmt
The previous unique token is gone, and this change uses a different one.

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

commit d031210359bc83e34633a9ec8ebf8fbd44687b69
Author: Dana Fried <dfried@chromium.org>
Date:   Mon Oct 6 10:23:39 2025 -0700

    [Browser Layout] Switch to new frame layout API by default

    This CL:
     - Makes the "use new layout" feature into an always-on killswitch
     - Renames BrowserViewLayoutDelegateImplNew to
       BrowserViewLayoutDelegateImpl
     - Removes references to the feature flag elsewhere

    The effect will be that in addition to the flag being on for all CQ
    testbots and ToT builds, it will also be on for Canary, Dev, and CI
    bots.

    This should allow us to collect error reports from more users and
    determine if there are any issues with the new logic.

    Bug: 443123625
    Change-Id: Id2d7f6818ed1aba1ed8842b24275e0e7dfe0488e
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7011507
    Commit-Queue: Dana Fried <dfried@chromium.org>
    Reviewed-by: Darryl James <dljames@chromium.org>
    Cr-Commit-Position: refs/heads/main@{#1525685}
2025-11-18 11:18:43 -05:00
Claudio DeSouza 342ff785b5 [cr143] kTopLevelTpcdOriginTrial deleted
This feature was being disabled, however this recent CL has completely
removed the code it was guarding.

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

commit ac1a331a845ff0eb45787915b786e34cd7e96085
Author: Joshua Hood <jdh@chromium.org>
Date:   Mon Oct 6 08:21:03 2025 -0700

    Delete the Origin Trial for Third Party Cookie Deprecation

    The removal includes:
    - Deleting the tpcd::trial::OriginTrialService and its factory.
    - Removing the TOP_LEVEL_TPCD_ORIGIN_TRIAL content setting.
    - Cleaning up related logic in CookieSettings and other components.
    - Removing the kTopLevelTpcdOriginTrial feature flag.

    Bug: 448432611
    Change-Id: I32fe899067ddb7d18a9a7d564c60844d676597d4
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7004601
    Reviewed-by: Ken Buchanan <kenrb@chromium.org>
    Commit-Queue: Joshua Hood <jdh@chromium.org>
    Reviewed-by: mmenke <mmenke@chromium.org>
    Reviewed-by: Colin Blundell <blundell@chromium.org>
    Cr-Commit-Position: refs/heads/main@{#1525614}
2025-11-18 11:18:42 -05:00
Claudio DeSouza e8a405b88d [cr143][WIP] SidePanelCoordinator::CreateHeader deleted
Chromium changes:
https://chromium.googlesource.com/chromium/src/+/eeeafbf73ca5c6baa58a85d54d5e5a96df91c8a0

commit eeeafbf73ca5c6baa58a85d54d5e5a96df91c8a0
Author: Steven Luong <stluong@chromium.org>
Date:   Fri Oct 3 14:16:15 2025 -0700

    Move side panel header code out of SidePanelCoordinator

    The side panel header code should be moved out of the
    SidePanelCoordinator and into the side_panel_header.h/.cc file instead
    so that the coordinator can focus on coodinating which side panel
    entry to show instead of also needing to layout the header as well.

    Fixed: 448129053
    Change-Id: Ia7bc90632321fe0c9dd722748cc38818644de865
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7005045
    Reviewed-by: Caroline Rising <corising@chromium.org>
    Reviewed-by: Eshwar Stalin <estalin@chromium.org>
    Commit-Queue: Steven Luong <stluong@chromium.org>
    Cr-Commit-Position: refs/heads/main@{#1525021}
2025-11-18 11:18:42 -05:00
Claudio DeSouza f8abaa5036 [cr143] OmniboxEditModel::CurrentMatch() simplified
This function used to offer an alterate URL outparam, but that's now a
functionality offered by a separate function.

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

commit e1f54419f9f4c4adfda94f4bdbac16517586ee4c
Author: Lei Zhang <thestig@chromium.org>
Date:   Fri Oct 3 17:36:36 2025 -0700

    Rename OmniboxEditModel::CurrentMatch() and add simpler CurrentMatch()

    Currently, almost all CurrentMatch() callers have to pass in a nullptr
    for the out-parameter, since they do not need the alternate navigation
    URL. Simplify this situation by renaming CurrentMatch() to
    CurrentMatchAndAlternateNavUrl() to better describe what it actually
    does. Then add a new CurrentMatch() that does not have an out-parameter.
    It simply wraps CurrentMatchAndAlternateNavUrl(). Then update
    CurrentMatch() callers appropriately.

    Along the way, also update ui_test_utils::SendToOmniboxAndSubmit() to
    use std::string_view instead of std::string.

    Change-Id: I6ab95e8412a3542b5e4e95dc412923e7c9908a97
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7008660
    Commit-Queue: Lei Zhang <thestig@chromium.org>
    Reviewed-by: manuk hovanesian <manukh@chromium.org>
    Cr-Commit-Position: refs/heads/main@{#1525098}
2025-11-18 11:18:42 -05:00
Claudio DeSouza b1033f3322 [cr143] mojoString16ToString deleted
Chromium changes:
https://chromium.googlesource.com/chromium/src/+/12fc15823a476304996ed4ea31d17521808b4d6d

commit 12fc15823a476304996ed4ea31d17521808b4d6d
Author: Fred Shih <ffred@chromium.org>
Date:   Fri Oct 3 13:36:04 2025 -0700

    Add ts typemap for string16

    This typemap converters string16 to string and vice versa
    automatically. String16 should be completely opaque to ts users after
    this.

    Unfortunately it is not possible to partial migrations because of how
    the bindings are generated. It is a risky change, but we shouldn't have
    too many of these mega changes. Url would probably be the next big one.

    Fixed: 431824282
    Change-Id: I4f5f74ae103b583a50f97ce326fb070f748343c9
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6987362
    Reviewed-by: Michael Cui <mlcui@google.com>
    Reviewed-by: Demetrios Papadopoulos <dpapad@chromium.org>
    Commit-Queue: Fred Shih <ffred@chromium.org>
    Cr-Commit-Position: refs/heads/main@{#1524994}
2025-11-18 11:18:41 -05:00
Claudio DeSouza b26029437f [cr143] kOptimizationGuidePersonalizedFetching deleted
Since we disable optimization guide in general, this particular feature
flag isn't meaningful. We can just ignore this change and remove the
flag disablement from our code.

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

commit cd212a8bf9dd70677f1611782802e045636140f9
Author: Mike Wittman <wittman@chromium.org>
Date:   Fri Oct 3 12:30:13 2025 -0700

    flags: remove optimization-guide-personalized-fetching

    Removes the flag and enables the default behavior.

    Fixed: 361119188
    Change-Id: I6fa4ee5d401e5355c972d4e047e8a800ef93a2b1
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7007043
    Auto-Submit: Mike Wittman <wittman@chromium.org>
    Reviewed-by: Zekun Jiang <zekunjiang@google.com>
    Commit-Queue: Zekun Jiang <zekunjiang@google.com>
    Cr-Commit-Position: refs/heads/main@{#1524930}
2025-11-18 11:18:41 -05:00
Claudio DeSouza 51604f40d0 [cr143] Several GURL methods returning string_view
This migration has been effected in upstream, but several places in our
codebase got broken by this transition. This change makes several parts
of our codebase more friendly to passing `string_view`.

Chromium changes:
https://chromium.googlesource.com/chromium/src/+/0e1784e3cf990560b173f40338e582f50aba0e85

commit 0e1784e3cf990560b173f40338e582f50aba0e85
Author: Charlie Harrison <csharrison@chromium.org>
Date:   Fri Oct 3 11:04:26 2025 -0700

    RELAND: Migrate GURL::path() and friends to return string_view

    This relands crrev.com/c/7003625. Missing cases were found by staring
    at the output of `git grep` for the whole codebase.

    Origin description:
    Also migrates some last remaining callers of the std::string APIs.
    This completes phase 1 of crbug.com/448174617.

    Bug: 448174617
    Change-Id: I7f24f81d1fbf129d8b0dd94f4cf948626deab933
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7007010
    Reviewed-by: Daniel Cheng <dcheng@chromium.org>
    Commit-Queue: Charlie Harrison <csharrison@chromium.org>
    Cr-Commit-Position: refs/heads/main@{#1524878}
2025-11-18 11:18:41 -05:00
Artem Samoilenko 3f56de865e [cr143][Android] shouldShowDeleteButton is package available now
Chromium changes:
https://chromium.googlesource.com/chromium/src/+/565cfd616cb5b812fa1f4a2c8eee4465dd5542b1

commit 565cfd616cb5b812fa1f4a2c8eee4465dd5542b1
Author: Charles Hager <clhager@google.com>
Date:   Thu Oct 2 12:03:29 2025 -0700

    Add width consumer for the location bar buttons

    This adds a new ToolbarWidthConsumer for the location bar's buttons
    (install, mic, lens, bookmark). The exact order is arbitrary, as
    the buttons are all roughly the same priority other than the bookmark
    button being the highest priority to keep visible.

    https://screencast.googleplex.com/cast/NDkzNjUwODY4MjI3Mjc2OHwyZjNlYjhlMC00ZA

    Bug: 427260734
    Change-Id: Icf0ed2bcf86886ee7806d8c7bd4d9c081268debe
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6945458
    Reviewed-by: Patrick Noland <pnoland@chromium.org>
    Commit-Queue: Charles Hager <clhager@google.com>
    Reviewed-by: Sirisha Kavuluru <skavuluru@google.com>
    Cr-Commit-Position: refs/heads/main@{#1524367}
2025-11-18 11:18:40 -05:00
Artem Samoilenko 96e0234f73 [cr143][Android] Migrate NewTabPagePreloadPipelineManager to TabFeatures
Error fixed:
../../chrome/browser/android/preloading/android_prerender_manager.cc:56:39: error: no member named 'new_tab_page_preload_pipeline_manager' in 'tabs::TabFeatures'
   56 |   return tab ? tab->GetTabFeatures()->new_tab_page_preload_pipeline_manager()

Chromium changes:
https://chromium.googlesource.com/chromium/src/+/8965a614fb0e5c650f888a8644bbbfa9ae433635

commit 8965a614fb0e5c650f888a8644bbbfa9ae433635
Author: Robert Lin <robertlin@chromium.org>
Date:   Wed Oct 1 20:18:36 2025 -0700

    Migrate NewTabPagePreloadPipelineManager to TabFeatures

    According to `docs/chrome_browser_design_principles.md`, TabFeatures
    is preferred for all tab-centric features. This CL migrates
    NewTabPagePreloadPipelineManager to TabFeatures

    Bug: 421941586
    Change-Id: Id48373979e7b6750e24c3bc60365a0760bf252ea
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6980603
    Reviewed-by: Tom Lukaszewicz <tluk@chromium.org>
    Commit-Queue: Huanpo Lin <robertlin@chromium.org>
    Reviewed-by: Sky Malice <skym@chromium.org>
    Cr-Commit-Position: refs/heads/main@{#1523984}
2025-11-18 11:18:39 -05:00
Claudio DeSouza 764b56ea4f [cr143] PasteState now an enum class
This affects the existing override, as it was referring to one of the
enum's key.

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

commit d68059facb2cb1842886729400b7ae11fec40cd6
Author: Lei Zhang <thestig@chromium.org>
Date:   Thu Oct 2 16:45:52 2025 -0700

    Change OmniboxEditModel enums to enum classes

    Modernize the code avoid potential issues with enum values like "UP".

    This CL is mostly AI-generated.

    Change-Id: Iab8ec35c2d795a02d37f67494b7afe6a2f395a41
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6987329
    Reviewed-by: Ananya Seelam <ananyaseelam@google.com>
    Commit-Queue: Lei Zhang <thestig@chromium.org>
    Cr-Commit-Position: refs/heads/main@{#1524516}
2025-11-18 11:18:39 -05:00
Claudio DeSouza fb6c947bce [cr143] BrowserNonClientFrameView alias removed
This is now just `BrowserFrameView`.

Chromium changes:
https://chromium.googlesource.com/chromium/src/+/47a53de1532326ca4521ee92bb501926c78ff59c

commit 47a53de1532326ca4521ee92bb501926c78ff59c
Author: Alex Carutasu <alcaruta@microsoft.com>
Date:   Wed Oct 1 18:08:02 2025 -0700

    Remove stub browser_non_client_frame_view.h

    browser_non_client_frame_view.h was left in after
    BrowserNonClientFrameView was renamed to BrowserFrameView; it contains
    only an #include and an alias.

    This CL removes the stub now that downstream migration is complete.

    Bug: 443301212
    Change-Id: Ibd1a789a4d9bcbb1f0b47331958120b1b0b30646
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7005266
    Commit-Queue: Alex Carutasu <alcaruta@microsoft.com>
    Reviewed-by: Tom Lukaszewicz <tluk@chromium.org>
    Cr-Commit-Position: refs/heads/main@{#1523948}
2025-11-18 11:18:39 -05:00
Claudio DeSouza 5428488027 [cr143] NonClientFrameView alias gone
This is now just `views::FrameView`.

Chromium changes:
https://chromium.googlesource.com/chromium/src/+/87dc0f06fce44360022a725ba7bc683fa2c8f4e8

commit 87dc0f06fce44360022a725ba7bc683fa2c8f4e8
Author: Alex Carutasu <alcaruta@microsoft.com>
Date:   Wed Oct 1 18:09:24 2025 -0700

    Remove alias NonClientFrameView FrameView from non_client_view.h

    NonClientFrameView was left in non_client_view.h as an alias after
    NonClientFrameView was renamed to FrameView and moved to its own file,
    frame_view.h.

    This CL removes the alias now that downstream migration is complete.

    Bug: 444010176
    Change-Id: I18f3bf863edf1444860e4794fbb6a7ec8a70fe8e
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7005027
    Reviewed-by: Tom Lukaszewicz <tluk@chromium.org>
    Commit-Queue: Alex Carutasu <alcaruta@microsoft.com>
    Cr-Commit-Position: refs/heads/main@{#1523950}
2025-11-18 11:18:38 -05:00
Claudio DeSouza b751afaf3d [cr143] Extension::Create taking a u16string arg
This used to be a `std::string`.

Chromium changes:
https://chromium.googlesource.com/chromium/src/+/79167e224d3cd322af1031bb0124212580e7cde8

commit 79167e224d3cd322af1031bb0124212580e7cde8
Author: Jaewon Jung <jw.jung@navercorp.com>
Date:   Thu Oct 2 19:04:02 2025 -0700

    Use std::u16string for Extension::Create() error parameter

    The `Extension::Create()` method and its callers used `std::string` for
    the error output parameter, leading to unnecessary conversions between
    UTF-8 and UTF-16.

    This change migrates the error parameter to `std::u16string` across
    the call stack. This eliminates string conversions, simplifying the
    code and improving consistency. In a few places where a `std::string`
    is still required, a temporary conversion is performed.

    Signed-off-by: Jaewon Jung <jw.jung@navercorp.com>
    Bug: 41317803
    Change-Id: Ia660ca60834f233eca82e8f2b65961cce48230d6
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6975452
    Reviewed-by: Devlin Cronin <rdevlin.cronin@chromium.org>
    Reviewed-by: Hidehiko Abe <hidehiko@chromium.org>
    Cr-Commit-Position: refs/heads/main@{#1524554}
2025-11-18 11:18:38 -05:00