Commit Graph
68929 Commits
Author SHA1 Message Date
Emerick Rogul 3b60f2b2af Hide the image labels toggle button in brave://settings/accessibility 2025-04-17 12:32:46 -04:00
Kamil Jozwiak 606094c288 Merge pull request #28710 from brave/cr136.x
Upgrade from Chromium 136.0.7103.25 to Chromium 136.0.7103.35
2025-04-17 12:23:55 -04:00
Brandon-T 83faed2b3a [iOS] - Fix playlist auto-download when adding an item (#28594) 2025-04-17 12:10:11 -04:00
Brandon-T 442e6cc25e [iOS] - Fix Private Browsing Not working on Open Window (#28621)
* Remove default = false for private browsing. Update all uses to explicitly specify private browsing.
2025-04-17 12:09:51 -04:00
Brandon-T eb58b1d91a [iOS] - Fix download filename. Fix download host. (#28656)
* Strip BidiControl from download file name
* Fix downloads not working for data URIs
* Remove data-uri check. Just don't display any host if there is none (following Safari and Chrome)
2025-04-17 12:09:27 -04:00
Brandon-T fece6ed40e [iOS] - Add DeepSeek R1 Strings (#28681) 2025-04-17 12:08:16 -04:00
brave-builds 3a4e5f13e0 1.79.74 2025-04-17 16:02:33 +00:00
Kyle Hickinson f8a33cf48d [iOS] Remove & replace legacy TabEventHandlers with tab helpers (#28682) 2025-04-17 17:47:56 +02:00
cdesouza-chromium 85e555e5bc [unsafe-buffers] Fix UNSAFE_TODO in BraveStatsUpdaterBrowserTest (#28718)
The simpler fix here is to avoid any buffer operation.

Resolves https://github.com/brave/brave-browser/issues/45513
2025-04-17 16:19:42 +01:00
Emerick Rogul 2c0359b4b0 Disable a few upstream browser tests that conflict with our settings 2025-04-17 10:06:58 -04:00
Terry Mancey 59bbf82c8c [ads] Add condition matcher logging (#28709) 2025-04-17 15:01:10 +02:00
brave-builds d058392936 1.79.73 2025-04-17 12:07:54 +00:00
brave-builds ca4fbba530 1.79.72 2025-04-17 12:02:54 +00:00
cdesouza-chromium f8ec3dca1b [CodeHealth] Remove override for GetInstanceForNativeUi (#28683)
A fix has been submitted to have this fixed on upstream, which is
getting cherry-picked as a patch in this change.

Additionally this change clean up all the overrides related to the
upstream change, as well as nearby code that seems to be obsolete.

Resolves https://github.com/brave/brave-browser/issues/45455

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

commit a0bc8aeba09c0ec094a1d14a2032709610defd38
Author: Claudio DeSouza <cdesouza@chromium.org>
Date:   Tue Apr 15 13:35:18 2025 -0700

    [android] Support `NativeTheme::GetInstanceForNativeUi`

    This change allows `NativeTheme::GetInstanceForNativeUi` to return the
    current instance for the native theme as well, on Android, as this seems
    to be a historical leftover.

    Bug: 385988433
    Change-Id: I077348afb8a239c67fa2b4157a886a0a710a61a5
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6454402
    Reviewed-by: Elly FJ <ellyjones@chromium.org>
    Commit-Queue: Claudio DeSouza <cdesouza@chromium.org>
    Cr-Commit-Position: refs/heads/main@{#1447347}
2025-04-17 09:23:26 +01:00
Anton Paymyshev c3275fe3f2 Cardano transactions core support (#28462) 2025-04-17 09:30:13 +07:00
Jay Harris de08121b52 [docs]: Add documentation about how to override upstream WebUI (#28691) 2025-04-17 03:36:10 +02:00
brave-builds dac2385412 1.79.71 2025-04-17 00:07:05 +00:00
Jay Harris e365fec72a [patches]: Make it possible to update only a specific patches with update_patches (#28632)
* [patches]: Make it possible to update only a single patch
2025-04-17 01:41:50 +02:00
Jocelyn Liu a27b376f7a Merge pull request #28708 from brave/tab_focus_show_fre_changed
Update tab focus show FRE upon pref changes
2025-04-16 16:16:19 -07:00
Jay Harris f47d2e9a83 [shields]: Fix shields strings (#28692) 2025-04-17 01:08:29 +02:00
Terry Mancey f3b3c22455 [ads] Always explicitly set feature flags in tests regardless of default state (#28690) 2025-04-17 00:21:43 +02:00
Claudio DeSouza 34580c4297 [cr137] Repackaging WinSDK 10.0.26100.3323 with d3dcompiler_47.dll
This is an update to the Windows SDK with a repackaged SDK, that
includes a version of `d3dcompiler_47.dll` from `10.0.22621.2428`.

Resolves https://github.com/brave/brave-browser/issues/45263

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

commit fca8e8720feecf9faa988b92806b574cd530b23e
Author: Devon Loehr <dloehr@google.com>
Date:   Thu Mar 20 09:54:01 2025 -0700

    Update Supported Windows SDK to 10.0.26100.3323

    The floor bug (https://crbug.com/374162585) which blocked the previous roll has been addressed, so we're trying to update the SDK again.

    Code changes are essentially the same as the previous update attempt
    (https://crrev.com/c/5898835). Some minor changes to gate new SDK features behind a #define while we transition, and some regenerated image baselines to support the new 3D emojis. Note that updating mc.exe and midl.exe outputs produced no changes.

    Pleasantly, the linking change to d3dcompiler_47.dll has been undone, so we no longer need to patch in an older version. This means the update is about as straightforward as it gets.

    -----------------------------------------------------------------
    Instructions to reproduce:

    These instructions are best done on a fresh VM. Make sure to uninstall any existing installations of Visual Studio and any existing SDK installations before starting.

    1. Install git for windows from their website, with the default settings (https://git-scm.com/downloads/win)
    2. Install depot_tools following the instructions on their webpage (https://commondatastorage.googleapis.com/chrome-infra-docs/flat/depot_tools/docs/html/depot_tools_tutorial.html#_setting_up)
    3. Run:
    $ git config --global depot-tools.allowGlobalGitConfig true
    4. Download Visual Studio Professional (Free Trial) from the official site (https://visualstudio.microsoft.com/downloads/)
    5. Run the VS installer with the following arguments:
    ```
    $ VisualStudioSetup.exe --add Microsoft.VisualStudio.Workload.NativeDesktop --add Microsoft.VisualStudio.Component.VC.ATLMFC --add Microsoft.VisualStudio.Component.VC.Tools.ARM64 --add Microsoft.VisualStudio.Component.VC.MFC.ARM64 --includeRecommended --passive
    ```
    6. Open the VS installer (from the start menu), click “Modify”, and uninstall any existing SDK versions (search for “windows sdk”).
    7. Open “Add or Remove Programs” and make sure there are no SDK versions installed; remove them if so (search for “windows software development kit”).
    8. Download SDK Version 10.0.26100.3323 from the official site (https://developer.microsoft.com/en-us/windows/downloads/windows-sdk/)
    9. Run the SDK installer with default settings, except disable “insights”.
    10. Run the packaging script from depot_tools, e.g
    $ python3 depot_tools\win_toolchain\package_from_installed.py 2022 -w 10.0.26100.0

    Link to packaging script version used for packaging: https://source.chromium.org/chromium/chromium/tools/depot_tools/+/main:win_toolchain/package_from_installed.py;drc=371aa997c04791d21e222ed43a1a0d55b450dd53

    This resulted in the final package with hash 076960eda6.

    Bug: 362650376
    Change-Id: Ib6cb299ab20cfca1e72f34728e6ea165ab057d05
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6252774
    Reviewed-by: Keren Zhu <kerenzhu@chromium.org>
    Reviewed-by: Dominic Farolino <dom@chromium.org>
    Reviewed-by: Zequan Wu <zequanwu@google.com>
    Commit-Queue: Devon Loehr <dloehr@google.com>
    Reviewed-by: Giovanni Ortuno Urquidi <ortuno@chromium.org>
    Reviewed-by: Dominik Röttsches <drott@chromium.org>
    Cr-Commit-Position: refs/heads/main@{#1435503}
2025-04-16 22:15:23 +01:00
Claudio DeSouza abfe6be03e Updated strings for Chromium 136.0.7103.34. 2025-04-16 22:14:23 +01:00
Claudio DeSouza a75a2766fb Update patches from Chromium 136.0.7103.25 to Chromium 136.0.7103.34. 2025-04-16 22:13:57 +01:00
Claudio DeSouza 441da65544 Update from Chromium 136.0.7103.25 to Chromium 136.0.7103.34. 2025-04-16 22:12:19 +01:00
Jocelyn Liu 222c68dbad Update tab focus show FRE upon pref changes
Get the latest value upon connected and listen on pref changes.
2025-04-16 13:54:04 -07:00
Kyle Hickinson 3b9aa53f68 [iOS] Fix certificate unit tests running on iOS 18.4 (#28703)
iOS 18.4 simulators have a known issue with networking that can cause repeated requests to pages that support HTTP3 to timeout/fail (https://developer.apple.com/forums/thread/777999). This switches the unit tests to use an `ephemeral` configuration which is a known workaround
2025-04-16 22:15:52 +02:00
Kyle Hickinson f1561aab21 [iOS] Defer rewards engine startup until enabled by the user (#28701) 2025-04-16 15:32:06 -04:00
Mihai PLESA e973a630ec Merge pull request #27986 from brave/cr136
Upgrade from Chromium 135 to Chromium 136
2025-04-16 13:16:19 -04:00
brave-builds ff60f16cca 1.79.70 2025-04-16 16:03:25 +00:00
Douglas Daniel cff416ef82 fix(wallet): Add Click Away Area to Bottom Sheet (#28672) 2025-04-16 09:51:44 -05:00
brave-builds 67972169d0 1.79.69 2025-04-16 12:07:38 +00:00
brave-builds a66a6bae1f 1.79.68 2025-04-16 12:02:35 +00:00
Claudio DeSouza c84711c566 Updated strings for Chromium 136.0.7103.25. 2025-04-16 09:33:08 +01:00
Claudio DeSouza ef5cffb721 Update patches from Chromium 135.0.7049.100 to Chromium 136.0.7103.25. 2025-04-16 09:32:39 +01:00
Emerick Rogul f9662fee55 [cr136] Continue to use IProcessLauncher::LaunchCmdElevated
QA discovered that on-demand updates were failing with cr136 on Windows. The
delta update was downloaded, but the call to rename the executable failed with:

[26260:26536:0414/144959.375:ERROR:chrome\browser\first_run\upgrade_util_win.cc:326] app->get_command failed; hr = 80070005

Based on feedback from our installer/Omaha team, we decided to revert this
change and continue to use IProcessLauncher::LaunchCmdElevated.

Chromium change:
https://source.chromium.org/chromium/chromium/src/+/6822d2ac265835f8b1f52b89cdd57593c1413dae

commit 6822d2ac265835f8b1f52b89cdd57593c1413dae
Author: S. Ganesh <ganesh@chromium.org>
Date:   Mon Mar 31 13:26:48 2025 -0700

    Chrome: IProcessLauncher::LaunchCmdElevated => IAppCommandWeb::execute

    This CL migrates the system-level rename operation via the `updater`
    from `IProcessLauncher::LaunchCmdElevated` to `IAppCommandWeb::execute`.

    `IProcessLauncher::LaunchCmdElevated` uses an `[out]` parameter of type
    `ULONG_PTR`. `ULONG_PTR` is not a supported type for OLE automation
    marshaling, which is what the `updater` uses. In addition, its size
    changes with the size of a pointer (32/64). It is typed to a 64-bit for
    x64, and 32-bit for x86.

    Fixed: 407126161
2025-04-16 09:30:33 +01:00
Claudio DeSouza b051b77276 [android][cr136] Revert "Fix Gradle build generation for Android (#28404)"
This reverts commit 1bacd2964d.

Chromium changes:
https://chromium.googlesource.com/chromium/src/+/94ab84cbb5e5b37306b7dbcec5b3d32dcbcbfff4

commit 94ab84cbb5e5b37306b7dbcec5b3d32dcbcbfff4
Author: Haiyang Pan <hypan@google.com>
Date:   Fri Mar 14 10:59:16 2025 -0700

    Set use_reclient=false in incremental_javac_test_android_library.py

    Similar to the fix https://crrev.com/c/6355212, this is to fix the
    compile error in http://ci.chromium.org/b/8720408648055680897

    This CL overrides use_reclient=false as same as use_remoteexec.

    Bug: 403379511
    Change-Id: I7ff2a23e9f5c12cdc0464985a57a54d4a27af2da
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6355792
    Commit-Queue: Haiyang Pan <hypan@google.com>
    Reviewed-by: Andrew Grieve <agrieve@chromium.org>
    Cr-Commit-Position: refs/heads/main@{#1432872}
2025-04-16 09:30:33 +01:00
Emerick Rogul bc84c1ccc8 [cr136] Disable features flagged by privacy/security team 2025-04-16 09:30:33 +01:00
Claudio DeSouza 1c5df16f5e [cr136] Adding ShouldShowExtensionSignInPromo tests
This change adds a test to confirm that this new promo function is also
disabled.
2025-04-16 09:30:33 +01:00
Kyle Hickinson 58a9508b69 [cr136][iOS] Add TabGroupServiceFactory to factory build list
Chromium change: https://chromium-review.googlesource.com/c/chromium/src/+/6304464

commit 6e2d4797aa27bbfcd13e05895cd8a519eb78d206
Author: Aliona DANGLA <alionadangla@google.com>
Date:   Fri Mar 21 09:45:02 2025 -0700

    [iOS] Add TabGroupService

    Create a tab group service to store some helper functions needed for the
    web state list.

    Fixed: 378881981
    Change-Id: Iaf49b35e36c1fee7f6a14e2bbedc0babf46d4ff7
2025-04-16 09:30:33 +01:00
AlexeyBarabash 1adaf6c16e [cr136][Android] Disabled _CheckAndroidNullAwayAnnotatedClasses for some classes
These files are not have enabled check at the upstream.

Chromium change:
https://source.chromium.org/chromium/chromium/src/+/224ee248b1cb706a8aaf58ea3fa173835fcea8b7

	Reland "Add _CheckAndroidNullAwayAnnotatedClasses PRESUBMIT check"

	Doing a simpler check, not trying to figure out if the annotation is in the class declaration or on a method declaration. It would be
	very rare for a method to be annotation and not the class.

	This reverts commit ae8498e7516099f7e07b7477ecc6af65da6ade99.

	Reason for revert: Fixed version

	Original change's description:
	> Revert "Add _CheckAndroidNullAwayAnnotatedClasses PRESUBMIT check"
	>
	> This reverts commit cfe861e365f1c00b7dae00cae8cdcf69cf4123e1.
	>
	> Reason for revert: Doesn't ignore comments
	>
	> Original change's description:
	> > Add _CheckAndroidNullAwayAnnotatedClasses PRESUBMIT check
	> >
	> > Warn when a .java file is missing @NullMarked and @NullUnmarked.
	> >
	> > Temporarily disabled in //android_webview and //chrome while migrating.
	> >

	...

	Bug: 404884589
	Change-Id: I11d0ed28bf1941e72df5dcc457fb9d7e62dc89ac
	Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6381838
2025-04-16 09:30:33 +01:00
Claudio DeSouza 62e78505d5 [cr136][rust] Pulling num-bigint-0.4.6 from upstream
This change drops the local crate for `num-bigint-0.4.3` in favour of
the one checked out in the chromium tree.

Chromium changes:
https://chromium.googlesource.com/chromium/src/+/667fc3f5519cddeaa61316868fcbfa5c7d38ebaf

commit 667fc3f5519cddeaa61316868fcbfa5c7d38ebaf
Author: Manish Goregaokar <manishearth@google.com>
Date:   Mon Feb 3 16:11:14 2025 -0800

    Import ICU4x 2.0.0-beta1

    This imports ICU4X 2.0.0-beta1 and its dependencies. I have taken this
    opportunity to audit and improve most of these crates, with audits
    included in this CL. From discussion with lukasza@ I have also written
    exemptions for some of these rather than reviewing everything:
    ICU4X is already used in Google3 (and soon
    Android) and is in part Google maintained, with a crabal member (me)
    having written or reviewed most of the unsafe code. I still intend to
    get audits published for the things we have exemptions for, it may just
    take a while.

    Bug: 393889248
    Change-Id: I63967fb71044ccc542854d8ebcca7d9e7359d156
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6222782
    Reviewed-by: Daniel Cheng <dcheng@chromium.org>
    Commit-Queue: Manish Goregaokar <manishearth@google.com>
    Reviewed-by: Łukasz Anforowicz <lukasza@chromium.org>
    Commit-Queue: Łukasz Anforowicz <lukasza@chromium.org>
    Cr-Commit-Position: refs/heads/main@{#1415265}
2025-04-16 09:30:33 +01:00
AlexeyBarabash b25c92b87c [cr136][Android] Fixed some NullAway warnings
There still many unfixed files:
  android/features/tab_ui/java/src/org/chromium/chrome/browser/tasks/tab_management/BraveIncognitoTabSwitcherPane.java
  android/features/tab_ui/java/src/org/chromium/chrome/browser/tasks/tab_management/BraveTabGroupUiCoordinator.java
  android/features/tab_ui/java/src/org/chromium/chrome/browser/tasks/tab_management/BraveTabSwitcherPaneBase.java
  android/java/org/chromium/chrome/browser/bookmarks/BraveBookmarkManagerCoordinator.java
  android/java/org/chromium/chrome/browser/bookmarks/BraveBookmarkManagerMediator.java
  android/java/org/chromium/chrome/browser/bookmarks/BraveBookmarkToolbarCoordinator.java
  android/java/org/chromium/chrome/browser/bookmarks/BraveBookmarkUtils.java
  android/java/org/chromium/chrome/browser/customtabs/FullScreenCustomTabActivity.java
  android/java/org/chromium/chrome/browser/customtabs/FullScreenCustomTabRootUiCoordinator.java
  android/java/org/chromium/chrome/browser/firstrun/WelcomeOnboardingActivity.java
  android/java/org/chromium/chrome/browser/settings/AppearancePreferences.java
  android/java/org/chromium/chrome/browser/suggestions/tile/BraveMostVisitedTilesLayoutBase.java
  android/java/org/chromium/chrome/browser/toolbar/BraveToolbarManager.java
  android/java/org/chromium/chrome/browser/toolbar/bottom/BottomToolbarCoordinator.java
  android/java/org/chromium/chrome/browser/toolbar/bottom/BraveBottomControlsCoordinator.java
  android/java/org/chromium/chrome/browser/toolbar/top/BraveToolbarLayoutImpl.java
  android/java/org/chromium/chrome/browser/toolbar/top/BraveTopToolbarCoordinator.java
  browser/hub/internal/android/java/src/org/chromium/chrome/browser/hub/BraveHubManagerImpl.java
  browser/hub/internal/android/java/src/org/chromium/chrome/browser/hub/BraveHubToolbarView.java

They are not fixed because they are waiting for the upstream's counterparts to be fixed.
See exclusions at _CheckAndroidNullAwayAnnotatedClasses at src/PRESUBMIT.py

Related Chromium issue:
https://issues.chromium.org/issues/389129271

	Add @NullMarked to all .java Files
2025-04-16 09:30:33 +01:00
Claudio DeSouza ea06f32c8a [rust][cr136] bitflags-1.3.2 crate deleted
This crate is still in use in Brave, so a copy of it is being checked
out in the tree.

Chromium changes:
https://chromium.googlesource.com/chromium/src/+/2654c789bc9562774b5552bc09813f7606b235c6

commit 2654c789bc9562774b5552bc09813f7606b235c6
Author: Lukasz Anforowicz <lukasza@chromium.org>
Date:   Fri Mar 7 14:05:01 2025 -0800

    [rust png] Roll `png` crate to version 0.18*

    This CL has been created semi-automatically.  Manual changes have been
    made as follows:

    * Before automated update:
        - Switch to 0.18 in
          `//third_party/rust/chromium_crates_io/Cargo.toml`
          (`=...` syntax is needed because 0.18 is a "prerelease")
        - Remove 0.17-targeting patches under
          `//third_party/rust/chromium_crates_io/patches/png`
    * After automated update:
        - Remove old `//third_party/rust/foo/vX` directories
        - Edit `skia/BUILD.gn` to enable `png_0_18` crate feature
          (this part depends on http://review.skia.org/958801)
        - Record the audit in
          `.../chromium_crates_io/supply-chain/audits.toml`

    Updated crates:

    * png: 0.17.16 => 0.18.0-rc

    Removed crates:

    * bitflags@1.3.2

    Chromium `supply-chain/config.toml` policy requires that the following
    audit criteria are met (note that these are the *minimum* required
    criteria and `supply-chain/audits.toml` can and should record a stricter
    certification if possible;  see also //docs/rust-unsafe.md):

    * png@0.18.0-rc: crypto-safe, safe-to-deploy, ub-risk-2

    Bug: None
    Change-Id: I9008912d7ac58b66887b7bf276367e56aad51828
    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
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6318699
    Reviewed-by: Liza Burakova <liza@chromium.org>
    Reviewed-by: Florin Malita <fmalita@chromium.org>
    Commit-Queue: Łukasz Anforowicz <lukasza@chromium.org>
    Cr-Commit-Position: refs/heads/main@{#1429744}
2025-04-16 09:30:33 +01:00
AlexeyBarabash d882efea9b [cr136] Removed patch at CurrentChannelLogoResourceId
There is still a presubmit warning similar to the one at upstream:

Banned functions were used.
    chromium_src/chrome/browser/ui/webui/current_channel_logo.cc:15:
      Code gated by OFFICIAL_BUILD is effectively untested. This is typically wrong. One valid use case is low-level code that handles subtleties related to high-levels of optimizations that come with OFFICIAL_BUILD.

Related Chromium commit:
https://source.chromium.org/chromium/chromium/src/+/c134a4989fe915c47d32b83336db1e03750e4943

	extensions: Show chrome logo on chrome://extensions on desktop android

	I ignored the following warning, because I just extracted the existing
	piece of code as a helper function.

	** Presubmit Warnings: 1 **
	Banned functions were used.
	    chrome/browser/ui/webui/current_channel_logo.cc:15:
	      Code gated by GOOGLE_CHROME_BRANDING is effectively untested. This is typically wrong. Valid use cases are glue for private modules shipped alongside Chrome, and installation-related logic.

	Bug: 406136774
	Fixed: 406136774
	Test: Manually confirm the logo is shown on chrome://extensions both on
	light mode and dark mode on desktop android

	Change-Id: I1a0b8b0af46c25f605a2e5047a0bc54212fffa3f
	Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6399693
2025-04-16 09:30:33 +01:00
AlexeyBarabash 4f95f92cdb [cr136][Android] New tabGroupCreationUiFlow arg at tab switcher methods
- IncognitoTabSwitcherPane.ctor
- TabSwitcherPaneBase.ctor

Related Chromium Change:
https://source.chromium.org/chromium/chromium/src/+/b6c84d64a4657ea268fed6b48a5f7654ab084266

	[Tab Group Entry Points] New Tab Switcher 3-Dot Menu Entry

	- New 3-dot tab switcher menu entry for creating new tab groups
	- Screenshot: http://screen/6SfoHGPnTPrdYmQ.png

	Bug: 407081818
	Change-Id: I944c82a9d989a54ed7a70c39489bd79df2b1ea33
	Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6408536
2025-04-16 09:30:32 +01:00
AlexeyBarabash 72b40f7798 [cr136][Android] Removed tab_resumption_module_container_stub layout
Related Chromium changes:
https://source.chromium.org/chromium/chromium/src/+/f8de93495c1d5e041d25dfd02d60f03ff1fabeed

	[Android TRM] Remove R.id.tab_resumption_module_container_stub.

	In crrev.com/c/5297855, the Tab Resumption Module was integrated into
	the Magic Stack. Therefore it no longer needs the ViewStub
	R.id.tab_resumption_module_container_stub as the top level layout, but
	it still lingers. This CL deletes the now useless ViewStub.

	Bug: 1515325
	Change-Id: I358b64ef57c267629230578cf8dc5b28af3d7dfc
	Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5734353

https://source.chromium.org/chromium/chromium/src/+/28cde898edae21f1b807d3e0e43d62701837ac7a

	[Android TRM] Remove feature and most of the code.

	This CL removes the Android Tab Resumption Module:
	* Remove chrome/browser/tab_resumption.
	* Remove flags and configs.
	* Remove 5 UI strings: IDS_TAB_RESUMPTION_MODULE_*,
	  IDS_N_{MINUTES,HOURS}_AGO_NARROW.
	* Remove resources.

	Need to keep for metrics:
	* tools/metrics/histograms/enums.xml entry.

	Out of scope of this CL; TODO in follow-ups:
	* NTP Customization features and tests involving the TRM (will remove in
	  follow-up).
	* Keep IDS_TAB_RESUMPTION_MODULE_SEE_MORE "See more": This got reused by
	  Tab Switcher.
	* Keep IDS_HOME_MODULES_TAB_RESUMPTION_TITLE "Continue with this tab" /
	  "Continue with these tabs": Used by Single Tab Module.

	Unaffected:
	* TRM still exists on Desktop and iOS. Tab data sync from Android
	  continue to work same as before.

	Bug: 400479323, 400479745
	Change-Id: I38cc101c361c761d38dff931b7ab6d15960836fa
	Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6408054
2025-04-16 09:30:32 +01:00
Claudio DeSouza c22976042d [cr136] Whitelist brave's uses of DialogDelegateView
Upstream is locking the classes that can use `DialogDelegateView` with a
passkey schema. This means that we have to whitelist our own uses of it.

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

commit f37072578e92ec3b57c4a21bc225a67fdac24279
Author: Peter Kasting <pkasting@chromium.org>
Date:   Mon Mar 31 17:27:36 2025 -0700

    Lock DialogDelegateView to existing uses only.

    This makes the constructor private and adds the existing uses as
    friends.

    Bug: 403313552
    Change-Id: I370e199aa16d5f6e88de96aa5fd8813de937cd76
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6374563
    Reviewed-by: David Yeung <dayeung@chromium.org>
    Commit-Queue: Peter Kasting <pkasting@chromium.org>
    Cr-Commit-Position: refs/heads/main@{#1440654}
2025-04-16 09:30:32 +01:00
Claudio DeSouza 143fa69e18 [cr136] Current channel logo resource id patching moved
The patching for this used to be in
`chrome/browser/ui/webui/theme_source.cc`, but this code is now under
`chrome/browser/ui/webui/current_channel_logo.cc`, in its own function.

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

commit c134a4989fe915c47d32b83336db1e03750e4943
Author: Keigo Oka <oka@google.com>
Date:   Mon Mar 31 14:24:15 2025 -0700

    extensions: Show chrome logo on chrome://extensions on desktop android

    I ignored the following warning, because I just extracted the existing
    piece of code as a helper function.

    ** Presubmit Warnings: 1 **
    Banned functions were used.
        chrome/browser/ui/webui/current_channel_logo.cc:15:
          Code gated by GOOGLE_CHROME_BRANDING is effectively untested. This is typically wrong. Valid use cases are glue for private modules shipped alongside Chrome, and installation-related logic.

    Bug: 406136774
    Fixed: 406136774
    Test: Manually confirm the logo is shown on chrome://extensions both on
    light mode and dark mode on desktop android

    Change-Id: I1a0b8b0af46c25f605a2e5047a0bc54212fffa3f
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6399693
    Auto-Submit: Keigo Oka <oka@chromium.org>
    Commit-Queue: Keigo Oka <oka@chromium.org>
    Reviewed-by: Demetrios Papadopoulos <dpapad@chromium.org>
    Reviewed-by: Erik Chen <erikchen@chromium.org>
    Cr-Commit-Position: refs/heads/main@{#1440558}
2025-04-16 09:30:32 +01:00
Emerick Rogul dc98e277d0 Rework tab dragging overrides and patches
Due to the introduction of DraggingTabsSession which now handles many of the
tab-related dragging responsibilities, we need to modify our patches and
overrides to work within this new framework.

Chromium change:
https://chromium.googlesource.com/chromium/src/+/b39ab7bc4ae0db831a930d373264e5edf8205fdc

commit b39ab7bc4ae0db831a930d373264e5edf8205fdc
Author: Taylor Bergquist <tbergquist@chromium.org>
Date:   Mon Mar 24 16:22:37 2025 -0700

    Create DraggingTabsSession to handle dragging tabs within a tabstrip.

    DraggingTabsSession handles the work of the kDraggingTabs state for
    TabDragController. This functionally boils down to implementing
    MoveAttached. TabDragController creates a new DraggingTabsHelper each
    time it enters kDraggingTabs (or, in one case, when it enters
    kWaitingToDragTabs instead), and destroys it when exiting that state.

    This removes quite a few responsibilities from TabDragController - most
    of the detailed business logic bits are in this domain, even though it's
    a minority of the code size. It's also more testable, since it doesn't
    have to deal with creating windows or running move loops. A compact
    interface with minimal dependencies, hiding lots of requirements? It's
    unit test heaven. Followup CLs will set up a test harness and convert
    TabDragControllerInteractiveUITests into DraggingTabsSessionUnitTests.

    Bug: 382754501
2025-04-16 09:30:32 +01:00