Commit Graph
4907 Commits
Author SHA1 Message Date
Terry Mancey 99ed05b5b8 [ads] Convert bool to enum and rename related variables (#31787)
Replace P3A boolean flag with an enum (Confirmation/P3A)
for clarity and rename related variables to match.
2025-10-14 11:41:06 -05:00
Simone Arpe c34a9106c9 (Wallet) Don't pre-select crypto accounts in Connect Wallet dialog (#31804)
Do not pre-select crypto accounts in Connect Wallet dialog
2025-10-14 17:38:14 +01:00
Simone Arpe 920c627b53 (Wallet) Serialize ActivityType enum (#31803)
Because `enum`s are a fixed set of constants (by 
Java design), we don't need to implement Parcel 
boilerplate. Serialization is the optimal solution.
2025-10-14 16:36:53 +01:00
samartnik 1e3813fbf8 [Android][Large Screen] Fix for crash on wallet onboading fragment re… (#31733)
[Android][Large Screen] Fix for crash on wallet onboading fragment recreation
2025-10-09 15:42:51 -04:00
AlexeyBarabash 9a0ce523c0 [Android][Codehealth] Backport PasswordSettingsSearchTest (#31634)
* [Android][Codehealth] Backport PasswordSettingsSearchTest
Resolves: https://github.com/brave/brave-browser/issues/49683

* [Android] Fixed password search
Resolves: https://github.com/brave/brave-browser/issues/49778
2025-10-07 23:38:35 +01:00
Serg 81afec5ffb [Android] Top sites text needs to have bottom padding (#31680)
Adds bottom padding for top sites text on NTP.
Resolves: https://github.com/brave/brave-browser/issues/49500
2025-10-07 23:09:49 +01:00
Serg 57fe679fe2 [Android] Move BookmarkWidgetService to base module (#31675)
Currently we have a failure on aab builds:
Service BookmarkWidgetService should be declared in the base manifest.
That commit moves it to base module and renames to
QuickActionSearchAndBookmarkWidgetService.
Resolves: https://github.com/brave/brave-browser/issues/49959
2025-10-07 17:54:57 +01:00
Terry Mancey ecb867fbf2 [ads] Remove kShouldSupportNewTabPageAdConfirmationsForNonRewards feature param (#31665)
We now fallback to confirmations by default in campaigns.json for all
campaigns. The kShouldSupportNewTabPageAdConfirmationsForNonRewards
feature param is no longer needed and should be removed.
2025-10-06 22:18:34 +01:00
Serg 7f640b4f67 Android widget scroll (#31635)
[Android] Makes a scroll in quick action search widget

There are still cases that row with tiles is cut or not displayed when
there is space for them. We better show all fav tiles when the widget
is not in a minimum height and use scroll there.
Resolves: https://github.com/brave/brave-browser/issues/49890
2025-10-06 18:37:21 +01:00
Simone Arpe d9f850a5cd Fix Pip icon disappearing on tablets when scrolling (#31588)
Fixes an issues where the picture-in-picture icon was disappearing on tablets (and tablets only) when scrolling the page content.
This PR introduces also a content description string that was missing.
2025-10-06 15:42:19 +02:00
samartnik 851cdf1f34 [CodeHealth] Separate Brave-specific resources from Chromium overrides (#31571)
[Android] Separate Brave-specific resources from Chromium overrides
2025-10-02 08:50:51 -04:00
samartnik 913ac8df16 [Android] Disable quick shortcut toggle by default (#31567)
* [Android] Disable quick shortcut toggle by default

* Fixes for JUnit tests
2025-10-02 06:39:03 -04:00
cdesouza-chromium daef249ec0 [CodeHealth] Replace ternary ops with logical expressions (#31558)
This PR is part of a couple of changes correcting these redundant
ternary operations:

```
x ? y : false -> x && y
x ? false : y -> !x && y
x ? y : true - > !x || y
x ? true : y -> x || y
```

This PR mirrors upstream work being done in the same direction:
https://issues.chromium.org/issues/416294715

Bug: https://github.com/brave/brave-browser/issues/49819
2025-10-01 21:17:34 +01:00
samartnik bd57c6c37b [Android] Update header image for quick shortcuts and optimization (#31528)
* [Android] Update header image for quick shortcuts and optimization

Optimizations done:
- Initialize leo and wallet controllers regardless if feature enabled or not. This is because at this point native is not guaranteed to be initialized to check the feature. Check for option visibility is done in `BraveRadioButtonGroupAdaptiveToolbarPreference` instead.
- Override `buildUiStateForStats` to avoid asserts on Brave specific options.

* Fix for tests

* Fix for JUnit tests
2025-10-01 09:35:18 -04:00
Oliver 0bf55f3da0 [Android] Update light/dark colours from Nala XML definitions (#31329)
This change has been produced using a Ruby script that implements the
following logic:

1. For each <color> tag in the destination, try to find one in the
   source with the same name
2. If found, update the destination tag with the colour from the source
   tag
3. If not found, do nothing and move onto the next tag.
4. Tags that exist in the source but not the destination are ignored.

Currently, some tags exist in the destination XML that are missing from
the source and also vice versa.

Once this has been resolved, we should be able to delete the files in
this diff and move to simply copying the generated XML files straight
out of brave/leo.

Additionally, a small change has been made to the Brave Sync "Add New
Device" button to use a Nala-defined colour rather than being hard-coded
to white.

Closes brave/brave-browser#49143
2025-09-30 23:34:24 +02:00
samartnik 1960ddea24 [Android] Fix for hairline height for scroll events (#31512) 2025-09-30 11:53:49 -04:00
samartnik ca0b76c2bc [Android] Remaining Brave options for quick shortcut settings (#31441)
* [Android] Remaining Brave options for quick shortcut settings

* Fox for component build

* Clean up unused profile references

* Remove Brave News option for now

* Fix for browser tests
2025-09-29 17:42:26 -04:00
Brian Johnson 1f27a328c6 [Speedreader] Remove speedreader on android (#31418)
Remove buggy speedreader implementation on android
2025-09-29 11:52:46 +09:00
Serg 89ce54707b Android origin skus (#31431)
* Connects GPS Brave Origin purchase with SKUs SDK

We need to pass order token to the SKUs SDK to be able to register
Brave Origin purchase from Google Play Store on Android. The commit
exposes Brave domains util functions and SkusService via mojom to
Java.
Resolves: https://github.com/brave/brave-browser/issues/49619
2025-09-27 09:06:27 +09:00
Serg c92203204a Fix NPE by adding null checks to BraveMediaSessionTabHelper (#31456)
The mTab must be getting destroyed before these methods are being run.
Resolves: https://github.com/brave/brave-browser/issues/49674
2025-09-26 15:43:38 -04:00
samartnik 9628962880 [Android] Fix for hairline height (#31434)
Chromium changes:
https://chromium.googlesource.com/chromium/src/+/e981dd46821f563acaa6a5a3d8fd51e046e311e2

commit e981dd46821f563acaa6a5a3d8fd51e046e311e2
Author: Patrick Noland <pnoland@google.com>
Date:   Wed Aug 13 13:37:18 2025 -0700

    [Toolbar] Rework hairline positioning

    Manually calculating the margin for the hairline is error-prone and
    tedious when multiple components can alter the height of the toolbar.
    Instead of manual manipulation, we can position it "for free" by using
    coordinator layout's anchor gravity concept.

    This does require switching the toolbar container to be a
    CoordinatorLayout. Mostly this is easy since CoordinatorLayout is a more
    powerful FrameLayout. There is one consideration: OptimizedFrameLayout,
    formerly in the inheritance chain for the toolbar container, reduced the
    number of measure calls on ToolbarLayout for performance reasons.

    This ends up not mattering because CoordinatorLayout performs the same
    number of measure calls.

    NO_IFTTT=Adding block for the first time

    Change-Id: Idfbb41afbbb1d361214cd0e8e585fefa545aee89
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6828889
    Reviewed-by: Xi Han <hanxi@chromium.org>
    Reviewed-by: Wenyu Fu <wenyufu@chromium.org>
    Commit-Queue: Patrick Noland <pnoland@chromium.org>
    Cr-Commit-Position: refs/heads/main@{#1501003}
2025-09-25 22:26:26 -04:00
Kevin Smith 7f6dbf689e [Rewards] Remove unused Rewards UI on Android (#30900) 2025-09-25 16:31:12 -04:00
samartnik e1cbf627e3 [Android] Fix for location bar alignments (#31397)
Chromium changes:
https://chromium.googlesource.com/chromium/src/+/db54bcdf61f807b0f4f9ea68854d646134c052b0

commit db54bcdf61f807b0f4f9ea68854d646134c052b0
Author: Tomasz Wiszkowski <ender@google.com>
Date:   Mon Aug 18 16:16:06 2025 -0700

    Make LocationBarLayout a ConstraintLayout

    This change allows us to embed more elements inside the
    LocationBarLayout without worrying too much about correct placement
    and sizing of the elements.

    The change applies *correct* height of the locationbar widgets (that
    presently bleed outside the FrameLayout bounds on Tablets/Desktop),
    and ensures accurate relative placement of all elements.

    Change-Id: Iebf14aae39e372275f8c58941a83d52cf9692034
    Bug: 436888404
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6852400
    Reviewed-by: Patrick Noland <pnoland@chromium.org>
    Commit-Queue: Tomasz Wiszkowski <ender@google.com>
    Cr-Commit-Position: refs/heads/main@{#1503027}
2025-09-25 10:31:44 -04:00
Anton Paymyshev 7d5829be02 Cardano signTx UI (#31296) 2025-09-25 12:01:03 +07:00
AlexeyBarabash 6b91d51e6d [cr141][Android] Changes at new_tab_page_layout.xml
Chromium change:
https://source.chromium.org/chromium/chromium/src/+/187fd6cd3fdf5d6125f78de37c7da5c9bc1bd59f

	[Composeplate] Implement V2 UX with 2 buttons.

	In this CL, we implement the V2 variations of composeplate view:
	- Increase Fake search box height to 72dp;
	- Add the composeplate view with 2 buttons and reduce visible background
	  height to 44dp;
	- The composeplate button in url_bar is no longer visible when
	  scrolling NTP;
	- Add a new feature parameter "v2_enabled" for this new UI variation.
	Screenshots: http://shortn/_tC3hspQIv9.

	Bug: 421944848
	Change-Id: I25d152370dce3497fb347c392665e82c6566d991
	Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6953030
2025-09-24 17:56:46 -04:00
Oliver 5addb66841 [Android] Support import of passwords from CSV (#31056)
* [Android] Refactor PasswordSettings.java to use an XML layout file.

The PasswordSettings.java file now integrates with a new XML file that
contains the layout for the page. This modification was completed using
Cursor but does not appear to have introduced any breaks.

There should be no semantic changes caused by this commit and the Brave
Password settings screen should continue to function exactly as it did
prior to this commit.

* [Android] Introduce new Import/Export items to password manager menu.

The password manager dialog now features two items for export and
import. Prior to this commit, Export was hidden away in a small
drop-down menu accessible from the top-right of the screen.

The import item is also present, but non-functional in this commit.

* [Android] Implement importing passwords from CSV.

We now support importing a CSV file containing the user's passwords.
This commit builds upon its parent by implementing the necessary code to
call Chromium's password manager which is responsible for executing the
import.

Additionally, the icons in the password manager screen have been changed
to new ones taken from Google's Material UI icon set.

Localisation strings have been introduced - some of which are copied
from Google's base since, after discussion, this is the way we currently
make strings usable for Android. If this changes in future, these could
be de-duplicated. Translations into other languages are still necessary
since only English is implemented.

Closes brave/brave-browser#35729
2025-09-24 16:07:14 +02:00
samartnik fd56b1c370 [Android] Remove cutomize NTP menu item (#31370)
This is upstream item that we do not use.
2025-09-24 04:55:57 +09:00
Artem Samoilenko eb1ef64aff [cr141][Android] Update Snackbar default line limit and max width
Chromium changes:
https://chromium.googlesource.com/chromium/src/+/2f30c2d3a5780c9887f6c7b5f7dd859a74e02e4d

commit 2f30c2d3a5780c9887f6c7b5f7dd859a74e02e4d
Author: Nick Mondello <mondello@google.com>
Date:   Fri Sep 12 13:04:53 2025 -0700

    [M141]Update Snackbar default line limit and max width.

    Renamed `setSingleLine` to `setDefaultLines`. The default number of lines for snackbar messages is now 2 instead of 1. Reduced the maximum width of floating snackbars from 600dp to 480dp.

    Moohan: http://screencast/cast/NTY2NTQ0MTY3MzM3OTg0MHw1MjI0NjZhNy01ZA
    Tangor: http://screencast/cast/NTM4ODc5NjQ1NDUwMjQwMHwzNjNmMjBmYS04Yg

    Clank UX approval: https://b.corp.google.com/issues/381896184#comment42
    Fixed: 444464576

    (cherry picked from commit 665c6a22cbe464a053430e41869d746ca506f58f)

    Change-Id: I06582b53b9945593a18112781330f658836f8e9e
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6931733
    Reviewed-by: Wenyu Fu <wenyufu@chromium.org>
    Reviewed-by: Gurmeet Kalra <gurmeetk@google.com>
    Commit-Queue: Nick Mondello <mondello@google.com>
    Reviewed-by: Theresa Sullivan <twellington@chromium.org>
    Cr-Original-Commit-Position: refs/heads/main@{#1513900}
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6944098
    Cr-Commit-Position: refs/branch-heads/7390@{#788}
    Cr-Branched-From: d481efce5eb300acbb896686676ebd0352a6f1db-refs/heads/main@{#1509326}
2025-09-22 15:02:24 -04:00
Artem Samoilenko 8367b83446 [cr141][Android] Rename ContentSettingValues enum to ContentSetting
Chromium changes:
https://chromium.googlesource.com/chromium/src/+/2b996c2e250b6cf4df29e060dbf29d46404ddca6

commit 2b996c2e250b6cf4df29e060dbf29d46404ddca6
Author: Christian Dullweber <dullweber@chromium.org>
Date:   Mon Sep 1 10:47:02 2025 -0700

    Rename ContentSettingValues enum to ContentSetting

    Match C++ and Java enum name to avoid confusion.

    Change-Id: Ia535b4afc44061b5a1d206bc18720a2c9a0f5427
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6897732
    Commit-Queue: Christian Dullweber <dullweber@chromium.org>
    Reviewed-by: Boris Sazonov <bsazonov@chromium.org>
    Auto-Submit: Christian Dullweber <dullweber@chromium.org>
    Reviewed-by: Victor Vianna <victorvianna@google.com>
    Reviewed-by: Fiona Macintosh <fmacintosh@google.com>
    Reviewed-by: Florian Jacky <fjacky@chromium.org>
    Cr-Commit-Position: refs/heads/main@{#1509256}
2025-09-22 15:02:17 -04:00
Artem Samoilenko 02d0c29c50 [cr141][Android] Fix for NullAway warning in FragmentDependencyProvider
Chromium changes:
https://chromium.googlesource.com/chromium/src/+/37016006135c0ddf03438619774e5800958a09e9

commit 37016006135c0ddf03438619774e5800958a09e9
Author: Calder Kitagawa <ckitagawa@chromium.org>
Date:   Fri Aug 29 14:07:23 2025 -0700

    [NullAway] Finish null marking settings

    Bug: 389129271

    Change-Id: I951598b69fa4b7853c2101e0b958fd217e30d9fa
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6896601
    Reviewed-by: Henrique Nakashima <hnakashima@chromium.org>
    Owners-Override: Henrique Nakashima <hnakashima@chromium.org>
    Commit-Queue: Calder Kitagawa <ckitagawa@chromium.org>
    Cr-Commit-Position: refs/heads/main@{#1508614}
2025-09-22 15:02:16 -04:00
Artem Samoilenko a5562072d1 [cr141][Android] Use java.util.function.Supplier rather than Chrome's copy of it
Chromium changes:
https://chromium.googlesource.com/chromium/src/+/94e940f0ad7bd5d37452ee71ab06fe87d675afb2

Use java.util.function.Supplier rather than Chrome's copy of it.
This is 99% sed + git cl format.

The 1% was a couple shims to not break internal builds.
See PS1->PS5 for them.

Bug: 440309602
Change-Id: I9ff8438583286b238505c4f63062279c7b24b254
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6897327
Reviewed-by: Henrique Nakashima <hnakashima@chromium.org>
Commit-Queue: Andrew Grieve <agrieve@chromium.org>
Owners-Override: Andrew Grieve <agrieve@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1507988}
2025-09-22 15:02:14 -04:00
Artem Samoilenko 83b4a8670f [cr141][Android] Apply Error Prone fixes for NonCanonicalType
Chromium changes:
https://chromium.googlesource.com/chromium/src/+/8832afce78a8c5f089f74d8ef8bc2de9ec3ecf0b

commit 8832afce78a8c5f089f74d8ef8bc2de9ec3ecf0b
Author: Andrew Grieve <agrieve@chromium.org>
Date:   Tue Aug 26 10:30:05 2025 -0700

    Apply Error Prone auto-fixes for NonCanonicalType

    Bug: 40661145
    Change-Id: I2ff0d9005ed8e26cfbde75be6fa1d8dc326dfc51
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6883121
    Auto-Submit: Andrew Grieve <agrieve@chromium.org>
    Owners-Override: Andrew Grieve <agrieve@chromium.org>
    Commit-Queue: Henrique Nakashima <hnakashima@chromium.org>
    Reviewed-by: Henrique Nakashima <hnakashima@chromium.org>
    Cr-Commit-Position: refs/heads/main@{#1506620}
2025-09-22 15:00:01 -04:00
Artem Samoilenko ac454132ef [cr141][Android] New params for MenuButtonCoordinator c-tor
Chromium changes:
https://chromium.googlesource.com/chromium/src/+/a897a4e519ebb2a6480cda54f2e42f70dd837ede

commit a897a4e519ebb2a6480cda54f2e42f70dd837ede
Author: Charles Hager <clhager@google.com>
Date:   Wed Aug 27 10:31:50 2025 -0700

    Have MenuButtonCoordinator extend ToolbarChildButton

    Bug: 427260734
    Change-Id: I27c0e074fa78f4f0e91a7300700c3ec3c0ca2282
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6886473
    Reviewed-by: Sirisha Kavuluru <skavuluru@google.com>
    Commit-Queue: Charles Hager <clhager@google.com>
    Cr-Commit-Position: refs/heads/main@{#1507190}
2025-09-22 15:00:01 -04:00
Artem Samoilenko 1af745f44b [cr141][Android] Adjustments for private page changes
Chromium changes:
https://chromium.googlesource.com/chromium/src/+/f25185ae594943aa879b703a3c4a2d6244c943b5

commit f25185ae594943aa879b703a3c4a2d6244c943b5
Author: Fiona Macintosh <fmacintosh@google.com>
Date:   Wed Aug 27 11:13:30 2025 -0700

    [3PC] Clean up AlwaysBlock3pcsIncognito in Clank NTP

    Bug: b:424271289
    Change-Id: I78c9e7f7f3eb7d27f21989c98cf23e823ce7ace6
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6883800
    Reviewed-by: Theresa Sullivan <twellington@chromium.org>
    Reviewed-by: Paul Adedeji <pauladedeji@google.com>
    Reviewed-by: Christian Dullweber <dullweber@chromium.org>
    Commit-Queue: Fiona Macintosh <fmacintosh@google.com>
    Auto-Submit: Fiona Macintosh <fmacintosh@google.com>
    Cr-Commit-Position: refs/heads/main@{#1507230}
2025-09-22 15:00:00 -04:00
Artem Samoilenko 55e9c08085 [cr141][Android] Updates for OmniboxMobileParityUpdate feature
Now search engine icons are shown in the url bar on NTP as a status icon just like on desktop.

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

commit 0fd2771ccfaf4bf698471dd69661239eaa7730e4
Author: Tomasz Wiszkowski <ender@google.com>
Date:   Wed Aug 6 09:49:59 2025 -0700

    Clean up OmniboxMobileParityUpdate experiment

    The change is not thorough to reduce review strain (it's large as it
    is).

    Change-Id: I118b31a8e1c37bc1fb6badf3a270fadc225e62a7
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6821564
    Reviewed-by: Patrick Noland <pnoland@chromium.org>
    Commit-Queue: Tomasz Wiszkowski <ender@google.com>
    Cr-Commit-Position: refs/heads/main@{#1497666}
2025-09-22 14:59:51 -04:00
Artem Samoilenko 39c30d2d47 [cr141][Android] Moves PasswordManagerHelper code to BravePasswordManagerHelper
Chromium changes:
https://chromium.googlesource.com/chromium/src/+/d0940950fdb4359249fe5ee6018a76668e9c2b9e

commit d0940950fdb4359249fe5ee6018a76668e9c2b9e
Author: Victor Hugo Vianna Silva <victorvianna@google.com>
Date:   Thu Aug 21 12:19:31 2025 -0700

    Remove unused code in PasswordManagerHelper

    Bug: None
    Change-Id: I8249cb0a4e8273a819307dbfd5bbddc3d2b0b6ce
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6870717
    Commit-Queue: Victor Vianna <victorvianna@google.com>
    Auto-Submit: Victor Vianna <victorvianna@google.com>
    Reviewed-by: Ivana Žužić <izuzic@google.com>
    Cr-Commit-Position: refs/heads/main@{#1504668}
2025-09-22 14:59:49 -04:00
Artem Samoilenko 34f1d61e39 [cr141][Android] Fixes for AlreadyChecked warnings 2025-09-22 14:59:49 -04:00
Artem Samoilenko 6ae558a856 [cr141][Android] Add @NullMarked to BraveShareDelegateImpl
Chromium changes:
https://chromium.googlesource.com/chromium/src/+/d6eb201ceecff3d4a08d84c45be8dd882234fa05

commit d6eb201ceecff3d4a08d84c45be8dd882234fa05
Author: Aishwarya Rajesh <aishwaryarj@google.com>
Date:   Wed Aug 20 11:21:15 2025 -0700

    [NullAway] Add @NullMarked to some chrome/browser files

    Bug: 389129271
    Change-Id: I1273fa3d23b309a3768ee4bbb50bb56f3134dc0f
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6860424
    Commit-Queue: Aishwarya Rajesh <aishwaryarj@google.com>
    Reviewed-by: Henrique Nakashima <hnakashima@chromium.org>
    Owners-Override: Henrique Nakashima <hnakashima@chromium.org>
    Cr-Commit-Position: refs/heads/main@{#1504099}
2025-09-22 14:59:48 -04:00
Artem Samoilenko bc4a6ed8c5 [cr141][Android] Remove references to deprecated BuildInfo.java
Chromium changes:
https://chromium.googlesource.com/chromium/src/+/a3f43d273827d82ead6e8cf5a19b6c7bdf6db74b

commit a3f43d273827d82ead6e8cf5a19b6c7bdf6db74b
Author: Andrew Grieve <agrieve@chromium.org>
Date:   Wed Aug 20 11:22:01 2025 -0700

    Android: Remove references to deprecated BuildInfo.java

    It was split into ApkInfo.java, AndroidInfo.java, DeviceInfo.java.

    Used Android Studio refactorings to update all references.

    Bug: 437095883
    Change-Id: I6b88a3ff43cc8c96ae1e1c9a8240c7ae69b717cf
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6865032
    Owners-Override: Andrew Grieve <agrieve@chromium.org>
    Auto-Submit: Andrew Grieve <agrieve@chromium.org>
    Reviewed-by: Peter Wen <wnwen@chromium.org>
    Commit-Queue: Peter Wen <wnwen@chromium.org>
    Cr-Commit-Position: refs/heads/main@{#1504100}
2025-09-22 14:59:48 -04:00
Artem Samoilenko 8b16dd9f1b [cr141][Android] Changes for NewTabPage.updateSearchProvider signature
Chromium changes:
https://chromium.googlesource.com/chromium/src/+/f9b2ec34e51605ef8b3b12f8685efa28f5ca7469

commit f9b2ec34e51605ef8b3b12f8685efa28f5ca7469
Author: Xi Han <hanxi@google.com>
Date:   Thu Aug 14 10:36:54 2025 -0700

    [Theme] Allow NTPs to notify TopInsetCoordinator for DSE changes.

    NTP has observed any DSE changes. In this CL, when DSE is changed, we
    allow the current NTP to notify NtpCustomizationConfigManager, and it
    will notify TopInsetCoordinator to call
    InsetObserver#retriggerOnApplyWindowInsets() to get updated window
    insets.
    Video: http://shortn/_o8q1oovbWo

    Bug: 432527690
    Change-Id: I6176e47c8ff31c6eebbb5bb7df3a3a2b30131617
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6846500
    Commit-Queue: Xi Han <hanxi@chromium.org>
    Reviewed-by: Wenyu Fu <wenyufu@chromium.org>
    Cr-Commit-Position: refs/heads/main@{#1501471}
2025-09-22 14:59:46 -04:00
Artem Samoilenko 87e9d1f81e [cr141][Android] Modularize ToolbarTablet forward button
Chromium changes:
https://chromium.googlesource.com/chromium/src/+/f34024558050bdb3ca902954efd0cbd5b5168f68

commit f34024558050bdb3ca902954efd0cbd5b5168f68
Author: Charles Hager <clhager@google.com>
Date:   Tue Aug 19 11:26:10 2025 -0700

    Modularize ToolbarTablet forward button

    Bug: 427258660
    Change-Id: I31e73d43ac61c142c97598590867829881171ca7
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6837416
    Reviewed-by: Sirisha Kavuluru <skavuluru@google.com>
    Commit-Queue: Charles Hager <clhager@google.com>
    Cr-Commit-Position: refs/heads/main@{#1503487}
2025-09-22 14:59:46 -04:00
Artem Samoilenko abe130a03f [cr141][Android] Add install button to omnibox
Chromium changes:
https://chromium.googlesource.com/chromium/src/+/55e44d63ae9fcb516aa390039db404871e3f310f

commit 55e44d63ae9fcb516aa390039db404871e3f310f
Author: Adam Raine <asraine@chromium.org>
Date:   Tue Aug 19 09:27:43 2025 -0700

    [Clank Desktop] Add install button to omnibox

    This CL reuses the installability checks from `AppBannerManager` instead
    of `AddToHomescreenDataFetcher`. The insatiability criteria should be
    the same for each:
    - `WebappsUtils::AreWebManifestUrlsWebApkCompatible` is true
    - `data.installable_check_passed` is true
    - `data.errors` is empty

    Future refactors in this area should consider:
    - Using the delegate pattern instead of inheritance
      crbug.com/322342499
    - Replacing `AddToHomscreenDataFetcher` with a connection to
      `AppBannerManager`, reducing the amount of duplicate logic.

    Bug: 430109659
    Change-Id: Ia4237505fb45aefa1ab8e3789eb8af22289c3700
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6735615
    Commit-Queue: Adam Raine <asraine@chromium.org>
    Reviewed-by: Glenn Hartmann <hartmanng@chromium.org>
    Reviewed-by: Dibyajyoti Pal <dibyapal@chromium.org>
    Reviewed-by: Patrick Noland <pnoland@chromium.org>
    Cr-Commit-Position: refs/heads/main@{#1503393}
2025-09-22 14:59:45 -04:00
Artem Samoilenko faad40c505 [cr141][Android] Move E2ELayout related code to //ui/edge_to_edge
Chromium changes:
https://chromium.googlesource.com/chromium/src/+/f2e21c980c2bf08ed6a578ea408a5d9db04cfb27

commit f2e21c980c2bf08ed6a578ea408a5d9db04cfb27
Author: Joel Tan-Aristy <jtanaristy@google.com>
Date:   Tue Aug 19 11:27:32 2025 -0700

    [E2E] Move E2ELayout related code to //ui/edge_to_edge

    Moved Edge to Edge layout classes to a new //ui/edge_to_edge
    directory.

    Bug: 428281174
    Bypass-Check-License: Refactoring directory
    Change-Id: I91fa6da9535d8f5f1956b135040a578466952900
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6804203
    Reviewed-by: Jesse McKenna <jessemckenna@google.com>
    Reviewed-by: Tomasz Wiszkowski <ender@google.com>
    Reviewed-by: Theresa Sullivan <twellington@chromium.org>
    Reviewed-by: Xiyuan Xia <xiyuan@chromium.org>
    Reviewed-by: Charles Hager <clhager@google.com>
    Commit-Queue: Joel Tan-Aristy <jtanaristy@google.com>
    Reviewed-by: Wenyu Fu <wenyufu@chromium.org>
    Reviewed-by: Glenn Hartmann <hartmanng@chromium.org>
    Cr-Commit-Position: refs/heads/main@{#1503489}
2025-09-22 14:59:45 -04:00
Artem Samoilenko 8cc588aff4 [cr141][Android] New param for StatusBarColorController c-tor
Chromium changes:
https://chromium.googlesource.com/chromium/src/+/12719a7f7cc937c06c038d49d9a1b53fd9cd1353

commit 12719a7f7cc937c06c038d49d9a1b53fd9cd1353
Author: Xi Han <hanxi@google.com>
Date:   Mon Aug 18 15:18:15 2025 -0700

    [Theme] Update status bar and toolbar color with NTP's background color.

    In this CL, Status bar will get NTP's background color via function
    NtpCustomizationConfigManager#getBackgroundColor(). Status bar will
    listen to the background change, and update itself when the color
    changes.

    Demo: http://shortn/_LdsF9GhqbP.

    Bug: 432527690
    Change-Id: Ia470fcef8c4a771f08cc35bc6921c80c9ae45889
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6858391
    Reviewed-by: Calder Kitagawa <ckitagawa@chromium.org>
    Commit-Queue: Xi Han <hanxi@chromium.org>
    Cr-Commit-Position: refs/heads/main@{#1502992}
2025-09-22 14:59:44 -04:00
Artem Samoilenko cb21669d9e [cr141][Android] Adjust icon for the new main menu item
Chromium changes:
https://chromium.googlesource.com/chromium/src/+/8c20f1c394693bcb5f98982e3d188319c9568107

commit 8c20f1c394693bcb5f98982e3d188319c9568107
Author: Fiaz Muhammad <mfiaz@google.com>
Date:   Tue Aug 12 07:40:28 2025 -0700

    [TabGroupParity] Enable feature by default

    - Switch TabGroupParity and EntryPoints flags to enabled by default.
    - Fix broken tests.

    Bug: 391387522
    Change-Id: I78e7ed6a3e88598657fd314e270a590c17897258
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6832532
    Commit-Queue: Fiaz Muhammad <mfiaz@google.com>
    Reviewed-by: Calder Kitagawa <ckitagawa@chromium.org>
    Commit-Queue: Calder Kitagawa <ckitagawa@chromium.org>
    Auto-Submit: Fiaz Muhammad <mfiaz@google.com>
    Cr-Commit-Position: refs/heads/main@{#1500131}
2025-09-22 14:59:42 -04:00
Artem Samoilenko 2e5e5fc665 [cr141][Android] Remove references to the SafetyHub flag
Chromium changes:
https://chromium.googlesource.com/chromium/src/+/65622c009574f5e76554db7bf48763b7657863ca

commit 65622c009574f5e76554db7bf48763b7657863ca
Author: Filipa Senra <fsenra@google.com>
Date:   Wed Aug 13 10:39:13 2025 -0700

    [SH] Remove references to the SafetyHub flag

    This is done in preparation of moving the flag to components. We need to
    move the flag to components because Bling frequency between password
    checks needs to be finch configurable.

    Bug: 383479015
    Change-Id: I8f2e3abe4fc6a7f69ee8645a89bf0db0da486890
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6700791
    Reviewed-by: Zaina Al-Mashni <zalmashni@google.com>
    Commit-Queue: Filipa Senra <fsenra@google.com>
    Reviewed-by: Christian Dullweber <dullweber@chromium.org>
    Reviewed-by: David Pennington <dpenning@chromium.org>
    Reviewed-by: Boris Sazonov <bsazonov@chromium.org>
    Cr-Commit-Position: refs/heads/main@{#1500890}
2025-09-22 14:59:38 -04:00
Artem Samoilenko 6c7565ced6 [cr141][Android] Changes for AutocompleteMediator c-tor
Chromium changes:
https://chromium.googlesource.com/chromium/src/+/86f5cec0117fbbf339bec2e377847444c6cb256f

commit 86f5cec0117fbbf339bec2e377847444c6cb256f
Author: Tomasz Wiszkowski <ender@google.com>
Date:   Tue Aug 12 13:39:41 2025 -0700

    [Omnibox] Refactor large screen logic to the mediator

    This change moves the logic for determining the screen size from
    independent View implementations to AutocompleteMediator.

    This improves separation of concerns and makes the view layer simpler.

    Bug: N/A
    Change-Id: Ic387e6f2c881da8a3d125d86564650c375d11bcf
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6843320
    Commit-Queue: Tomasz Wiszkowski <ender@google.com>
    Auto-Submit: Tomasz Wiszkowski <ender@google.com>
    Reviewed-by: Jian Li <jianli@chromium.org>
    Cr-Commit-Position: refs/heads/main@{#1500392}
2025-09-22 14:59:36 -04:00
Artem Samoilenko 022a13c022 [cr141][Android] Consolidate single-tab reparenting into multi-tab methods
Chromium changes:
https://chromium.googlesource.com/chromium/src/+/09316976243447de4c0b3979b3c00c747792fa98

commit 09316976243447de4c0b3979b3c00c747792fa98
Author: Hitarth Kothari <hitarthkothari@google.com>
Date:   Tue Aug 12 13:48:48 2025 -0700

    Consolidate single-tab reparenting into multi-tab methods.

    This change renames `ReparentingMultiTabTask` to `ReparentingTabsTask`
    and updates its `begin` method to accept additional parameters. All
    instances of moving a single tab are now handled by the
    `moveTabsToWindow` and `moveTabsToNewWindow` methods by passing a
    `Collections.singletonList` containing the single tab. This removes
    redundant single-tab reparenting methods from `MultiInstanceManager` and
    its implementations.

    Bug: 432819744
    Change-Id: I03394cbd3ae0f9afb49065d40a4271c2adcbc78e
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6841517
    Auto-Submit: Hitarth Kothari <hitarthkothari@google.com>
    Commit-Queue: Calder Kitagawa <ckitagawa@chromium.org>
    Reviewed-by: Calder Kitagawa <ckitagawa@chromium.org>
    Cr-Commit-Position: refs/heads/main@{#1500399}
2025-09-22 14:59:36 -04:00
Artem Samoilenko ae146154ab [cr141][Android] Changes for TOOLBAR_TOP_ANCHORED option type
Chromium changes:
https://chromium.googlesource.com/chromium/src/+/80937223ea10c49f6c9359d5174a0c9c7283e03c

commit 80937223ea10c49f6c9359d5174a0c9c7283e03c
Author: Peilin Wang <peilinwang@google.com>
Date:   Tue Aug 5 09:08:14 2025 -0700

    [Bottom toolbar] Don't animate position changes if changed in settings

    When the bottom toolbar's position change is animated, the renderer is
    driving the animation by sending the new offsets to the browser on every
    animation tick.

    However, if the position change was done in chrome's settings, the
    browser won't get these updates (I'm guessing because the settings UI is
    covering up the toolbar?) which is why BrowserControlsManager explicitly
    updates the browser's offset when the position changes. However, this
    doesn't work with BCIV, because it causes the browser to submit a frame
    with the new height before viz receives the animation offset from the
    renderer, so the controls could appear to be in the wrong position for a
    frame or two.

    The position of the toolbar was controlled by a boolean
    SharedPreference. This CL adds more state to this SharedPreference, to
    include where the update came from. With this CL, if the update came
    from the settings page, the position change will not be animated.

    Bug: 433524798
    Change-Id: Ic47106b1caec3d99752550edb54476f773553b2e
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6811960
    Reviewed-by: Patrick Noland <pnoland@chromium.org>
    Commit-Queue: Peilin Wang <peilinwang@google.com>
    Cr-Commit-Position: refs/heads/main@{#1496957}
2025-09-22 14:59:34 -04:00
Artem Samoilenko 8d9f00ca61 [cr141][Android] Fixes for HidingField warning
warning: [HidingField] Hiding fields of superclasses may cause confusion and errors
2025-09-22 14:59:32 -04:00