Commit Graph
78389 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
Max Karolinskiy 85b7089c0b [cr149] Fixes dangling pointer in ApplicationStateMonitor.
Memory was released on:
 base::debug::CollectStackTrace() [../../base/debug/stack_trace_posix.cc:1050:7]
 base::debug::StackTrace::StackTrace() [../../base/debug/stack_trace.cc:280:20]
 base::allocator::(anonymous namespace)::DanglingRawPtrDetected() [../../base/allocator/partition_alloc_support.cc:439:11]
 allocator_shim::internal::PartitionAllocFunctionsInternal<>::FreeWithSize() [../../base/allocator/partition_allocator/src/partition_alloc/in_slot_metadata.h:389:5]
 GlobalFeatures::~GlobalFeatures() [gen/third_party/libc++/src/include/__memory/unique_ptr.h:74:5]
 BraveGlobalFeatures::~BraveGlobalFeatures() [../../brave/browser/brave_global_features.cc:12:43]
 BrowserProcessImpl::~BrowserProcessImpl() [gen/third_party/libc++/src/include/__memory/unique_ptr.h:74:5]
 BraveBrowserProcessImpl::~BraveBrowserProcessImpl() [../../brave/browser/brave_browser_process_impl.cc:142:51]
 BraveBrowserProcessImpl::~BraveBrowserProcessImpl() [../../brave/browser/brave_browser_process_impl.cc:142:51]
 ChromeBrowserMainParts_ChromiumImpl::PostDestroyThreads() [gen/third_party/libc++/src/include/__memory/unique_ptr.h:74:5]
 content::BrowserMainLoop::ShutdownThreadsAndCleanUp() [../../content/browser/browser_main_loop.cc:1281:13]
 content::BrowserMainRunnerImpl::Shutdown() [../../content/browser/browser_main_runner_impl.cc:175:17]

Dangling reference from:
 base::ScopedObservation<>::Observe() [../../base/allocator/partition_allocator/src/partition_alloc/pointers/instance_tracer.h:49:5]
 base::NoDestructor<>::NoDestructor<>() [../../brave/browser/brave_ads/application_state/application_state_monitor/application_state_monitor_linux.cc:40:35]
 brave_ads::ApplicationStateMonitor::GetInstance() [../../brave/browser/brave_ads/application_state/application_state_monitor/application_state_monitor_linux.cc:35:59]
 brave_ads::AdsServiceImpl::InitializeBatAdsCallback() [../../brave/components/brave_ads/browser/ads_service_impl.cc:430:7]
2026-05-22 16:25:01 -04:00
Max Karolinskiy d99ea245ce [cr149] Fixes BraveWindowTracker dangling pointer.
BraveWindowTracker is initialized in
BraveBrowserMainExtraParts::PreMainMessageLoopRun. It uses
base::ScopedObservation<BrowserCollection, BrowserCollectionObserver>,
which obseves browser collection which goes out of scope with
GlobalFeatures. BraveWindowTracker needs to stop observing before then.

Added HasInstance/ClearInstance to BraveWindowTracker modeling this
behavior on upstream's ChromeBrowserMainExtraPartsMetrics and
metrics::TabStatsTracker.

[33240:46492:0417/173936.000:ERROR:base\allocator\partition_alloc_support.cc:683] A freed allocation is still referenced by a dangling pointer at exit, or at test end. Leaked raw_ptr/raw_ref could cause PartitionAlloc's quarantine memory bloat.

Memory was released on:
        brave_browser_tests!base::allocator::`anonymous namespace'::DanglingRawPtrDetected [0x7ff7130f09ee+3ee] (base\allocator\partition_alloc_support.cc:438)
        brave_browser_tests!GlobalFeatures::~GlobalFeatures [0x7ff711aec13d+cd] (chrome\browser\global_features.cc:96)
        brave_browser_tests!BraveGlobalFeatures::~BraveGlobalFeatures [0x7ff710d19780+10] (brave\browser\brave_global_features.cc:12)
        brave_browser_tests!BrowserProcessImpl::~BrowserProcessImpl [0x7ff711b8ccb8+138] (chrome\browser\browser_process_impl.cc:565)
        brave_browser_tests!BraveBrowserProcessImpl::~BraveBrowserProcessImpl [0x7ff711b46128+3c8] (brave\browser\brave_browser_process_impl.cc:142)
        brave_browser_tests!BraveBrowserProcessImpl::~BraveBrowserProcessImpl [0x7ff711b47fa0+10] (brave\browser\brave_browser_process_impl.cc:142)
        brave_browser_tests!ChromeBrowserMainParts_ChromiumImpl::PostDestroyThreads [0x7ff711b52658+168] (chrome\browser\chrome_browser_main.cc:2291)
        brave_browser_tests!content::BrowserMainLoop::ShutdownThreadsAndCleanUp [0x7ff70d2638c7+7b7] (content\browser\browser_main_loop.cc:1282)
        brave_browser_tests!content::BrowserMainRunnerImpl::Shutdown [0x7ff70d265b86+106] (content\browser\browser_main_runner_impl.cc:177)

ERROR:base\allocator\partition_alloc_support.cc:700] Dangling reference from:
ERROR:base\allocator\partition_alloc_support.cc:701]      brave_browser_tests!partition_alloc::internal::base::debug::CollectStackTrace [0x7ff713271b82+12] (base\allocator\partition_allocator\src\partition_alloc\partition_alloc_base\debug\stack_trace_win.cc:103)
        brave_browser_tests!base::internal::InstanceTracer::TraceImpl [0x7ff7132712ee+1fe] (base\allocator\partition_allocator\src\partition_alloc\pointers\instance_tracer.cc:66)
        brave_browser_tests!base::ScopedObservation<brave_rewards::RewardsService,brave_rewards::RewardsServiceObserver,0>::Observe [0x7ff707af12d8+128] (base\scoped_observation.h:117)
        brave_browser_tests!brave::BraveWindowTracker::BraveWindowTracker [0x7ff7119c682d+11d] (brave\browser\p3a\p3a_core_metrics.cc:60)
        brave_browser_tests!brave::BraveWindowTracker::CreateInstance [0x7ff7119c6de1+21] (brave\browser\p3a\p3a_core_metrics.cc:71)
        brave_browser_tests!BraveBrowserMainExtraParts::PreMainMessageLoopRun [0x7ff711a00915+185] (brave\browser\brave_browser_main_extra_parts.cc:104)
        brave_browser_tests!ChromeBrowserMainParts_ChromiumImpl::PreMainMessageLoopRun [0x7ff711b4fd60+60] (chrome\browser\chrome_browser_main.cc:1465)
2026-05-22 16:25:01 -04:00
Max Karolinskiy a6724631df [cr149] MV2DeprecationImpactChecker moved to //extensions.
Chromium change:
https://chromium.googlesource.com/chromium/src.git/+/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
2026-05-22 16:25:01 -04:00
Max Karolinskiy 39daa64694 [cr149] Removes the override for an unused icon.
Chromium change:
https://chromium.googlesource.com/chromium/src.git/+/84fb307ed868ca8903dba11a75a1f0afc34bffb3

commit 84fb307ed868ca8903dba11a75a1f0afc34bffb3
Author: Emily Shack <emshack@chromium.org>
Date:   Tue Apr 14 17:13:19 2026 -0700

    [GlowUp] Remove unused Views icons

    These icons are not referenced anywhere in the codebase, remove them
    prior to a planned mass icon update

    Bug: 498731414
2026-05-22 16:25:01 -04:00
Artem Samoilenko 0ec29d0b7a [cr149][Android] Changes for partner bookmarks override
Chromium changes:
https://chromium.googlesource.com/chromium/src/+/da43416448f4755db99108cd2361f328d3090f0e

commit da43416448f4755db99108cd2361f328d3090f0e
Author: Andrew Grieve <agrieve@chromium.org>
Date:   Wed Apr 15 08:31:29 2026 -0700

    Android: Roll NullAway 0.13.1 -> 0.13.3

    Bug: 502166094
    Change-Id: I6af3871c9cf3b529c654e466b2167282279e9537
    Cq-Include-Trybots: luci.chrome.try:android-internal-dbg,android-internal-binary-size
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7762582
    Owners-Override: Andrew Grieve <agrieve@chromium.org>
    Reviewed-by: Henrique Nakashima <hnakashima@chromium.org>
    Auto-Submit: Andrew Grieve <agrieve@chromium.org>
    Commit-Queue: Andrew Grieve <agrieve@chromium.org>
    Cr-Commit-Position: refs/heads/main@{#1615193}
2026-05-22 16:25:00 -04:00
Artem Samoilenko 6096b5e237 [cr149][Android] Refactor baseButtonDataProvider to user button spec builder
Chromium changes:
https://chromium.googlesource.com/chromium/src/+/cd92b2ad88f24a127a8bc1aa36f7eb6efbcf7b3b

commit cd92b2ad88f24a127a8bc1aa36f7eb6efbcf7b3b
Author: Hailey Wang <haileywang@google.com>
Date:   Tue Apr 14 19:02:01 2026 -0700

    [Glic] Refactor baseButtonDataProvider to user button spec builder

    Bug: 485624827
    Change-Id: Ib0812fd83c81b13f1b1f246139bb38beb0194e1a
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7667476
    Reviewed-by: Siddhartha S <ssid@chromium.org>
    Reviewed-by: Salvador Guerrero Ramos <salg@google.com>
    Commit-Queue: Hailey Wang <haileywang@google.com>
    Cr-Commit-Position: refs/heads/main@{#1614895}
2026-05-22 16:25:00 -04:00
Artem Samoilenko 2e02037cce [cr149][Android] Fix for gn check
Error fixed:
ERROR at //brave/browser/brave_ads/tabs/ads_tab_helper.cc:28:11: Can't include this header from here.
          ^------------------------------------------------------------------
The target:
  //brave/browser/brave_ads/tabs:tabs
is including a file from the target:
  //chrome/browser/ui/browser_window:browser_window

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:25:00 -04:00
Max Karolinskiy 0525d152fb [cr149] ManifestV2ExperimentManager moved to //extensions
Chromium changes:
https://chromium.googlesource.com/chromium/src/+/c1c2d43e698d1109f8924adee57dd21062ad9a2d

commit c1c2d43e698d1109f8924adee57dd21062ad9a2d
Author: Miyoung shin <myid.shin@igalia.com>
Date:   Thu Apr 16 04:33:36 2026 -0700

    Move ManifestV2ExperimentManager to //extensions

    This CL relocates ManifestV2ExperimentManager to //extensions,
    as it no longer depends on //chrome.
    It also introduces interfaces to check whether a manifest version
    is allowed and whether a profile can use non-component extensions.

    Bug: 358567092
    Change-Id: I74667a139b36de0c16159d7de17f78ee76aea2ab
    Bypass-Check-License: Moving files
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7735248
    Reviewed-by: Devlin Cronin <rdevlin.cronin@chromium.org>
    Commit-Queue: Miyoung Shin <myid.shin@igalia.com>
    Cr-Commit-Position: refs/heads/main@{#1615751}
2026-05-22 16:24:59 -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
Jay Harris b69c05894e [cr149][Typescript]: Fix builds
Chromium has turned on noUncheckedSideEffectImports flag which requires
type definitions to be generated for side effect imports, i.e.

import './foo'

However, the build process we use for generating a bunch of our bundles
doesn't emit type definitions. I've got a work in progress branch on
master which gets things kind of working but I think I hit a bit of a
road block.
2026-05-22 16:24:59 -04:00
Max Karolinskiy f050aa50b3 [cr149][iOS] SendTabToSelfModel::AddEntry takes a callback param now.
Chromium change:
https://source.chromium.org/chromium/chromium/src/+/7ff606db0b865f1b09886ff5ae61ffbc4b54385c

commit 7ff606db0b865f1b09886ff5ae61ffbc4b54385c
Author: Michael Tatarski <mtatarski@google.com>
Date:   Tue Apr 14 04:43:13 2026 -0700

    [STTS] Add commit confirmation callback to Send Tab To Self

    This CL introduces the infrastructure to support commit confirmation
    notifications when a tab is sent to another device. Currently, the UI
    provides feedback either immediately after the send action is initiated
    (Android) or none at all (iOS, Desktop).

    This change updates the Send Tab To Self model and bridge to accept a
    confirmation callback. The bridge executes the callback with success
    immediately after the entry is successfully queued in the local sync
    pipeline, and invokes it with failure if it cannot be queued (e.g. if
    the URL is invalid or sync is not tracking metadata). This allows the UI
    to reliably react to the operation's initial result.

    Bug: 492072882
2026-05-22 16:24:59 -04:00
Artem Samoilenko b40d81b10a [cr149][Android] Changes for isPanelShowingForBrowser check to toolbar button
Chromium changes:
https://chromium.googlesource.com/chromium/src/+/987491a33cac6fd9e68a3fe310fa3731bb9deb87

commit 987491a33cac6fd9e68a3fe310fa3731bb9deb87
Author: Hailey Wang <haileywang@google.com>
Date:   Mon Apr 13 19:38:50 2026 -0700

    [Glic] Add isPanelShowingForBrowser check to toolbar button

    Tracks the panel open state via GlobalShowHideObserver and
    isPanelShowingForBrowser.

    Did a small readability refactor for updateButtonState.

    Bug: 485624827
    Change-Id: Ic986e11bff70bdc52653518d309f79059828d2f5
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7728992
    Reviewed-by: Wenyu Fu <wenyufu@chromium.org>
    Commit-Queue: Hailey Wang <haileywang@google.com>
    Cr-Commit-Position: refs/heads/main@{#1614158}
2026-05-22 16:24:58 -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
Artem Samoilenko aad5b0bfa2 [cr149][Android] Changes for TabbedAdaptiveToolbarBehavior
Chromium changes:
https://chromium.googlesource.com/chromium/src/+/bf83a63ce609a05fa1cbd9ad85b37920c3aa9e8d

commit bf83a63ce609a05fa1cbd9ad85b37920c3aa9e8d
Author: Hailey Wang <haileywang@google.com>
Date:   Mon Apr 13 15:16:05 2026 -0700

    [Glic] Make toggleGlic callback accept a boolean

    Bug: 498721993
    Change-Id: Ide0b83be60599c4ffa7c1b1e18d2340d2e6feab1
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7747038
    Commit-Queue: Hailey Wang <haileywang@google.com>
    Reviewed-by: Wenyu Fu <wenyufu@chromium.org>
    Cr-Commit-Position: refs/heads/main@{#1614006}
2026-05-22 16:24:55 -04:00
Artem Samoilenko 24e1cd6e6f [cr149][Android] Changes for new SigninManager functions
Chromium changes:
https://chromium.googlesource.com/chromium/src/+/3d0c9d82ee2db1ddbfab415e5bcb0d2e9515ff75

commit 3d0c9d82ee2db1ddbfab415e5bcb0d2e9515ff75
Author: Samar <samarchehade@google.com>
Date:   Mon Apr 13 14:00:14 2026 -0700

    [Signin][Android] Centralize check for whether to display the UI.

    This allows us to remove some unnecessary dependencies on the signin
    manager and makes it easier to modify the logic when needed in the long
    run.

    Bug: 467707243
    Change-Id: Id2740956e5ead126bf1b8527681608c768a97abc
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7707362
    Reviewed-by: Patrick Noland <pnoland@chromium.org>
    Commit-Queue: Samar Chehade <samarchehade@google.com>
    Reviewed-by: Lucia Giorgi <quacksort@google.com>
    Reviewed-by: Tanmoy Mollik <triploblastic@google.com>
    Cr-Commit-Position: refs/heads/main@{#1613961}
2026-05-22 16:24:55 -04:00
Artem Samoilenko dc6be03b0d [cr149] Modularize //chrome/browser/net
Chromium changes:
https://chromium.googlesource.com/chromium/src/+/888790ca73faf676cc240d61c2e9991acea73de6

commit 888790ca73faf676cc240d61c2e9991acea73de6
Author: Erik Chen <erikchen@chromium.org>
Date:   Mon Apr 13 12:48:43 2026 -0700

    Modularize //chrome/browser/net

    Extract chrome/browser/net sources from the monolithic
    chrome/browser:browser static_library into dedicated :net (public
    headers) and :impl (sources) targets in chrome/browser/net/BUILD.gn.
    Update all dependent BUILD.gn files across chrome/browser and other
    components to depend on the new targets.

    Bug: 353332589
    Change-Id: Ibae86cdd78e6566f4688559c864baea61ae16833
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7748201
    Reviewed-by: Thomas Lukaszewicz <tluk@chromium.org>
    Reviewed-by: Joe Downing <joedow@chromium.org>
    Commit-Queue: Erik Chen <erikchen@chromium.org>
    Reviewed-by: Lei Zhang <thestig@chromium.org>
    Cr-Commit-Position: refs/heads/main@{#1613915}
2026-05-22 16:24:55 -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
Max Karolinskiy 1d51d34e40 [cr149] chrome/browser/ui/test/ was componentized.
We don't need to add test_browser_dialog_mac.h|mm into
brave_browser_tests directly because they are now built by
chrome/browser/ui/test:dialog target which is pulled into our executable
via

//brave/test:brave_browser_tests --[public]-->
//brave/test:browser_tests_runner --[public]-->
//brave/test:browser_test_support --[public]-->
//chrome/test:test_support --[public]-->
//chrome/test:test_support_ui --[public]-->
//chrome/browser/ui/test:dialog

Chromium change:
https://source.chromium.org/chromium/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
2026-05-22 16:24:54 -04:00
Max Karolinskiy e5dd72c66a [cr149] Filter upstream tests as needed. 2026-05-22 16:24:53 -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
Max Karolinskiy 01bcb265a5 [cr149] Explicitly allow reentrancy for AdsClientNotifierObserver.
Chromium change:
https://chromium.googlesource.com/chromium/src.git/+/83dc1d0f04002ced129aeae4a63de7069b43cfba

commit 83dc1d0f04002ced129aeae4a63de7069b43cfba
Author: Mitsuru Oshima <oshima@chromium.org>
Date:   Tue Apr 7 23:06:31 2026 -0700

    Disable reentrancy by default except for Android and iOS

    Android and iOS needs more work but I need help from platform
    expert as the readable stack isn't available.
    (see crrev.com/c/7604991)

    Include-Ci-Only-Tests: chromium.mac:mac15-x64-rel-tests|browser_tests
    Bug: 40562847, 484371187
2026-05-22 16:18:08 -04:00
Max Karolinskiy 9333f61d91 [cr149] Explicitly allow reentrancy for ai_chat::ToolProvider::Observer
Chromium change:
https://chromium.googlesource.com/chromium/src.git/+/83dc1d0f04002ced129aeae4a63de7069b43cfba

commit 83dc1d0f04002ced129aeae4a63de7069b43cfba
Author: Mitsuru Oshima <oshima@chromium.org>
Date:   Tue Apr 7 23:06:31 2026 -0700

    Disable reentrancy by default except for Android and iOS

    Android and iOS needs more work but I need help from platform
    expert as the readable stack isn't available.
    (see crrev.com/c/7604991)

    Include-Ci-Only-Tests: chromium.mac:mac15-x64-rel-tests|browser_tests
    Bug: 40562847, 484371187
2026-05-22 16:18:08 -04:00