Commit Graph
75130 Commits
Author SHA1 Message Date
Max Karolinskiy 4e4ac7dbe2 Revert "[cr145] Makes PermissionUmaUtil methods no-ops."
This reverts commit c49bfe6c4c41cdf188bd9736165033106ee4cb6b.

Reverting because this causes multiple upstream permissions tests to
fail and it's more important to keep those test working than avoiding a
patch.
2026-01-29 13:41:25 -05:00
Max Karolinskiy 41811a59b3 [cr145] Disables upstream features per security/privacy. 2026-01-29 13:41:25 -05:00
Max Karolinskiy 1a5183e63a [cr145] Makes PermissionUmaUtil methods no-ops.
To avoid patching, replacing all methods of the class with no-ops.
2026-01-29 13:41:24 -05:00
Max Karolinskiy 03f5832726 [cr145] Switch BraveTabStrip to use BrowserWindowInterface.
This removes reliance on GetBrowser which will go away soon upstream and
removes our const GetBrowser addition that was only needed for this
code.
2026-01-29 13:41:24 -05:00
Artem Samoilenko 443fb553ce [cr145][Android] Update favicon_product with Brave logo
This icon is now used for internal pages.

Chromium changes:
https://chromium.googlesource.com/chromium/src/+/85b8667393b9bdaf34c9de38fc9c7e01b2cd8d40

commit 85b8667393b9bdaf34c9de38fc9c7e01b2cd8d40
Author: Michael Wu <mklw@google.com>
Date:   Fri Sep 19 15:00:57 2025 -0700

    Update Incognito NTP tab strip favicon

    Changes the favicon from the Chrome logo to the Incognito symbol. This
    change is part of a larger effort to create "Desktop-like Incognito
    Windows on Clank".

    https://screenshot.googleplex.com/B4JFPfz6dHyPWEu

    Bug: 435491610
    Change-Id: Icc952428c9cb03194c19209bfd868eb65dc7d3f9
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6937054
    Reviewed-by: Shu Yang <shuyng@google.com>
    Commit-Queue: Michael Wu <mklw@google.com>
    Reviewed-by: Neil Coronado <nemco@google.com>
    Reviewed-by: Salvador Guerrero Ramos <salg@google.com>
    Reviewed-by: Sirisha Kavuluru <skavuluru@google.com>
    Cr-Commit-Position: refs/heads/main@{#1518191}
2026-01-29 13:41:24 -05:00
Claudio DeSouza 2cc6952e54 [cr145] Cherry-picked minify fix for devtools landed
Chromium change:
https://chromium.googlesource.com/devtools/devtools-frontend/+/c66e983a63869bc9c0b5fe7db427cfd66d525ea2

commit c66e983a63869bc9c0b5fe7db427cfd66d525ea2
Author: Simon Zünd <szuend@chromium.org>
Date:   Wed Jan 14 21:15:28 2026 +0100

    [build] Minify release builds with esbuild instead of rollup

    Rollup is currently causing crashes so we replace it with esbuild
    using "--bundle" and "--minify". From a cursory comparison common.js
    and sdk.js are minified even better then the rollup+terser combo.

    Fixed: 461602362
    Change-Id: Id900f5991bdb1e95fea8cfeb2fe49f07d73489eb
    Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/7476237
    Commit-Queue: Wolfgang Beyer <wolfi@chromium.org>
    Commit-Queue: Simon Zünd <szuend@chromium.org>
    Reviewed-by: Alex Rudenko <alexrudenko@chromium.org>
    Commit-Queue: Alex Rudenko <alexrudenko@chromium.org>
    Auto-Submit: Simon Zünd <szuend@chromium.org>
    Reviewed-by: Wolfgang Beyer <wolfi@chromium.org>
2026-01-29 13:41:23 -05:00
Artem Samoilenko 12ae1483c2 [cr145][Android] Changes for TopToolbarCoordinator c-tor
Chromium changes:
https://chromium.googlesource.com/chromium/src/+/52326afd1d0ccf8396c4f7c579f802e695107e57

commit 52326afd1d0ccf8396c4f7c579f802e695107e57
Author: Wenyu Fu <wenyufu@chromium.org>
Date:   Wed Jan 14 17:39:10 2026 -0800

    [M145] [BrowserControls] Allow adjustment tab strip height during startup

    Original change's description:
    > [BrowserControls] Allow adjustment tab strip height during startup
    >
    > Part 2 of the complete POC: crrev.com/c/7427223
    >
    > Create TabStripTransitionCoordinator early, before native is ready, so
    > we can just the toolbar's position and tab strip height immediately when
    > the app header insets are updated. This change reduced the frame jumps
    > when Chrome is launched in the desktop windowing mode.
    >
    > Demo: https://screencast.googleplex.com/cast/NTQ2MTQwNTQ5Mzg4Njk3NnwxYTNhMGI0OS1kYw
    > Bug: 449166259
    > Change-Id: I3d622413fc60799043a772fd9eceaec8d3448cb3
    > Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7428008
    > Commit-Queue: Wenyu Fu <wenyufu@chromium.org>
    > Reviewed-by: Sirisha Kavuluru <skavuluru@google.com>
    > Reviewed-by: Aishwarya Rajesh <aishwaryarj@google.com>
    > Cr-Commit-Position: refs/heads/main@{#1568757}

    (cherry picked from commit ac378f67ffd0ea2887a4832c4556e75c60970c4d)

    Bug: 475629875,449166259
    Change-Id: I3d622413fc60799043a772fd9eceaec8d3448cb3
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7473730
    Auto-Submit: Chrome Cherry Picker <chrome-cherry-picker@chops-service-accounts.iam.gserviceaccount.com>
    Bot-Commit: Rubber Stamper <rubber-stamper@appspot.gserviceaccount.com>
    Commit-Queue: Rubber Stamper <rubber-stamper@appspot.gserviceaccount.com>
    Cr-Commit-Position: refs/branch-heads/7632@{#92}
    Cr-Branched-From: 0bbdf2913883391365383b0a5dfe7bf9fd1a5213-refs/heads/main@{#1568190}
2026-01-29 13:41:23 -05:00
Max Karolinskiy 113026b438 [cr145] Remove obsolete chromium_src override for upstream test.
Chromium change:

https://source.chromium.org/chromium/chromium/src/+/0660eaa52c271c0b9c908ff7cc56f68563a34a7b

commit 0660eaa52c271c0b9c908ff7cc56f68563a34a7b
Author: Dana Fried <dfried@chromium.org>
Date:   Fri Dec 19 09:54:31 2025 -0800

    [Chrome Next] Remove pre-side-by-side layout now that it's launched

    Note that the logic in browser_view_layout_impl_old.cc is also moribund
    and is about to be removed (once PiP gets its own layout).

    Because of this, and because the old layout manager unit tests assumed a
    single layout manager they could manipulate to behave like a tabbed,
    app, or popup browser, none of them apply to the new setup and the old
    unit tests (which tested the layout manager that isn't being used
    anymore) are also removed.

    Bug: 424236535
2026-01-29 13:41:23 -05:00
Max Karolinskiy bf14e5bbc8 [cr145] Removes logging of CopyFromSurfaceError.
Per review feedback.

Chromium change:

https://source.chromium.org/chromium/chromium/src/+/9d2b3244101ccd0eb8321d3027c648ec4a1b14e2

commit 9d2b3244101ccd0eb8321d3027c648ec4a1b14e2
Author: Dave Tapuska <dtapuska@chromium.org>
Date:   Thu Jan 15 07:32:24 2026 -0800

    Set timeout from multi source page context fetcher

    - Change the result code on CopyFromSurface so we can log a uma histogram
    instead of an arbitrary string
    - Pass timeout to viz, set the browser side timeout to be 500ms later to
    give the IPC enough time.

    Bug: b:447589565
2026-01-29 13:41:22 -05:00
Claudio DeSouza 1be251cf33 [cr145] CopyFromSurface expects a timeout value
Chromium changes:
https://chromium.googlesource.com/chromium/src/+/166974c83781cce10e2777a0c07b7fb760f1169c

commit 166974c83781cce10e2777a0c07b7fb760f1169c
Author: Dave Tapuska <dtapuska@chromium.org>
Date:   Wed Jan 14 13:46:25 2026 -0800

    Add timeouts to content API for CopyFromSurface

    A later change will adjust this value for the multi source page
    context fetcher.

    Bug: b:447589565
    Change-Id: Ia8738a27f97731ec029870ffc9c50fe0b2b6dd04
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7454865
    Reviewed-by: Andrey Kosyakov <caseq@chromium.org>
    Reviewed-by: Reilly Grant <reillyg@chromium.org>
    Reviewed-by: James Cook <jamescook@chromium.org>
    Commit-Queue: Dave Tapuska <dtapuska@chromium.org>
    Cr-Commit-Position: refs/heads/main@{#1569302}
2026-01-29 13:41:22 -05:00
Max Karolinskiy 33c01f5278 [cr145] Update LocalhostAccessBrowserTest for split permission.
Chromium change:

https://source.chromium.org/chromium/chromium/src/+/5eb0161669e4f2e59191d1ac37bea98f551f5108

commit 5eb0161669e4f2e59191d1ac37bea98f551f5108
Author: Hubert Chao <hchao@chromium.org>
Date:   Thu Dec 18 09:02:23 2025 -0800

    [LNA] Add permission prompt for LNA split permissions

    Adding the permission prompt UI for the new LNA split permissions LOCAL_NETWORK and LOOPBACK_NETWORK for both Desktop and Android.

    Not done in this CL:

    * updated icons
    * omnibox chip
    * checking the right permissions in StoragePartitionImpl::OnLocalNetworkAccessPermissionRequired

    CLs for adding the new permissions:

    1. https://crrev.com/c/7225793/: permissions/content settings types
    2. https://crrev.com/c/7233078/: content settings and page info UI
    3. this CL: permission prompt UI
    4. future CL: permission policies

    Bug: 465491626
2026-01-29 13:41:22 -05:00
Artem Samoilenko ff9af0d272 [cr145][Android] Fix for SiteSettingsCategory patch 2026-01-29 13:41:21 -05:00
Artem Samoilenko ed3b5f77d1 [cr145][Android] Compile browser_window on all android
Chromium changes:
https://chromium.googlesource.com/chromium/src/+/562341811ecc226ef52b230a47e404cfa5a7da52

commit 562341811ecc226ef52b230a47e404cfa5a7da52
Author: Calder Kitagawa <ckitagawa@chromium.org>
Date:   Fri Jan 9 12:42:35 2026 -0800

    [BrowserWindow] Compile browser_window on all android

    Compile browser_window (but not extensions windowing) on all Android.

    BrowserWindowInterfaces instances are only used for desktop Android
    until modifications can be made to their lifecycle to support having
    both a regular and incognito tab model by either creating two separate
    BWI's per window OR creating one BWI that knows about regular &
    incognito mode.

    Binary-Size: Enable entire feature
    Fixed: 474415203
    Change-Id: I563f1f4982db0870b1b53c28775983a63d8c0446
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7418197
    Reviewed-by: Theresa Sullivan <twellington@chromium.org>
    Commit-Queue: Calder Kitagawa <ckitagawa@chromium.org>
    Reviewed-by: Linyu He <linyuh@google.com>
    Cr-Commit-Position: refs/heads/main@{#1567145}
2026-01-29 13:41:21 -05:00
AlexeyBarabash cd2c5d4565 [cr145][Android] monochrome_64_public_apk target was removed
Adjusted Brave's targets

Chromium change:
https://github.com/brave/chromium/commit/10cf1c5db2b6cb591c97fc0c097a57615f7503d0

	Android: remove more public monochrome targets
	This removes deprecated monochrome build targets.

	Bug: 434045992
	Test: gn gen out/Default
	Change-Id: Id72d9e783ce164ba529b810398759afc04c2f36d
	Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7404196
	Reviewed-by: Peter Wen <wnwen@chromium.org>
	Commit-Queue: Peter Wen <wnwen@chromium.org>
	Auto-Submit: Nate Fischer <ntfschr@chromium.org>
	Cr-Commit-Position: refs/heads/main@{#1565575}
2026-01-29 13:41:21 -05:00
Emerick Rogul 3caaa1e17f [cr145] Fix warnings about redefining computed properties in delete browsing data dialog
As upstream continues to work on rearchitecting the delete browsing data dialog,
we encountered the following warnings when visiting the dialog in cr145:

  polymer_bundled.min.js:1 Cannot redefine computed property 'isSyncPaused_'.
  polymer_bundled.min.js:1 Cannot redefine computed property 'hasPassphraseError_'.
  polymer_bundled.min.js:1 Cannot redefine computed property 'hasOtherSyncError_'.
  polymer_bundled.min.js:1 Cannot redefine computed property 'googleSearchHistoryString_'.

This is because we override `properties()` using a spread of the base class
properties, which ends up redefining them.

Remove the spread of base class properties and initialize Brave-specific fields
in the constructor instead. This avoids redeclaring inherited computed
properties, which caused runtime Polymer errors, while keeping TypeScript type
checking happy. The change ensures new instance properties are added safely
without breaking inherited behavior.
2026-01-29 13:41:20 -05:00
Emerick Rogul a488ed37fd [cr145] Fix view manager related assertion when visiting brave://settings/system
Delay initial CrViewManager.switchViews() call until after first render so all
view elements are stamped before switching. This avoids assertion failures
introduced by stricter upstream invariants when views are conditionally stamped
or not yet attached during early lifecycle.

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

commit e6b2721218aea18372be7c12cfe9879faf5b80a1
Author: dpapad <dpapad@chromium.org>
Date:   Tue Nov 18 15:22:36 2025 -0800

    WebUI: Prevent cr-view-manager events firing when not needed.

    When calling switchView() or switchViews() with an already active view,
    cr-view-manager was unnecessarily firing 'view-enter-start',
    'view-enter-finish', 'view-exit-start', 'view-exit-finish' events, which
    in turn caused a bug in Settings where focusBackButton() was called in
    SettingsViewMixin when it shouldn't (when searching in <all-sites>).

    The cr-view-manager behavior when switching to already active views had
    been modified at crrev.com/c/6696849, so this CL effectively restores
    the old "early return no-op" behavior.

    Fixed: 460732312
    Change-Id: If71cd7084a267a52539464f5e3e2a45ba3dc49e4
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7169474
    Auto-Submit: Demetrios Papadopoulos <dpapad@chromium.org>
    Reviewed-by: John Lee <johntlee@chromium.org>
    Commit-Queue: John Lee <johntlee@chromium.org>
    Cr-Commit-Position: refs/heads/main@{#1546843}
2026-01-29 13:41:20 -05:00
Aleksei Khoroshilov dc6df280ed [cr145] Force-enable googlechrome siso config for Brave RBE builds.
Chromium recently introduced the googlechrome config flag to restrict
remote executions for non-clang compile actions (such as mojo generators)
to only Google's official REAPI setup. This was done because "non google
builds often have issue with enabling remote executions for non-clang
compiles when they use an external REAPI."

However, Brave's RBE infrastructure is fully compatible with these remote
actions and they execute correctly in our setup. By force-enabling the
googlechrome config via -config googlechrome in .sisorc, we restore
remote execution support for mojo and other non-clang build actions in
Brave builds.

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

commit bc0bd277c9a2fcde9989fbfe981344db0648f0b7
Author: Junji Watanabe <jwata@google.com>
Date:   Thu Jan 8 18:39:35 2026 -0800

    siso: Introduce googlechrome config to enable remote executions for non clang compile actions

    Non google builds often have issue with enabling remote executions
    for non-clang compiles when they use an external REAPI.
    To make the transition to Siso smooth, this CL enables remote executions
    only for `-config googlechrome` build. backend_config/google.star now
    has `googlechrome` as a default flag.

    Bug: 424659245, 472063697
    Change-Id: I3b39d395f4130b61891ab6b1f46517bde00c8c32
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7409934
    Reviewed-by: Fumitoshi Ukai <ukai@google.com>
    Commit-Queue: Junji Watanabe <jwata@google.com>
    Cr-Commit-Position: refs/heads/main@{#1566686}

https://chromium.googlesource.com/chromium/src/+/5c12bc8f387c732614868975dc0ee7e9b8e25f94

commit 5c12bc8f387c732614868975dc0ee7e9b8e25f94
Author: Fumitoshi Ukai <ukai@google.com>
Date:   Fri Jan 9 01:41:57 2026 -0800

    siso: enable googlechrome only for Google RBE

    external folks may use google.star without setting reapi_address
    etc in .gclient custom_vars.

    Check reapi_address flag to enable googlechrome config in google.star.

    Bug: 424659245, 472892242, 472063697
    Change-Id: Ife9337352537c7583439fd684da3924accbd918f
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7414509
    Auto-Submit: Fumitoshi Ukai <ukai@google.com>
    Reviewed-by: Junji Watanabe <jwata@google.com>
    Commit-Queue: Fumitoshi Ukai <ukai@google.com>
    Cr-Commit-Position: refs/heads/main@{#1566817}
2026-01-29 13:41:20 -05:00
Aleksei Khoroshilov abfdf68c6f [cr145] Remove Siso version enforcement.
Cr145 now includes Siso version that contains all fixes to build Brave.

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

commit cf5ea45d19aedb46f3efec870fec4c4325e077ab
Author: Fumitoshi Ukai <ukai@google.com>
Date:   Mon Jan 12 17:25:01 2026 -0800

    siso: update to version 1.4.23

    Siso is now built with Go 1.25, so drop support for macOS 11 or earlier.
2026-01-29 13:41:20 -05:00
Artem Samoilenko 27d46f1755 [cr145][Android][Icons] Update ic_help_24dp
Chromium changes:
https://chromium.googlesource.com/chromium/src/+/ff45746d934d2c20d32fd1026412784c3d6952f8

commit ff45746d934d2c20d32fd1026412784c3d6952f8
Author: Wenyu Fu <wenyufu@chromium.org>
Date:   Tue Dec 16 10:06:52 2025 -0800

    [Icons] Update ic_help_24dp

    * Rename ic_help_and_feedback -> ic_help_24dp
    * Repurpose help_outline -> ic_help_24dp

    Fixed: 465844609
    Change-Id: I673280857c5c95286a14a3e4be13de988460de17
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7253200
    Reviewed-by: Theresa Sullivan <twellington@chromium.org>
    Commit-Queue: Wenyu Fu <wenyufu@chromium.org>
    Reviewed-by: Abe Boujane <boujane@google.com>
    Auto-Submit: Wenyu Fu <wenyufu@chromium.org>
    Reviewed-by: Joel Tan-Aristy <jtanaristy@google.com>
    Cr-Commit-Position: refs/heads/main@{#1559421}
2026-01-29 13:41:19 -05:00
Artem Samoilenko 045f5f693c [cr145][Android] Updates star vector drawable
Chromium changes:
https://chromium.googlesource.com/chromium/src/+/7ac55851043faec6d0fb7452589b26aa5748fa9d

commit 7ac55851043faec6d0fb7452589b26aa5748fa9d
Author: Joel Tan-Aristy <jtanaristy@google.com>
Date:   Mon Dec 29 16:13:46 2025 -0800

    [Icons] Updates star vector drawable

    Bug: 465844992
    Change-Id: Iba9a8eea3180041ec58dcff81bc7a900df35ce26
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7313942
    Reviewed-by: Wenyu Fu <wenyufu@chromium.org>
    Owners-Override: Joel Tan-Aristy <jtanaristy@google.com>
    Commit-Queue: Joel Tan-Aristy <jtanaristy@google.com>
    Cr-Commit-Position: refs/heads/main@{#1563270}
2026-01-29 13:41:19 -05:00
Artem Samoilenko 91611ccad1 [cr145][Android] Update info vector drawable
Chromium changes:
https://chromium.googlesource.com/chromium/src/+/a4c8d57577f92cf7d4feab9a2b397f9b51449569

commit a4c8d57577f92cf7d4feab9a2b397f9b51449569
Author: Joel Tan-Aristy <jtanaristy@google.com>
Date:   Tue Dec 16 18:07:45 2025 -0800

    [Icons] Updates info vector drawable

    Update for ic_info_outline_grey_24dp and test_ic_info_outline_black_24dp
    will come in a follow up.

    Bug: 465841297
    Change-Id: I39ce3bcee838a132290c91c001612b6032fa3a4a
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7265422
    Commit-Queue: Joel Tan-Aristy <jtanaristy@google.com>
    Reviewed-by: Wenyu Fu <wenyufu@chromium.org>
    Cr-Commit-Position: refs/heads/main@{#1559680}
2026-01-29 13:41:18 -05:00
Artem Samoilenko 58c4908669 [cr145][Android] Migrate ic_search.png to ic_search_24dp.xml
Chromium changes:
https://chromium.googlesource.com/chromium/src/+/8b1a88bf48f47b2b616b843923a4b03caae61cab

commit 8b1a88bf48f47b2b616b843923a4b03caae61cab
Author: Jack Thiesen <jthiesen@chromium.org>
Date:   Tue Dec 16 11:44:14 2025 -0800

    Migrate ic_search.png to ic_search_24dp.xml

    Bug: 465845722
    Change-Id: Ib9c195aa558d05a11cfffacc4e4a2865ca8db3b9
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7256857
    Commit-Queue: Jack Thiesen <jthiesen@chromium.org>
    Reviewed-by: Wenyu Fu <wenyufu@chromium.org>
    Reviewed-by: Ted Choc <tedchoc@chromium.org>
    Cr-Commit-Position: refs/heads/main@{#1559489}
2026-01-29 13:41:18 -05:00
Artem Samoilenko 976e000785 [cr145][Android] Remove btn_toolbar_reload.png
Chromium changes:
https://chromium.googlesource.com/chromium/src/+/199c5793cf76c58e931c834ee9bc36437387bb06

commit 199c5793cf76c58e931c834ee9bc36437387bb06
Author: Wenyu Fu <wenyufu@chromium.org>
Date:   Fri Dec 12 16:41:21 2025 -0800

    [Icons] Remove btn_toolbar_reload.png and test_ic_refresh_black_24dp

    Update `btn_toolbar_reload` as a drawable alias. Since refresh is not
    automirrored, create `ic_refresh_24dp_rtl.xml` to keep it mirrored in
    RTL locale. This allows us to remove all the png version of
    btn_toolbar_reload.

    Also remove the test only resource that doesn't seem necessary
    test_ic_refresh_black_24dp.xml.

    Bug: 465841381
    Change-Id: I4d936216bee75a493689f4c3f840178275cadc84
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7256663
    Commit-Queue: Wenyu Fu <wenyufu@chromium.org>
    Reviewed-by: Joel Tan-Aristy <jtanaristy@google.com>
    Cr-Commit-Position: refs/heads/main@{#1558360}
2026-01-29 13:41:18 -05:00
Artem Samoilenko 71b216aad9 [cr145][Android] Update incognito_fill icon
Chromium changes:
https://chromium.googlesource.com/chromium/src/+/1d7e9c164cf06e791c50e8e32b32ff98aa60e32a

commit 1d7e9c164cf06e791c50e8e32b32ff98aa60e32a
Author: Wenyu Fu <wenyufu@chromium.org>
Date:   Wed Dec 10 21:48:59 2025 -0800

    [Icons] Update incognito_fill icon

    incognito_simple -> incognito_fill_24dp.

    Bug: 466238435
    Change-Id: Ibf713feb61631ccf823e0e1b7a6079d1e7ac4c64
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7244330
    Reviewed-by: Sinan Sahin <sinansahin@google.com>
    Commit-Queue: Wenyu Fu <wenyufu@chromium.org>
    Cr-Commit-Position: refs/heads/main@{#1557128}
2026-01-29 13:41:17 -05:00
Max Karolinskiy b1a51a4ca6 [cr145][Windows][Installer] kPotentialFileAssociations is now wstrings.
Chromium change:

https://source.chromium.org/chromium/chromium/src/+/eb1ead0044bc620352d8f2c641350fc1a8f9f034

commit eb1ead0044bc620352d8f2c641350fc1a8f9f034
Author: Greg Thompson <grt@chromium.org>
Date:   Tue Dec 23 08:08:17 2025 -0800

    [Windows] Fix ProgID registration for .pdf files

    ChromePDF should be used rather than ChromeHTML in .pdf\OpenWithProgids.

    Also clean up some UNSAFE_TODOs.

    Bug: 40384442
2026-01-29 13:41:17 -05:00
Artem Samoilenko 3cb83ed393 [cr145] Changes for moved cr_icon.ts
Chromium changes:
https://chromium.googlesource.com/chromium/src/+/4f2399d2f015a6e08592ce6bd1df9c8c02310a95

commit 4f2399d2f015a6e08592ce6bd1df9c8c02310a95
Author: Dan Harrington <harringtond@chromium.org>
Date:   Mon Jan 12 10:32:42 2026 -0800

    Fix some build issues with enable_glic on Android

    I manually set enable_glic to true, and built on
    android. This CL fixes some issues i found.
    This change adds in the glic fre web resources into
    the android build, which requires cr_progress and
    cr_iconset, so I added it to the cr_elements
    default build target.

    Bug: b:470059315
    Change-Id: I7ca8cb0df1c10b795f765ef034ef0b9b6a6a6964
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7403040
    Reviewed-by: Bryant Chandler <bryantchandler@chromium.org>
    Reviewed-by: Gabriel Charette <gab@chromium.org>
    Commit-Queue: Dan Harrington <harringtond@chromium.org>
    Reviewed-by: John Lee <johntlee@chromium.org>
    Reviewed-by: Monica Salama <msalama@chromium.org>
    Reviewed-by: Side YILMAZ <sideyilmaz@chromium.org>
    Cr-Commit-Position: refs/heads/main@{#1567893}
2026-01-29 13:41:17 -05:00
Artem Samoilenko fd6e6a76ff [cr145][Android] Changes for NTP promo
Chromium changes:
https://chromium.googlesource.com/chromium/src/+/b80a1b0c422e6fbd55c1a3bf92ab3b70cdee2363

commit b80a1b0c422e6fbd55c1a3bf92ab3b70cdee2363
Author: Menghan Yang <myuu@google.com>
Date:   Mon Jan 12 04:06:44 2026 -0800

    [Android][Signin] Migrate NTP promo to the new sign-in API

    This change migrates the NTP sign-in promo to a new sign-in API.

    It plumbs several new dependencies (ActivityResultTracker,
    ModalDialogManager, SnackbarManager, BottomSheetController, etc.)
    through NativePageFactory, NewTabPage, and NewTabPageLayout down to the
    NtpSigninPromoCoordinator.

    Bug: 437039516
    Change-Id: I33714b69d37e4f482973a8f00a10530f5e5d3e2b
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7390216
    Commit-Queue: Menghan Yang <myuu@google.com>
    Reviewed-by: Boris Sazonov <bsazonov@chromium.org>
    Auto-Submit: Menghan Yang <myuu@google.com>
    Cr-Commit-Position: refs/heads/main@{#1567687}
2026-01-29 13:41:16 -05:00
Claudio DeSouza 4e48207cd4 [cr145] Reachoring TabCollection::Type extension
This type of override is really not ideal, but this is outside the scope
of this fix.

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

commit 0b0a76f5ec69309b5d7dd4ab4fd5436f5a20fe3b
Author: Jeffrey Yu <yuje@chromium.org>
Date:   Mon Jan 12 16:38:30 2026 -0800

    Replace `std::unordered_set` with `base::EnumSet`.

    The Chromium containers guide
    (https://chromium.googlesource.com/chromium/src/+/HEAD/base/containers/README.md)
    recommends against using `std::unordered_set` in most circumstances.

    NO_IFTTT=Not adding additional enum values.

    Bug: 473916362
    Change-Id: I83278092031a41094cfdd90d65b24f7c6f8564de
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7412541
    Commit-Queue: Darryl James <dljames@chromium.org>
    Auto-Submit: Jeffrey Yu <yuje@chromium.org>
    Reviewed-by: Darryl James <dljames@chromium.org>
    Reviewed-by: Shibalik Mohapatra <shibalik@chromium.org>
    Cr-Commit-Position: refs/heads/main@{#1568150}
2026-01-29 13:41:16 -05:00
Claudio DeSouza d4421c87ba [cr145] Fix for ParseSuggestResults overrides
This function now has a new variant, which was conflicting with the
type of substitution being made for the original function. This change
extends both variants of this function to use the extra argument
`is_brave_rich_suggestion`, by using a macro with variadict arguments.

Chromium changes:
https://chromium.googlesource.com/chromium/src/+/780cb854d191dad2c05fe81102dc690eda5aa072

commit 780cb854d191dad2c05fe81102dc690eda5aa072
Author: shomizoe <shomizoe@google.com>
Date:   Mon Jan 12 16:27:13 2026 -0800

    Add a flag to allow empty suggestions returned from SearchSuggestionParser

    This CL adds a new argument `allow_empty_suggestion` to allow empty suggestions
    returned from SearchSuggestionParser.

    This is to support cases[1] in go/chrome-ntp-action-chips-protocol where the suggestions endpoint returns an entry with
    an empty suggestion value.

    [1]: https://docs.google.com/document/d/1ajhOjQS6ouqfz5sm9xLcVAnFsl5ncPKxQ-krui0iuvk/edit?disco=AAABw9D7kHI

    Bug: b:473586071
    Change-Id: I283c0c658696e123a0821f89d1302d4b6a6a6964
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7411957
    Commit-Queue: Sho Mizoe <shomizoe@google.com>
    Reviewed-by: Jennifer Serrano <jennserrano@google.com>
    Reviewed-by: Moe Ahmadi <mahmadi@chromium.org>
    Cr-Commit-Position: refs/heads/main@{#1568141}
2026-01-29 13:41:15 -05:00
Claudio DeSouza 002387e282 [cr145] Reanchoring ExtensionsMenuMainPageView overrides
Chromium changes:
https://chromium.googlesource.com/chromium/src/+/e9cd6215666eebc94958d4456182806b213b579b

commit e9cd6215666eebc94958d4456182806b213b579b
Author: EmiliaPaz <emiliapaz@chromium.org>
Date:   Mon Jan 12 10:19:54 2026 -0800

    [Extensions] Remove unused method and param in extensions UI

    Removes:
      - Unused GetActiveWebContents() in extensions_menu_main_page_view
      - Unused Browser param in extensions_menu_entry_view

    This is part of removing use of Browser in extensions UI

    Bug: 448877966
    Change-Id: I7347d3684f25e82847585317412885bf291a8cce
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7431686
    Reviewed-by: Eva Su <evasu@chromium.org>
    Commit-Queue: Emilia Paz <emiliapaz@chromium.org>
    Auto-Submit: Emilia Paz <emiliapaz@chromium.org>
    Cr-Commit-Position: refs/heads/main@{#1567882}
2026-01-29 13:41:15 -05:00
Claudio DeSouza 4dc7cbaf2d [cr145] Glic fix for TabStripActionContainer landed
This CL landing makes all the patches for this issue obsolete.

Chromium changes:
https://chromium.googlesource.com/chromium/src/+/654cf5fc1de0566bd6983f5e835f4c0b2c1c08d3

commit 654cf5fc1de0566bd6983f5e835f4c0b2c1c08d3
Author: Claudio DeSouza <cdesouza@chromium.org>
Date:   Mon Jan 12 13:24:21 2026 -0800

    GlicButtonPressedState: fix glic define guards

    This is a follow up to https://crrev.com/c/7318142, which ended up
    bringing in dependencies to glic-only code into code that is built with
    `enable_glic=false`.

    Change-Id: Ie92b3fc8a7116e3c9b5362e676a7d3e1bf66c385
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7455366
    Commit-Queue: Claudio DeSouza <cdesouza@chromium.org>
    Reviewed-by: Darryl James <dljames@chromium.org>
    Cr-Commit-Position: refs/heads/main@{#1568024}
2026-01-29 13:41:15 -05:00
Claudio DeSouza 6e41326cfb [cr145] Glic fix for ActorTaskListBubbleRowButton landed
The pacthing for this fix is now obsolete.

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

commit b54b701c694d15b4cf0955a0333291a44059215b
Author: Claudio DeSouza <cdesouza@chromium.org>
Date:   Mon Jan 12 14:11:58 2026 -0800

    Fix glic inclusions in ActorTaskListBubbleRowButton

    This is a follow up CL to make sure define guards are preserved in place
    where there is glic-only code.

    Bug: b:469814713, b:469817191
    Change-Id: I6a854c623e956b775c83df5a87b873ead7ddad50
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7452315
    Reviewed-by: David Bokan <bokan@chromium.org>
    Commit-Queue: Claudio DeSouza <cdesouza@chromium.org>
    Cr-Commit-Position: refs/heads/main@{#1568062}
2026-01-29 13:41:14 -05:00
Max Karolinskiy c372e35705 [cr145] Switch vertical tabs utils to use BrowserWindowInterface.
The below change was causing
BraveTabStripUnitTest.SetSelectionShouldNotExpandCollapsedGroupWhenTabStripIsNotEditable
to crash because TabStrip::GetBrowser is now routed via
GetBrowserWindowInterface() which was null in the test.

Chromium change:

https://source.chromium.org/chromium/chromium/src/+/2caf7a29c55e960fea36c55eb83f1d3a02c9a2fb

commit 2caf7a29c55e960fea36c55eb83f1d3a02c9a2fb
Author: Steven Luong <stluong@chromium.org>
Date:   Fri Jan 9 14:09:08 2026 -0800

    [VerticalTabs] Remove browser() accessor from TabStripController

    Bug: 439956588
2026-01-29 13:41:14 -05:00
Max Karolinskiy c0d393e6df [cr145][Android] Java_PermissionDialogController_createDialog moved.
Chromium change:

https://source.chromium.org/chromium/chromium/src/+/08ea8d29e986e64be6e0067727c360e313e9d6f8

commit 08ea8d29e986e64be6e0067727c360e313e9d6f8
Author: Judith Hemp <hempjudith@google.com>
Date:   Fri Jan 9 02:23:13 2026 -0800

    [ClapperQuiet] Add new android permission prompt

    Adds a new permission prompt for the clapper quiet icon.
    We also add the JNI bridge functions. The java side will be implemented in a follow up.

    Bug: 463333225
2026-01-29 13:41:14 -05:00
Artem Samoilenko 7533dcd3f5 [cr145] Remove brave/browser/ui/browser_window/internal dep from Android builds
Otherwise we hit numerous `assert(!is_android)` in deps inside it.
2026-01-29 13:41:13 -05:00
Artem Samoilenko d450d5dc80 [cr145][Android][Permission Dialog] Rename Closing to Dismiss
Chromium changes:
https://chromium.googlesource.com/chromium/src/+/11d1c233f2a83623899b11979908a5f971c3984e

commit 11d1c233f2a83623899b11979908a5f971c3984e
Author: Elias Klim <elklm@chromium.org>
Date:   Fri Jan 9 08:58:26 2026 -0800

    [CodeHealth] Rename `Closing` to `Dismiss`

    This CL renames `Closing` method to `Dismiss` as it is the action name on the permission request.

    Bug: 436493801
    Change-Id: I84c3d22f06baa3284f1bc53a424447d8aa7db370
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7420694
    Commit-Queue: Elias Klim <elklm@chromium.org>
    Reviewed-by: Judith Hemp <hempjudith@google.com>
    Cr-Commit-Position: refs/heads/main@{#1566979}
2026-01-29 13:41:13 -05:00
Claudio DeSouza 6945c1d676 [cr145] Fix for glic code in TabStripActionContainer
This fix corrects the leaking of glic code in `TabStripActionContainer`
into non-glic builds. A fix has been submitted for this:
https://crrev.com/c/7455366

Chromium changes:
https://chromium.googlesource.com/chromium/src/+/834ae1ecb73f7e375c6091a4b5

commit 834ae1ecb73f7e375c6091a4b5fe3fa954c08712
Author: Ian Wells <iwells@chromium.org>
Date:   Thu Jan 8 17:26:42 2026 -0800

    GlicButtonPressedState [1/2]: update container background

    When GlicButton and GlicActorTaskIcon are both visible, they are in a
    container view with a background. New designs for those buttons' pressed
    states call for the container background color to update.

    The container's specific background color and its animated updates were
    easiest to achieve with InkDrop, as is done for the buttons.

    Changes to the button colors are coming next.

    Recording: https://screencast.googleplex.com/cast/NTkzNTAxNzIyNTA5MzEyMHwxNDBjYTBhYS05Zg

    Change-Id: I0aa78f4d1135b9712b6ad81ddcec15151f58689e
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7318142
    Commit-Queue: Ian Wells <iwells@chromium.org>
    Reviewed-by: Darryl James <dljames@chromium.org>
    Cr-Commit-Position: refs/heads/main@{#1566656}
2026-01-29 13:41:13 -05:00
Claudio DeSouza 8d990a64cd [cr145] Fix flic inclusion in ActorTaskListBubbleRowButton
This fix reproduces a fix submitted upstream correcting glic code being
included with `enable_glic=false`. Upstream CL for this fix is:
https://crrev.com/c/7452315

Chromium changes:
https://chromium.googlesource.com/chromium/src/+/13eb4d940cf2fdeba1db5ac56518537a3da2033c

commit 13eb4d940cf2fdeba1db5ac56518537a3da2033c
Author: chrstne <chrstne@google.com>
Date:   Fri Jan 9 12:03:23 2026 -0800

    Nudge shows task done text

    Screencast: https://screencast.googleplex.com/cast/NjAzNTU0NDY5Mjc1MjM4NHw1YzBhOTAyYy05Zg

    Bug: b:469814713, b:469817191
    Change-Id: I55bc2ac6c0f9e37e98ccc7081f2269c7305539e7
    Fixed: b:469814713, b:469817191
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7349077
    Reviewed-by: David Bokan <bokan@chromium.org>
    Reviewed-by: Maggie Jennings <mjenn@google.com>
    Commit-Queue: Christine Ying <chrstne@google.com>
    Reviewed-by: Abe Boujane <boujane@google.com>
    Reviewed-by: Erik Chen <erikchen@chromium.org>
    Cr-Commit-Position: refs/heads/main@{#1567117}
2026-01-29 13:41:12 -05:00
Claudio DeSouza d4f14001cf [cr145] TabStripController::GetBrowser() deleted
This change corrects one of the accesses, while another is marked for
migration, as that particular one has too many dependants.

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

commit 2caf7a29c55e960fea36c55eb83f1d3a02c9a2fb
Author: Steven Luong <stluong@chromium.org>
Date:   Fri Jan 9 14:09:08 2026 -0800

    [VerticalTabs] Remove browser() accessor from TabStripController

    Bug: 439956588
    Change-Id: I7724025c3cc7db6251019c186112447e4d1e558c
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7404070
    Commit-Queue: Steven Luong <stluong@chromium.org>
    Reviewed-by: Darryl James <dljames@chromium.org>
    Cr-Commit-Position: refs/heads/main@{#1567206}
2026-01-29 13:41:12 -05:00
Claudio DeSouza cd5fa2415f [cr145] BrowserView::ShouldDrawStrokes renamed
This method is now called `ShouldDrawTabStrokes`.

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

commit b26a5e135a2162191266b69cf2ace7e27c6f3ae2
Author: dljames <dljames@chromium.org>
Date:   Fri Jan 9 10:47:45 2026 -0800

    Rename BrowserView::ShouldDrawStrokes to ShouldDrawTabStrokes

    ShouldDrawStrokes was renamed to ShouldDrawTabStrokes as that name more
    explicitly captures what the function is verifying.

    Change-Id: I382f7f453eb9da8aefe845295831a1acded7c4c6
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7411034
    Reviewed-by: Muhammad Salmaan <musalmaan@chromium.org>
    Commit-Queue: Darryl James <dljames@chromium.org>
    Reviewed-by: Eshwar Stalin <estalin@chromium.org>
    Reviewed-by: Steven Luong <stluong@chromium.org>
    Cr-Commit-Position: refs/heads/main@{#1567053}
2026-01-29 13:41:12 -05:00
Claudio DeSouza 6c35ccdb8a [cr145] native_widget_types => native_ui_types
Chromium changes:
https://chromium.googlesource.com/chromium/src/+/0935a2bf7574620cd166bbec8434666121240fea

commit 0935a2bf7574620cd166bbec8434666121240fea
Author: Mitsuru Oshima <oshima@chromium.org>
Date:   Fri Jan 9 13:33:13 2026 -0800

    Migrate "gfx::native_widget_types*" target to "gfx::native_ui_types*"

    the file ui/gfx/native_widget_types.h has beeb
    renamed to "native_ui_types.h", and so should the gn targets be.

    This also updates the reference in the comments.

    Bug: 440644556

    Change-Id: I44e6568b1b5f78050340b27e33257ce3b6aa09d1
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7396436
    Reviewed-by: Elly FJ <ellyjones@chromium.org>
    Commit-Queue: Mitsuru Oshima <oshima@chromium.org>
    Reviewed-by: Colin Blundell <blundell@chromium.org>
    Reviewed-by: James Cook <jamescook@chromium.org>
    Cr-Commit-Position: refs/heads/main@{#1567187}
2026-01-29 13:41:12 -05:00
Claudio DeSouza 1c1b76b0a7 [cr145] Several sync proto SVG-related things renamed
This is an exclusive renaming fix for Brave, with what appears to be a
proto update.

Chromium changes:
https://chromium.googlesource.com/chromium/src/+/5071e4a7c1d9f673627c43ac3f39325a4581b2a4

commit 5071e4a7c1d9f673627c43ac3f39325a4581b2a4
Author: Alex Turner <alexmt@chromium.org>
Date:   Fri Jan 9 11:37:12 2026 -0800

    Sync feature protos.

    This CL was initially generated by a Copybara workflow. See the attached
    bug for more details. Then, manual changes were made to the rest of the
    codebase reflect the updated proto.

    Bug: b:452908424, b:474253933
    Change-Id: I817a1155e357bdb4fab317558c66ba1cd5ad24cd
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7416271
    Auto-Submit: Copybara Service <copybara-worker-blackhole@google.com>
    Reviewed-by: Salvador Guerrero Ramos <salg@google.com>
    Reviewed-by: Sophie Chang <sophiechang@chromium.org>
    Commit-Queue: Alex Turner <alexmt@chromium.org>
    Cr-Commit-Position: refs/heads/main@{#1567100}
2026-01-29 13:41:11 -05:00
Claudio DeSouza 404d331b13 [cr145][android] Patches for monocrhome targets deleted
This patch is not necessary anymore as the whole thing has been deleted.

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

commit ecf6c3c62a8fea27a56341162de22c2bf90e9211
Author: Nate Fischer <ntfschr@google.com>
Date:   Fri Jan 9 11:03:12 2026 -0800

    Android: remove unused monochrome targets

    This removes more build targets which were previously used by
    monochrome, however these are now dead code because the top-level
    monochrome targets have been removed. This removes the corresponding
    monochrome-specific Java code.

    Bug: 434045992
    Test: gn gen out/Default
    Change-Id: I9c5e7188e70ef6ce5cf8ba4e621fe07269d3b9dc
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7411410
    Commit-Queue: Nate Fischer <ntfschr@chromium.org>
    Reviewed-by: Andrew Grieve <agrieve@chromium.org>
    Cr-Commit-Position: refs/heads/main@{#1567064}
2026-01-29 13:41:11 -05:00
Max Karolinskiy fbb5cd013f [cr145] Adds ECDSA_SHA384 to switch in GetAlgorithmName.
Chromium change:

https://source.chromium.org/chromium/chromium/src/+/1d9b855ced4c7ee53124d44af3d215789292515b

commit 1d9b855ced4c7ee53124d44af3d215789292515b
Author: Ernest Nguyen Hung <ernn@google.com>
Date:   Wed Jan 7 10:43:58 2026 -0800

    [DBSC] Add Mojo handler for chrome://unexportable-keys-internals

    It adds a Mojo handler for `chrome://unexportable-keys-internals` to
    fetch and delete keys. UI changes will be added in future CL(s).

    Bug: 454585857
2026-01-29 13:41:11 -05:00
Max Karolinskiy b1fbe1c3e2 [cr145] New sync data type SKILL has been added.
Chromium change:

https://source.chromium.org/chromium/chromium/src/+/5e25e8cc98026bbc782cf7048c786f85de0595b1

commit 5e25e8cc98026bbc782cf7048c786f85de0595b1
Author: Rushan Suleymanov <rushans@google.com>
Date:   Wed Jan 7 23:52:17 2026 -0800

    Add scaffold for DataType::SKILL

    Adds the new DataType enum value and an empty specifics proto. Generated
    from components/sync/bootstrap_new_data_type.sh.

    Note to sync reviewer: please verify for every touched static_assert(),
    the change is fitting or has a corresponding TODO.

    Bug: 471793686
2026-01-29 13:41:10 -05:00
Max Karolinskiy c5224dee8c [cr145] Updates lit mangler snapshot. 2026-01-29 13:41:10 -05:00
Max Karolinskiy 2f46bec186 [cr145] gcm was modularized.
Chromium change:

https://source.chromium.org/chromium/chromium/src/+/afd5fc4065dccedff1f3ab2f2a4149aaf643caf1

commit afd5fc4065dccedff1f3ab2f2a4149aaf643caf1
Author: Devlin Cronin <rdevlin.cronin@chromium.org>
Date:   Thu Jan 8 11:20:21 2026 -0800

    [Modularization] Create a build file for //chrome/browser/gcm

    Pull out the files in //chrome/browser/gcm into a separate build file
    and build target.

    This CL should have no production behavior change.

    Bug: 353332589
2026-01-29 13:41:10 -05:00
Max Karolinskiy 6c4e4b94fe [cr145] Use a patch for Browser::DeprecatedCreateOwnedForTesting.
Using an override for the method by copying code is not safe as it
misses upstream changed.

Chromium change:

https://source.chromium.org/chromium/chromium/src/+/961e7f0682c362f078d346556998198f6deca99c

commit 961e7f0682c362f078d346556998198f6deca99c
Author: Thomas Lukaszewicz <tluk@chromium.org>
Date:   Wed Dec 3 12:08:19 2025 -0800

    [bedrock] Add BrowserManagerService::AddBrowserForTesting()

    There are currently several deprecated unit tests under //chrome that
    manually instantiate self-owned browsers via the
    Browser::DeprecatedCreateOwnedForTesting() API.

    Recent CLs have introduced the new ProfileBrowserCollection and
    GlobalBrowserCollection abstractions to track application browser
    objects with appropriate scope.

    All code will be converted from using BrowserList to instead use
    these classes for Browser-related lookups / operations.

    This CL adds support for ProfileBrowserCollection to unit tests that
    instantiate Browsers via the deprecated test-only API. This is done
    by updating BrowserManagerService to track unowned Browser instances
    created by these unit tests. This change is intended to unblock
    BrowserList deprecation without requiring removal of all Browser
    unit tests from the codebase.

    Fixes a couple of unit tests incorrectly tearing down the Browser to
    fix the dangling refs.

    Bug: 431671320
2026-01-29 13:41:09 -05:00
Artem Samoilenko 99b9265c0e [cr145][Android] Fixes for BraveVpnParentActivityTest
This fixes the following error:
C 07:43:50.007   21.797s Main   1| java.lang.IllegalArgumentException: SemanticColorUtils requires a value for the brave.junit.tests:attr/colorSurface attribute to be set in your app theme. You can either set the attribute in your theme or update your theme to inherit from Theme.MaterialComponents (or a descendant).
C 07:43:50.007   21.797s Main   1| 	at com.google.android.material.resources.MaterialAttributes.resolveTypedValueOrThrow(MaterialAttributes.java:72)
C 07:43:50.007   21.797s Main   1| 	at com.google.android.material.color.MaterialColors.getColor(MaterialColors.java:94)
C 07:43:50.007   21.797s Main   1| 	at org.chromium.components.browser_ui.styles.SemanticColorUtils.resolve(SemanticColorUtils.java:33)
C 07:43:50.007   21.797s Main   1| 	at org.chromium.components.browser_ui.styles.SemanticColorUtils.getDefaultBgColor(SemanticColorUtils.java:43)
C 07:43:50.007   21.797s Main   1| 	at org.chromium.chrome.browser.ChromeBaseAppCompatActivity.initializeSystemBarColors(ChromeBaseAppCompatActivity.java:315)
C 07:43:50.007   21.797s Main   1| 	at org.chromium.chrome.browser.ChromeBaseAppCompatActivity.onCreate(ChromeBaseAppCompatActivity.java:251)
C 07:43:50.007   21.797s Main   1| 	at org.chromium.chrome.browser.init.AsyncInitializationActivity.abortLaunch(AsyncInitializationActivity.java:453)
C 07:43:50.007   21.797s Main   1| 	at org.chromium.chrome.browser.init.AsyncInitializationActivity.onCreateInternal(AsyncInitializationActivity.java:419)
C 07:43:50.007   21.797s Main   1| 	at org.chromium.chrome.browser.init.AsyncInitializationActivity.onCreate(AsyncInitializationActivity.java:344)
C 07:43:50.007   21.797s Main   1| 	at android.app.Activity.performCreate(Activity.java:9155)
C 07:43:50.007   21.797s Main   1| 	at android.app.Activity.performCreate(Activity.java:9133)
C 07:43:50.007   21.797s Main   1| 	at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1521)
C 07:43:50.007   21.797s Main   1| 	at org.robolectric.android.internal.RoboMonitoringInstrumentation.callActivityOnCreate(RoboMonitoringInstrumentation.java:377)
C 07:43:50.007   21.797s Main   1| 	at org.robolectric.android.controller.ActivityController.lambda$create$0(ActivityController.java:136)
C 07:43:50.007   21.797s Main   1| 	at org.robolectric.shadows.ShadowPausedLooper.runPaused(ShadowPausedLooper.java:264)
C 07:43:50.007   21.797s Main   1| 	at org.robolectric.android.controller.ActivityController.create(ActivityController.java:134)
C 07:43:50.007   21.797s Main   1| 	at org.robolectric.android.controller.ActivityController.create(ActivityController.java:144)
C 07:43:50.007   21.798s Main   1| 	at org.chromium.chrome.browser.vpn.activities.BraveVpnParentActivityTest.testShouldBringToTop_TrueForProfileActivity(BraveVpnParentActivityTest.java:26)
2026-01-29 13:41:09 -05:00
Claudio DeSouza 53f7dd466e [cr145] ExtensionsMenuDelegateDesktop::UpdateMainPage changed
This change affects the use of this function in one override. This
change corrects this aspect.

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

commit 35c27e689f5eea4f4c69d62a25814ce22e6d5fd2
Author: EmiliaPaz <emiliapaz@chromium.org>
Date:   Wed Jan 7 21:19:09 2026 -0800

    [Extensions] Add HostAccessRequest struct

    Previously, the delegate and view classes were responsible for gathering
    the necessary host access request information (extension name, icon)
    from the ExtensionActionViewModel, which required passing around the WebContents.

    This CL introduces a HostAccessRequest struct to encapsulate the data for an extension requesting host access in the extensions menu.

    Bug: 449814184
    Change-Id: Idfceedcb0c9d34a26fef13b7c0704400befc8839
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7405507
    Reviewed-by: Eva Su <evasu@chromium.org>
    Commit-Queue: Emilia Paz <emiliapaz@chromium.org>
    Cr-Commit-Position: refs/heads/main@{#1566088}
2026-01-29 13:41:09 -05:00