Commit Graph
71341 Commits
Author SHA1 Message Date
AlexeyBarabash 3a554ef2cb [cr140][Android] NewTabPage.updateSearchProviderHasLogo is updateSearchProvider
Method was renamed and its functionality was extended

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

	[ParityV2] Show fake search box for 3p DSE.

	In this CL, we show fake search box for 3p DSE without logo in both
	phones and tablets. A temporary top margin is added to the fake search box. We also adjust NtpFakeSearchBoxTransitionStartOffset to
	prevent the search box's alpha is set 0 (transparent) on tablets.
	Screenshots: http://shortn/_qHQjTnhSYU

	Bug: 426594110
	Change-Id: If81df470078dfd24d28fcaf6107bcc401691e985
	Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6676222
2025-08-19 19:54:18 +01:00
AlexeyBarabash 8d822407cf [cr140][Android] Switched off translate_genders arg for Android
Reason - many errors of
```
ERROR Input to targets not generated by a dependency.
The file:
  //out/android_Debug_arm/gen/brave/brave_generated_resources_af_FEMININE.pak
is listed as an input or source for the targets:
  //chrome/android:chrome_apk_paks_locales_af_FEMININE
  //chrome/android:chrome_bundle_module_paks_locales_af_FEMININE
  //chrome/android:monochrome_apk_paks_locales_af_FEMININE
  //chrome/android:monochrome_bundle_module_paks_locales_af_FEMININE
  //chrome/android:trichrome_chrome_bundle_module_paks_locales_af_FEMININE
but no targets in the build generate that file.
```

Chromium change:
https://source.chromium.org/chromium/chromium/src/+/3c46aa800cbd4e21aeb08ac7c1222ce33d5c902e

	Reland: Enable generation of gendered locale PAKs for Android by default.

	I've submitted a change to the internal repo which should fix
	the internal bot failures.

	Original CL:
	https://chromium-review.googlesource.com/c/chromium/src/+/6656879

	Binary-Size: Adding new PAK files for gender translations.
	Bug: 416291329
	Change-Id: I0ed0e98ce75c58e364c0f366799462611ee15f6a
	Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6681239
2025-08-19 19:54:18 +01:00
Claudio DeSouza 7d9f297276 [rust][cr140][WIP] Disabling README checks blocking gnrt
Chromium changes:
https://chromium.googlesource.com/chromium/src/+/3c2713dcdc0513b0e4cf800c1a5a7e5d6497c0c0

commit 3c2713dcdc0513b0e4cf800c1a5a7e5d6497c0c0
Author: Lukasz Anforowicz <lukasza@chromium.org>
Date:   Thu Jun 26 10:17:52 2025 -0700

    [gnrt] Check if license files from `gnrt_config.toml` actually exist.

    Fixed: 427977392
    Change-Id: I5e743247ec3cf7072d9f3ebdac36aaabc87b394f
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6681108
    Reviewed-by: Manish Goregaokar <manishearth@google.com>
    Commit-Queue: Manish Goregaokar <manishearth@google.com>
    Cr-Commit-Position: refs/heads/main@{#1479271}
2025-08-19 19:54:18 +01:00
Claudio DeSouza 580aa6d2c5 [cr140] Use blink::AtomicString
This is part of a larger couple of changes abandoning the use of
`WTF::`.

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

commit a48dc60ea4e989a488aeb80f4f2091264b1276bc
Author: Kent Tamura <tkent@chromium.org>
Date:   Mon Jun 30 15:54:53 2025 -0700

    Switch wtf/text/atomic_string*.* to "blink" namespace

    This CL has no behavior changes.

    Binary-Size: Increase is temporary.
    Bug: 422768753
    Change-Id: I708c59b6871d44c895e095b3fe9d80ceed1017bb
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6682860
    Reviewed-by: Koji Ishii <kojii@chromium.org>
    Reviewed-by: Jesse McKenna <jessemckenna@google.com>
    Commit-Queue: Kent Tamura <tkent@chromium.org>
    Reviewed-by: Takashi Toyoshima <toyoshim@chromium.org>
    Cr-Commit-Position: refs/heads/main@{#1480782}
2025-08-19 19:54:18 +01:00
Claudio DeSouza 8a77b6a014 [cr140] BrowserWindowFeatures not virtual anymore
This change corrects our own override of `BrowserWindowFeatures` to
match the new interface. However, it is necessary to add a patch to tag
the destructor for `BrowserWindowFeatures` as virtual again

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

commit d578f0a6bc931f340ceee8647c8a18d217c88e28
Author: Dana Fried <dfried@chromium.org>
Date:   Mon Jun 30 12:59:20 2025 -0700

    [Unowned Data] Remove test factory for BrowserWindowFeatures

    Since we can do injection and substitution via UnownedUserDataHost and
    UserDataFactory, there's no reason to also be able to subclass
    BrowserWindowFeatures for testing. (Also nobody was actually doing it.)

    This also removes the necessity for a factory method that can be
    overridden in tests; BrowserWindowFeatures can simply be directly
    created.

    Bug: 427458853
    Change-Id: I8cedee53fdd0ae740fd5a2d75e9ac12f88341d83
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6681570
    Commit-Queue: Dana Fried <dfried@chromium.org>
    Reviewed-by: Devlin Cronin <rdevlin.cronin@chromium.org>
    Cr-Commit-Position: refs/heads/main@{#1480690}
2025-08-19 19:54:18 +01:00
Claudio DeSouza b552f758c6 [cr140] kSegmentationPlatformCollectTabRankData deleted
This feature was being disabled, and now its code is also gone.

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

commit 3d341f6bf62d96446a2162581d575d67258f77ca
Author: Mahmoud Rashad <mmrashad@google.com>
Date:   Mon Jun 30 15:10:40 2025 -0700

    [CodeHealth] Clean up SegmentationPlatformCollectTabRankData

    Fixed: 356237187
    Change-Id: I99cde4367873c16dfbb2856bfac71934b44b0a50
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6691160
    Reviewed-by: Siddhartha S <ssid@chromium.org>
    Commit-Queue: Mahmoud Rashad <mmrashad@google.com>
    Cr-Commit-Position: refs/heads/main@{#1480765}
2025-08-19 19:54:17 +01:00
Claudio DeSouza fd3335538a [cr140] MacOS hermetic toolchain on XCode 16.4, SDK 15.5
Chromium changes:
https://chromium.googlesource.com/chromium/src/+/6a67dce6588ec20f616306d9d639c660f18317fe

commit 6a67dce6588ec20f616306d9d639c660f18317fe
Author: Mark Mentovai <mark@chromium.org>
Date:   Wed Jun 25 10:47:52 2025 -0700

    mac: Switch to Xcode 16.4 (16F6) and SDK 15.5 (24F74)

    Change-Id: Ic4f239e6a7c4c56fe93a22dccb793d07d600294c
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6674373
    Reviewed-by: Leonard Grey <lgrey@chromium.org>
    Commit-Queue: Mark Mentovai <mark@chromium.org>
    Cr-Commit-Position: refs/heads/main@{#1478653}
2025-08-19 19:54:17 +01:00
AlexeyBarabash c0f036f00a [cr140][Android] Fixed crash at BraveTabGroupModelFilter
Error text: java.lang.IllegalAccessError: Method
BraveTabGroupModelFilter.shouldGroupWithParent
is inaccessible to class 'TabGroupModelFilterImpl'
2025-08-19 19:54:17 +01:00
AlexeyBarabash 75d47f9af9 [cr140][Android] Fixed missing includes for WebContens 2025-08-19 19:54:17 +01:00
AlexeyBarabash 6f28f4e9aa [cr140][Android] sync: Add extensions checkbox to settings on desktop Android
Chromium change:
https://source.chromium.org/chromium/chromium/src/+/2460bafb67b67c895e7eb21e63fcdfaac1bcfbf5

	sync: Add extensions checkbox to settings on desktop Android

	Support for extensions sync was recently added to desktop Android.
	Update the sync settings page to add a checkbox for the sync data
	type.

	      toggles sync data type in chrome://sync-internals

	Test: added to chrome_public_test_apk
	Test: manually verified checkbox appears on desktop Android and
	Test: manually verified checkbox does not appear on non-desktop Android
	Bug: 424217517
	Change-Id: Ifd6643e1d8b013e5d5383d21ef31a51863277650
	Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6652500
2025-08-19 19:54:17 +01:00
AlexeyBarabash 729fdd9fbf [cr140][Android] Clean up Header/Footer creation for the app menu.
Chromium change:
https://source.chromium.org/chromium/chromium/src/+/6a2498f0800de3c17362c90abd5e4c19b21c2a6c

	Clean up Header/Footer creation for the app menu.

	The previous logic had multiple hops that can be consolidated
	into a single method per header / footer.

	Bug: None
	Change-Id: I3723bbe18eec2005b361717c50bedcc242c10b92
	Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6682481
2025-08-19 19:54:17 +01:00
AlexeyBarabash 7f97380dc9 [cr140][Android] Add RequestMetadata to the Android image fetcher
Chromium change:
https://source.chromium.org/chromium/chromium/src/+/87eb14f2cb45876f33ed554feb7b997224242d60

	Add RequestMetadata to the Android image fetcher

	Expose the request_metadata available in C++ image fetcher to Java. To
	do so, introduces two new structs ImageFetchResult and
	ImageDataFetchResult that contain the status quo Bitmap and byte[]
	objects, but also contain a RequestMetadata field.

	Keeps the previous fetchImage implementation to be a less invasive
	modification to the codebase. Only the AutofillImageFetcher has been
	updated to use the new `fetchImageWithRequestMetadata`.

	Bug: 412480717
	Change-Id: I89572718a44a24b9e820a5e0557bffa628b8dddb
	Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6653481
2025-08-19 19:54:17 +01:00
AlexeyBarabash aa86fdbafa [cr140][Android] TabGroupModelFilterImpl.shouldUseParentIds reorganized to shouldGroupWithParent
Chromium change:
https://source.chromium.org/chromium/chromium/src/+/6309d186fda734e8e92587f380bdef4e1b2bc5c0

	[Tabs] Implement DuplicateTab in TabModel

	Adds implementation to TabListInterface.

	Bug: 415351293
	Change-Id: Ic40a6760f42360ec50779cbbfb0aba6817d4c669
	Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6592371
2025-08-19 19:54:17 +01:00
Claudio DeSouza 7b9c82b533 [cr140] CreateOpaqueBrowserFrameView made linux-only
This function is being referenced for a sanity check, but it seems to be
a minor thing to have this sanity check constrained to Linux.

Chromium changes:
https://chromium.googlesource.com/chromium/src/+/050112bb38192715d9db3e683912d7b9ed2f78be

commit 050112bb38192715d9db3e683912d7b9ed2f78be
Author: dljames <dljames@chromium.org>
Date:   Fri Jun 27 10:11:48 2025 -0700

    [Frame] Separate windows and linux frame view creation

    Decouples the instantion of the different types of platform specific
    BrowserNonClientFrameViews into platform specific functions.

    The goal is that this CL makes it easier to understand which Windows or
    Linux frame view will be created.

    MacOs and ChromeOS are handled in separate files ensuring this one only
    deals with Windows and Linux.

    Change-Id: I36a2b56ac1a3b63a07b3ebf2b58da50bd721253e
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6680995
    Commit-Queue: Darryl James <dljames@chromium.org>
    Reviewed-by: Mickey Burks <mickeyburks@chromium.org>
    Cr-Commit-Position: refs/heads/main@{#1479920}
2025-08-19 19:54:17 +01:00
Claudio DeSouza a5f0b49a1f [cr140] StringUTF8Adaptor now under WTF
This is still undergoing migration, but for now this is okay to stay as
`WTF`.

Chromium changes:
https://chromium.googlesource.com/chromium/src/+/936810fb4d0e0b979b156d5325a52e5b6c40b088

commit 936810fb4d0e0b979b156d5325a52e5b6c40b088
Author: Kent Tamura <tkent@chromium.org>
Date:   Thu Jun 26 21:07:15 2025 -0700

    Switch wtf/text/string_utf8_adaptor.h to "blink" namespace

    * As these files are being modified, take the opportunity to rename
      StringUTF8Adaptor to StringUtf8Adaptor, aligning with the Google C++
      style guide.

    * Keep WTF::StringUTF8Adaptor as an alias.  It will be removed later.

    This CL has no behavior changes.

    Bug: 422768753
    Change-Id: I51cb38172140fa2ee1422403801fe0123bca6c9a
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6681370
    Reviewed-by: Koji Ishii <kojii@chromium.org>
    Commit-Queue: Koji Ishii <kojii@chromium.org>
    Auto-Submit: Kent Tamura <tkent@chromium.org>
    Cr-Commit-Position: refs/heads/main@{#1479620}
2025-08-19 19:54:17 +01:00
Claudio DeSouza 416c288f93 [cr140] operator+ removed from WTF::String
This operator has been removed, and `blink::StrCat` is now the
recommended way to do these string concats.

Chromium changes:
https://chromium.googlesource.com/chromium/src/+/53375b8ab66446520c7653e6fde7f8c218f3c705
https://chromium.googlesource.com/chromium/src/+/f60a32d7b73920a0cb7082910a7775cdf52614b9

commit 53375b8ab66446520c7653e6fde7f8c218f3c705
Author: Kent Tamura <tkent@chromium.org>
Date:   Wed May 28 01:16:08 2025 -0700

    Fix mutual #includes of atomic_string.h and wtf_string.h

    atomic_string.h and wtf_string.h include each other, probably because
    - we want to provide `operator+` by wtf_string.h, and
    - string_operators.h depends on AtomicString.

    To fix this issue, this CL separates out AtomicString-related part of
    string_operators.h to string_operators_atomic.h.

    * local_frame_ukm_aggregator.h, heap_test.cc, security_origin.h, and
      cross_thread_copier.cc:
      Add ref_counted.h, which was included via atomic_string.h.

    This CL has no behavior changes.

    Bug: 419595599
    Change-Id: I80a2e5ea9e83966aaacffb77bb346a6a5a6a26eb
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6595207
    Reviewed-by: Fredrik Söderquist <fs@opera.com>
    Commit-Queue: Fredrik Söderquist <fs@opera.com>
    Auto-Submit: Kent Tamura <tkent@chromium.org>
    Cr-Commit-Position: refs/heads/main@{#1466337}

commit f60a32d7b73920a0cb7082910a7775cdf52614b9
Author: Kent Tamura <tkent@chromium.org>
Date:   Thu Jun 12 01:50:37 2025 -0700

    Apply blink::StrCat() to core/css/

    This CL has no behavior changes.

    Bug: 419595599
    Change-Id: I2b64140e32ded8f52f9d159754280cd7c7f5cca0
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6636954
    Auto-Submit: Kent Tamura <tkent@chromium.org>
    Reviewed-by: Fredrik Söderquist <fs@opera.com>
    Commit-Queue: Fredrik Söderquist <fs@opera.com>
    Cr-Commit-Position: refs/heads/main@{#1472910}
2025-08-19 19:54:17 +01:00
Claudio DeSouza 6f0b4b515c [devtools-frontend][cr140] grd_files_debug_sources => grd_files_unbundled_sources
This is a simple renaming, and some of our own gn values is being
renamed as well to follow the same pattern.

Chromium change:
https://chromium.googlesource.com/devtools/devtools-frontend/+/5eca8573263b446a05d8ba32b55fdd5967de9119

commit 5eca8573263b446a05d8ba32b55fdd5967de9119
Author: Simon Zünd <szuend@chromium.org>
Date:   Fri Jun 27 07:19:05 2025 +0200

    [build] Rename grd_files_(release|debug)_sources and update docs

    R=alexrudenko@chromium.org

    Fixed: 427899682
    Change-Id: I32a5b83c0c2da96ff396ee237f9adaa0fdd18e85
    Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/6683178
    Reviewed-by: Alex Rudenko <alexrudenko@chromium.org>
    Auto-Submit: Simon Zünd <szuend@chromium.org>
    Commit-Queue: Alex Rudenko <alexrudenko@chromium.org
2025-08-19 19:54:17 +01:00
Claudio DeSouza 03011b90ea [cr140] Use blink::StringBuilder
This is part of large change to move all `WTF::` namespace to `blink::`.

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

commit d320ec72155ceb41513eaab8bde06d176d17a5db
Author: Kent Tamura <tkent@chromium.org>
Date:   Wed Jun 25 22:23:24 2025 -0700

    Switch wtf/text/string_builder*.* to "blink" namespace

    This CL has no behavior changes.

    Bug: 422768753
    Change-Id: I151097449b5e6bf04193c9dd473921241d9a3b5f
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6675115
    Reviewed-by: Koji Ishii <kojii@chromium.org>
    Commit-Queue: Koji Ishii <kojii@chromium.org>
    Auto-Submit: Kent Tamura <tkent@chromium.org>
    Cr-Commit-Position: refs/heads/main@{#1478927}
2025-08-19 19:54:16 +01:00
Claudio DeSouza 1916de0db4 [cr140] components/nacl/common/buildflags.h deleted
Chromium changes:
https://chromium.googlesource.com/chromium/src/+/17b6ff136ca5030f7df8123fde60ea5cd2346d93

commit 17b6ff136ca5030f7df8123fde60ea5cd2346d93
Author: Nico Weber <thakis@chromium.org>
Date:   Fri Jun 27 04:48:58 2025 -0700

    Remove components/nacl/common/buildflags.h

    Bug: 40511454
    Change-Id: I7ed78333b31fe1900e820989438489e607a037e8
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6680050
    Commit-Queue: Hans Wennborg <hans@chromium.org>
    Auto-Submit: Nico Weber <thakis@chromium.org>
    Owners-Override: Nico Weber <thakis@chromium.org>
    Reviewed-by: Hans Wennborg <hans@chromium.org>
    Cr-Commit-Position: refs/heads/main@{#1479738}
2025-08-19 19:54:16 +01:00
Claudio DeSouza 80cc5fafce [cr140] ViewObserver::OnViewVisibilityChanged added visible
This change corrects all overrides for `OnViewVisibilityChanged` to
include the new `visible` arg.

Chromium changes:
https://chromium.googlesource.com/chromium/src/+/36038e5d98b6590c591f94ba74110e8444daa729

commit 36038e5d98b6590c591f94ba74110e8444daa729
Author: Dana Fried <dfried@chromium.org>
Date:   Mon Jun 23 08:18:27 2025 -0700

    [Views] Fix ViewObserver::OnViewVisibilityChanged()

     - Now behaves as it is documented to (null source for widget visibility
       change)
     - Now includes a boolean saying whether the source became visible or
       not-visible

    See attached bug for motivation. No behavior should change as a
    result. Follow-up will simplify logic in ElementTrackerViews based on
    the changes.

    Bug: 426560497
    Change-Id: I1e0c103576c3ec649b3c325fad5b47fce8c7e483
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6653587
    Commit-Queue: Dana Fried <dfried@chromium.org>
    Reviewed-by: Keren Zhu <kerenzhu@chromium.org>
    Reviewed-by: Colin Blundell <blundell@chromium.org>
    Cr-Commit-Position: refs/heads/main@{#1477295}
2025-08-19 19:54:16 +01:00
Claudio DeSouza c975a9d5bd [cr140] kSyncedDefaultSearchProviderGUID deprecated
`kSyncedDefaultSearchProviderGUID` has been moved to the private UT
section. This change replaces its use with `kDefaultSearchProviderGUID`.

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

commit 3b60017cd9f5bd3cc0dff5dec76cffb625ac02b4
Author: James Lee <ljjlee@google.com>
Date:   Fri Jun 27 04:00:48 2025 -0700

    Delete kSyncedDefaultSearchProviderGUID pref

    This has been migrated to the kDefaultSearchProviderGUID local
    preference.

    Bug: 424428814
    Change-Id: Ic215a3fa42f8a730cf032b34ce1fcba657de592d
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6672709
    Reviewed-by: Nicolas Dossou-Gbété <dgn@chromium.org>
    Commit-Queue: James Lee <ljjlee@google.com>
    Reviewed-by: Maksim Moskvitin <mmoskvitin@google.com>
    Reviewed-by: David Roger <droger@chromium.org>
    Cr-Commit-Position: refs/heads/main@{#1479728}
2025-08-19 19:54:16 +01:00
Claudio DeSouza 1f300f5fbd [cr140] ComputeRedirectInfo taking a original_initiator arg
This information is available to the caller where we make use of it, and
is being added to the callsite.

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

commit badc704f1939da9933d904adb23bea44f93b6c5f
Author: Kelvin Jiang <kelvinjiang@chromium.org>
Date:   Thu Jun 26 18:34:27 2025 -0700

    [WAR, DNR] Fix unsafe redirect error to web accessible resource

    Error was observed on web pages that had a service worker for fetching
    subresources. This caused the page to use the SharedURLLoaderFactory
    which never bypasses renderer level redirect checks.

    Combine that with the fact that the request's initiator was not passed
    down into the renderer's redirect check + a redirect to an extension's
    Web Accessible Resource that required the initiator to check if it was
    a safe redirect, that led to the UNSAFE_REDIRECT error observed.

    Fix involved adding the request's initiator to RedirectInfo which can
    then be used in the renderer.

    Bug: 375395102
    Change-Id: I84a526c165847cfe390978d7133022aee25dd303
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6580522
    Reviewed-by: Kentaro Hara <haraken@chromium.org>
    Reviewed-by: Michael Thiessen <mthiesse@chromium.org>
    Reviewed-by: Kinuko Yasuda <kinuko@chromium.org>
    Commit-Queue: Kelvin Jiang <kelvinjiang@chromium.org>
    Reviewed-by: Solomon Kinard <solomonkinard@chromium.org>
    Reviewed-by: Kenichi Ishibashi <bashi@chromium.org>
    Reviewed-by: Mustafa Emre Acer <meacer@chromium.org>
    Reviewed-by: Devlin Cronin <rdevlin.cronin@chromium.org>
    Cr-Commit-Position: refs/heads/main@{#1479568}
2025-08-19 19:54:16 +01:00
Claudio DeSouza 8ad9ebf12f [cr140] Use //brave/browser/ui/browser_window/internal
This mirrors what has been done in upstream code.

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

commit e4de456da7569ac8b5a091bffd9b16ba3c7bdab5
Author: Linyu He <linyuh@google.com>
Date:   Thu Jun 26 13:10:15 2025 -0700

    Move .cc files in browser/ui/browser_window/ to ./internal/.

    Discussed with nyquist@chromium.org on code locations and this is what
    the team prefers:

    ```
    //chrome/browser/ui/browser_window
    +-- public/         (public cross-platform C++ headers)
    |   +-- android/    (public C++ headers for Android)
    |       + java/src/ (public Java interfaces/classes)
    |
    +-- internal/      (cross-platform C++ impl)
        +-- android/   (Android native impl)
            + java/src (Android Java impl)
    ```

    Bug: 427828841
    Change-Id: Ifa351705c5d57e7280515dd23f17356ca470379e
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6677231
    Reviewed-by: Tommy Nyquist <nyquist@chromium.org>
    Auto-Submit: Linyu He <linyuh@google.com>
    Commit-Queue: Linyu He <linyuh@google.com>
    Cr-Commit-Position: refs/heads/main@{#1479400}
2025-08-19 19:54:16 +01:00
Claudio DeSouza 5ac584fed6 [cr140][rust][WIP] gnrt aliasing patching made redundant
Chromium changes:
https://chromium.googlesource.com/chromium/src/+/3d3d75f8622c57a921e2c950a1a0242b2043fc2b

commit 3d3d75f8622c57a921e2c950a1a0242b2043fc2b
Author: Lukasz Anforowicz <lukasza@chromium.org>
Date:   Wed Jun 25 17:51:22 2025 -0700

    [gnrt] `aliased_deps`: Retain not only package `name`, but also `epoch`.

    Before this CL it was impossible to create a `BUILD.gn` with
    `aliased_deps` underneath `third_party/rust` (it only worked under
    `build/rust/std` where all targets are in a single `BUILD.gn` file).
    This is because `RuleDetail::aliased_deps` passed to `BUILD.gn.hbs`
    would only contain package names, which was insufficient to build target
    labels for crates underneath `//third_party/rust`.

    After this CL, `gnrt` propagates the full `PackageId` into
    `aliased_deps`.  `BUILD.gn.hbs` files have been adjusted to use the new
    information as needed.

    Tested manually by:

    * Running `tools/rust/gnrt_stdlib.py` and `tools/crates/run_gnrt.py gen`
      at ToT and verifying that it results in no `BUILD.gn` changes.
    * Running `tools/crates/run_gnrt.py gen` from this CL on top of
      https://chromium-review.googlesource.com/c/chromium/src/+/6673416/1/third_party/rust/libafl_bolts/v0_15/BUILD.gn
      and verifying that `"//third_party/rust/libafl_wide/v0_7:lib"` is
      correctly emitted into `third_party/rust/libafl_bolts/v0_15/BUILD.gn`.

    Fixed: 427774423
    Change-Id: I99d2602a0507c4cc751c28b776cc02b4eb5c3ec6
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6673272
    Auto-Submit: Łukasz Anforowicz <lukasza@chromium.org>
    Reviewed-by: Daniel Cheng <dcheng@chromium.org>
    Commit-Queue: Daniel Cheng <dcheng@chromium.org>
    Cr-Commit-Position: refs/heads/main@{#1478871}
2025-08-19 19:54:16 +01:00
AlexeyBarabash 1f194a3ca1 [cr140][Android] Fixed overlapped IDS_UPDATE string build error
Caused by IDS_UPDATE was defined both at
brave/components/components_strings.grd
and
brave/browser/ui/android/strings/android_brave_strings.grd

Error text
```
components_strings.xml:433: error: resource 'string/update' has a conflicting value
android_brave_strings.xml:796: note: originally defined here
```

I wasn't able to fined the Chromium commit for this
2025-08-19 19:54:16 +01:00
AlexeyBarabash e0f0b1e5d1 [cr140][Android] Clean up dependencies in AppMenu
AppMenu.ctor now has no itemRowHeight arg

Chromium change:
https://source.chromium.org/chromium/chromium/src/+/048735c9b293ef2dc0fbeeb2af4135028faaf32d

	Clean up dependencies in AppMenu.

	This removes the dependencies on ModelList and AppMenuHandlerImpl.

	View code should not depend on Model awareness and should interact
	with plain Android objects where possible.

	Bug: None
	Change-Id: I195fab604cea372e5e85702b3c0d1df9277c8120
	Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6653604
2025-08-19 19:54:16 +01:00
Emerick Rogul 5559af3154 [cr140][Settings] Update a11y_page overrides to incorporate html changes
Update our page override to accomodate changes that were made to the underlying
HTML to simplify how live captions are handled.

Chromium change:
https://source.chromium.org/chromium/chromium/src/+/7189c30e9a9d8af339ea3bb56436fa1336741f36

commit 7189c30e9a9d8af339ea3bb56436fa1336741f36
Author: dpapad <dpapad@chromium.org>
Date:   Mon Jun 16 15:26:48 2025 -0700

    Settings: Simplify platform-specific guards in a11y_page.{ts,html}

    Specifically remove `captionSettingsOpensExternally_` and
    `showOverscrollHistoryNavigationToggle_` runtime checks, since these
    were not tied to any feature flags and instead were determined based on
    the current OS. Use more accurate <if expr> as needed and remove
    unnecessary <template is="dom-if"> nodes.

    Bug: 424223101
    Change-Id: Ibb3a3eedf41ec9714e80152f6897ddea248a0bf8
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6648567
    Commit-Queue: Demetrios Papadopoulos <dpapad@chromium.org>
    Reviewed-by: John Lee <johntlee@chromium.org>
    Cr-Commit-Position: refs/heads/main@{#1474619}
2025-08-19 19:54:16 +01:00
Emerick Rogul 4830ba0702 [cr140] Filter upstream tests as needed 2025-08-19 19:54:16 +01:00
Claudio DeSouza 92bb0f991f [cr140] Overriding PermissionManager
The previous override for `ContentSettingPermissionContextBase` has been
changed into an override for `PermissionManager`, as this is the new
correct customisation point for what we were doing with the previous
class.

Chromium changes:
https://chromium.googlesource.com/chromium/src/+/171d2ac0366c1eaf877525ce85f678395cc9759e
https://chromium.googlesource.com/chromium/src/+/171d2ac0366c1eaf877525ce85f678395cc9759e

commit 171d2ac0366c1eaf877525ce85f678395cc9759e
Author: Florian Jacky <fjacky@google.com>
Date:   Wed Jun 25 04:51:48 2025 -0700

    [PermissionOptions] Fix PCB used in PermissionManager

    While currently all contexts are ContentSettingPermissionContextBase
    based contexts, this won't be the case anymore shortly. The permission manager should use PermissionContextBase.

    Bug: 411025625
    Change-Id: If479bdd650e0dfa3a2580f27c190c3d9be24f7aa
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6652828
    Commit-Queue: Andy Paicu <andypaicu@chromium.org>
    Auto-Submit: Florian Jacky <fjacky@chromium.org>
    Reviewed-by: Andy Paicu <andypaicu@chromium.org>
    Cr-Commit-Position: refs/heads/main@{#1478467}

commit 9f8c396a492dffad7b93c7d8adfe0fbdaee0dc45
Author: Florian Jacky <fjacky@google.com>
Date:   Tue Jun 10 02:50:36 2025 -0700

    [PermissionOptions] Rename PermissionContextBase to ContentSettingPermissionContextBase

    Bug: 411025625
    Change-Id: I45387e54e147dfe830330378fc5b978d2095ddab
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6618750
    Reviewed-by: Nico Weber <thakis@chromium.org>
    Reviewed-by: Andy Paicu <andypaicu@chromium.org>
    Commit-Queue: Florian Jacky <fjacky@chromium.org>
    Cr-Commit-Position: refs/heads/main@{#1471670}
2025-08-19 19:54:15 +01:00
Claudio DeSouza 8e6529c463 [cr140] MediaSessionImpl::pepper_players_ deleted
This field has been deleted as part of the breader pppapi content layer
remove. This change deletes the override that was using this field to
retrieve the position information for the players, and with that all the
handling for it.

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

commit dee7e88bd605ece07381b8aa975f1d6a3c7db1a2
Author: Dave Tapuska <dtapuska@chromium.org>
Date:   Tue Jun 24 19:51:14 2025 -0700

    [pepper] More removal of pppai from content layer

    - Remove more code

    Bug: 40511450
    Change-Id: Id3728a709afe92184b874690e71e31811017689f
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6667722
    Commit-Queue: Dave Tapuska <dtapuska@chromium.org>
    Owners-Override: Dave Tapuska <dtapuska@chromium.org>
    Reviewed-by: Eugene Zemtsov <eugene@chromium.org>
    Reviewed-by: Daniel Cheng <dcheng@chromium.org>
    Cr-Commit-Position: refs/heads/main@{#1478323}
2025-08-19 19:54:15 +01:00
Claudio DeSouza 53e9088f13 [cr140] Passing metric arg to chrome::NewSplitTab
This metric argument is being collected by chromium however it seems to
be irrelevant for brave.

Chromium changes:
https://chromium.googlesource.com/chromium/src/+/358549c15a65c5900132b4867897d1360cc5acac

commit 358549c15a65c5900132b4867897d1360cc5acac
Author: Alison Gale <agale@chromium.org>
Date:   Wed Jun 25 10:27:16 2025 -0700

    Reland "[SxS] Flush out metrics for split tab creation"

    This reverts commit 98904ac05447db9b5ab010454b20672de4bacb94.

    Correct rollback for the original breakage was:
    https://chromium-review.googlesource.com/c/chromium/src/+/6662662

    Reason for revert: Incorrect culprit was reverted
    Bug: 406792705

    Original change's description:
    > Revert "[SxS] Flush out metrics for split tab creation"
    >
    > This reverts commit e4eb581c5cd610ad820587942bc2563211e82874.
    >
    > Reason for revert: Step "browser_tests (retry shards) on Ubuntu-22.04" failing on builder "chromium/ci/Linux ChromiumOS MSan Tests"
    > https://ci.chromium.org/ui/p/chromium/builders/ci/Linux%20ChromiumOS%20MSan%20Tests/53079/test-results
    >
    > Bug: 406792705
    > Original change's description:
    > > [SxS] Flush out metrics for split tab creation
    > >
    > > With an exhaustive UMA located in the same spot of the TabStripModel,
    > > the previous user action is redundant.
    > >
    > > Bug: 406792705
    > > Change-Id: I148255d63f5f5c3739031a380519fc90fb87c896
    > > Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6651221
    > > Reviewed-by: Finnur Thorarinsson <finnur@chromium.org>
    > > Reviewed-by: David Roger <droger@chromium.org>
    > > Commit-Queue: Alison Gale <agale@chromium.org>
    > > Reviewed-by: Eshwar Stalin <estalin@chromium.org>
    > > Cr-Commit-Position: refs/heads/main@{#1477378}
    >
    > Bug: 406792705
    > No-Presubmit: true
    > No-Tree-Checks: true
    > No-Try: true
    > Change-Id: Idec6302c68cc9ec171e21ea1140e86b88a770d26
    > Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6665201
    > Commit-Queue: Rubber Stamper <rubber-stamper@appspot.gserviceaccount.com>
    > Owners-Override: S Ganesh <ganesh@chromium.org>
    > Bot-Commit: Rubber Stamper <rubber-stamper@appspot.gserviceaccount.com>
    > Auto-Submit: S Ganesh <ganesh@chromium.org>
    > Cr-Commit-Position: refs/heads/main@{#1477607}

    Bug: 406792705
    Change-Id: If68eed79f25cb80f14b8aa31c9cbbc3c1cb68a0d
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6667549
    Commit-Queue: Alison Gale <agale@chromium.org>
    Bot-Commit: Rubber Stamper <rubber-stamper@appspot.gserviceaccount.com>
    Reviewed-by: David Roger <droger@chromium.org>
    Reviewed-by: S Ganesh <ganesh@chromium.org>
    Cr-Commit-Position: refs/heads/main@{#1478639}
2025-08-19 19:54:15 +01:00
Claudio DeSouza e7c2f8ea7e [cr140] allow_non_empty_navigator_plugins removed
This option was already only relevant with NaCl, and therefore was
having no effect for our use.

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

commit 4e40275fab3c7583478ca999fdbe866d0603f246
Author: Mason Freed <masonf@chromium.org>
Date:   Wed Jun 25 09:37:36 2025 -0700

    Remove the option to show "real" navigator plugins

    This was retained for NaCL clients only, and NaCL has now been
    turned off.

    Fixed: 40166667
    Bug: 40783949
    Change-Id: I69418336016dbb66efc2ee17bb22f7f09374bc7c
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6655696
    Reviewed-by: Dominic Farolino <dom@chromium.org>
    Reviewed-by: Erik Chen <erikchen@chromium.org>
    Commit-Queue: Mason Freed <masonf@chromium.org>
    Reviewed-by: Dmitry Gozman <dgozman@chromium.org>
    Cr-Commit-Position: refs/heads/main@{#1478611}
2025-08-19 19:54:15 +01:00
Claudio DeSouza 1bc18b2da0 [cr140] kRemoteOptimizationGuideFetching deleted
This flag is gone, but we need to continue to disable remote fetching. In order
to do that, we stub out the two main touchpoints `IsModelDownloadingEnabled` and
`IsUserPermittedToFetchFromRemoteOptimizationGuide` and filter the associated
upstream tests.

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

commit 35f71af3c63a00ab829314c51508db5fe97b69f8
Author: Steven Holte <holte@google.com>
Date:   Wed Jun 25 16:03:35 2025 -0700

    Cleanup kRemoteOptimizationGuideFetching and params

    Bug: 421924837

    Change-Id: I4d473eac7dafc7b533a39ba78c66f57f8eb8b553
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6659220
    Reviewed-by: Matthew Jones <mdjones@chromium.org>
    Auto-Submit: Steven Holte <holte@chromium.org>
    Reviewed-by: Raj T <rajendrant@chromium.org>
    Reviewed-by: Ravjit Uppal <ravjit@chromium.org>
    Reviewed-by: Nathan Memmott <memmott@chromium.org>
    Reviewed-by: Brandon Wylie <wylieb@google.com>
    Commit-Queue: Steven Holte <holte@chromium.org>
    Cr-Commit-Position: refs/heads/main@{#1478836}
2025-08-19 19:54:15 +01:00
Claudio DeSouza 5eb03e9271 [cr140] DEBUG_ALIAS_FOR_GURL moved into its own header
This macro is now under `url/gurl_debug.h`.

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

commit b570a3f1f6bcfa2d958226d37856c2af50ffee1b
Author: Lei Zhang <thestig@chromium.org>
Date:   Tue Jun 17 13:19:22 2025 -0700

    Split debugging code out of url/gurl.h and url/origin.h

    In gurl.h and origin.h, there exists ScopedUrlCrashKey and
    ScopedOriginCrashKey, respectively. These debugging support classes are
    not commonly used, but they force the headers they live in to pull in a
    bunch of //base debugging headers, which then transitively get included
    all over the place.

    Split the debug code out into url/gurl_debug.h and url/origin_debug.h.
    For now, let gurl.h and origin.h include the new _debug headers, so this
    CL can land safely without having to deal with random missing IWYU
    issues.

    Change-Id: I760723ddb34729a4d4ef0a97a0ecaac97855b66c
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6653147
    Reviewed-by: Daniel Cheng <dcheng@chromium.org>
    Owners-Override: Daniel Cheng <dcheng@chromium.org>
    Commit-Queue: Lei Zhang <thestig@chromium.org>
    Cr-Commit-Position: refs/heads/main@{#1475181}
2025-08-19 19:54:15 +01:00
Claudio DeSouza 795be56ec1 [cr140] v8::Object::GetPrototype() deprecated
There is a V2 alternative.

Chromium change:
https://chromium.googlesource.com/v8/v8/+/7a67a31b64f231c4c779f5a7fce4440f4b90c95c

commit 7a67a31b64f231c4c779f5a7fce4440f4b90c95c
Author: Igor Sheludko <ishell@chromium.org>
Date:   Tue Jun 24 11:16:41 2025 +0200

    [api] Deprecate v8::Object::GetPrototype()

    Uses of this Api are already migrated to a new version GetPrototypeV2().

    Bug: 333672197
    Change-Id: I0082b5997c34249567e94174848060b5c518d4f5
    Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/6664463
    Reviewed-by: Michael Lippautz <mlippautz@chromium.org>
    Commit-Queue: Igor Sheludko <ishell@chromium.org>
    Cr-Commit-Position: refs/heads/main@{#101005}
2025-08-19 19:54:15 +01:00
Claudio DeSouza 67dfb92bb5 [cr140] IWYU fixes 2025-08-19 19:54:15 +01:00
Claudio DeSouza 9da0916e17 [cr140] TestingProfileManager::local_state() deleted
There is now a corresponding global object.

Chromium changes:
https://chromium.googlesource.com/chromium/src/+/11d35b4660eb968c366415aa118e5b7cb5c33b76

commit 11d35b4660eb968c366415aa118e5b7cb5c33b76
Author: Jun Ishiguro <junis@google.com>
Date:   Tue Jun 24 01:22:40 2025 -0700

    Clean up TestingProfileManager (part 2)

    This CL removes all usage of TestingProfileManager::local_state().

    Bug: 422039036
    Change-Id: I06ea0aa9c5640575a799a97f1806f372279f51f4
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6647387
    Commit-Queue: Jun Ishiguro <junis@google.com>
    Reviewed-by: Hidehiko Abe <hidehiko@chromium.org>
    Cr-Commit-Position: refs/heads/main@{#1477769}
2025-08-19 19:54:15 +01:00
Claudio DeSouza 3f1b9154af [cr140] Update GetCrxId to spanified definition
This only affects the arguments for this override.

Chromium changes:
https://chromium.googlesource.com/chromium/src/+/8ff5b0d783a0415593ecf400b2c829463289d25a

commit 8ff5b0d783a0415593ecf400b2c829463289d25a
Author: Elly <ellyjones@chromium.org>
Date:   Tue Jun 24 17:52:27 2025 -0700

    crx_file: migrate to crypto/keypair and crypto/sign

    The new APIs are a bit more ergonomic, have fewer failure cases, and are
    not deprecated.

    This change also fixes some unsafe buffer usage (of argv) in
    crx3_build_action.

    Bug: 372283556
    Change-Id: I8220ff7499385001f7ba83e8eb638ee7dd987541
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6663109
    Commit-Queue: Elly FJ <ellyjones@chromium.org>
    Auto-Submit: Elly FJ <ellyjones@chromium.org>
    Reviewed-by: Devlin Cronin <rdevlin.cronin@chromium.org>
    Cr-Commit-Position: refs/heads/main@{#1478295}
2025-08-19 19:54:15 +01:00
Claudio DeSouza 84e45ee016 [cr140] gnrt run for Chromium 140.0.7339.1. 2025-08-19 19:54:15 +01:00
Claudio DeSouza 2596e64fd7 Conflict-resolved patches from Chromium 139.0.7258.127 to Chromium 140.0.7339.16. 2025-08-19 19:54:15 +01:00
Claudio DeSouza 34a8934ea9 Update from Chromium 139.0.7258.127 to Chromium 140.0.7339.16. 2025-08-19 19:54:14 +01:00
Aleksei Khoroshilov 3e2c627303 Do not check junctions in checkout directory on Dev Drive on Windows. (#30712) 2025-08-19 19:53:08 +01:00
brave-builds 18a62515b9 1.83.60 2025-08-19 16:12:06 +00:00
Kevin Smith b4be83a070 [NTP Next] Add payout status messaging to Rewards card (#30683) 2025-08-19 11:04:06 -04:00
Douglas Daniel 6041b4e336 fix(wallet): Dont Hide Tokens While Balances Load (#30667) 2025-08-19 09:48:42 -05:00
Douglas Daniel abcec02274 feat(wallet): Edit Spend Limit Popup (#30690) 2025-08-19 09:48:21 -05:00
Douglas Daniel a81e9deace feat(wallet): Pending Transaction Details Popup (#30652) 2025-08-19 09:47:59 -05:00
StephenHeaps 64dcc49d3d feat(privacy): Use Content Settings for some Shields Settings on iOS (#30608)
* Add feature flag
- Add an iOS-only feature flag for using content settings for persisting Brave Shields settings.

* Update Shields default/global settings.
- Use content settings when the feature flag is enabled for default settings.

* Use content settings for shields when flag is enabled.
- Update BraveShieldsTabHelper to use content settings when the flag is enabled.

* Use core P3A when feature flag is enabled.
2025-08-19 09:27:45 -04:00
Kyle Hickinson 2e953008dd [iOS] Support Brave News admin policy on iOS (#30631) 2025-08-19 09:21:43 -04:00
brave-builds 2b6dab14c4 1.83.59 2025-08-19 12:15:05 +00:00