Commit Graph
5169 Commits
Author SHA1 Message Date
Serg 079729bb4f [Android] Fix crash in BraveRewardsNativeWorker when profile is not ready (#34907)
BraveRewardsNativeWorker crashes when constructed before the browser is
fully initialized. This happens when an AlarmManager retention
notification (DAY_10/DAY_30/DAY_35) fires and the app process is started
by Android just to handle the broadcast — ProfileManager::
GetActiveUserProfile() dereferences a null g_browser_process in this
case.

The fix:
- Checks that GetActiveUserProfile() returns a valid profile before
  creating the native worker in JNI_BraveRewardsNativeWorker_Init. If it
  doesn't, the native object is not created.
- Resets the Java singleton when native init is skipped, so subsequent
  calls can retry once the browser is fully initialized.
- Adds null-profile guards to IsSupported, IsSupportedSkipRegionCheck,
  and IsRewardsEnabled which also call GetActiveUserProfile()
  independently.
- Adds null checks for getInstance() at all call sites since it can now
  return null.

Resolves: https://github.com/brave/brave-browser/issues/53877
2026-03-24 00:19:52 +01:00
samartnik afb83224c9 [Android] UI preparation for custom search engines (#34890)
This PR is only prepares UI and strings, the main implementation will be done separately in the context of brave/brave-browser#21837
2026-03-23 15:33:09 -04:00
Simone Arpe 8b52bd7400 (Wallet) Improve account name generation (#34831) 2026-03-20 12:59:26 +01:00
Simone Arpe 464eac5bd7 (Wallet) Fix Zcash networks visibility and position during onboarding (#34829) 2026-03-20 11:18:21 +01:00
Brian Johnson b9811f29a7 Only use brave:// scheme for display (#34610)
brave:// should be converted to chrome:// as early as possible so all internal checks for chrome:// are valid. You can still open brave:// urls and they should display as brave:// urls, but internally both the actual url and virtual url should be chrome://
2026-03-20 00:49:16 +01:00
AlexeyBarabash 11dd709902 [Android] Convert BraveAndroidDynamicColors to CachedFlag (#34810)
* [Android] Convert BraveAndroidDynamicColors to CachedFlag

This allows to respect the flag at BraveDynamicColors
on app early start

Resolves: https://github.com/brave/brave-browser/issues/53754
2026-03-19 20:08:56 +02:00
Simone Arpe dbb3f73525 Add YouTube filter options under Settings → Media (#34779)
Adds four filter options, already present in Shields & privacy → Content filtering, and include them also in Settings → Media → YouTube section.
Each filter option is synchronized in both sections (i.e. modifying an option under Settings → Media will be reflected in the other section accordingly).

The YouTube section is also reordered:

Block YouTube Shorts
Block YouTube Playables
Block YouTube recommended content
Block YouTube distracting elements
Block YouTube thumbnails
Block YouTube auto-dubbed videos
Block YouTube members-only videos
2026-03-17 21:32:18 +01:00
vadims 270588d928 App close auto shred not working [Tablet] (#34702)
Fixed the `On App Closed` auto-shred option to trigger only when the app
is fully closed, not when the user switches apps or presses the Home
button.

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

Signed-off-by: Vadym Struts <vstruts@brave.com>
2026-03-16 17:25:06 +01:00
AlexeyBarabash a5c47b8f71 [Android][Settings Search] Replace background images with the void (#34687)
Resolves https://github.com/brave/brave-browser/issues/53524
2026-03-13 22:41:49 +02:00
Szilard Szaloki 8dc92ab21c Account: changes the title label for logged-in users (#34707) 2026-03-14 05:14:17 +09:00
AlexeyBarabash e8302c177f Android settings search indexes (#34576)
Added support for search indexes for Brave preferences fragments
2026-03-12 23:20:56 +02:00
Serg 94c841cc01 [Android] Use Nala ic_search icon for dark theme support (#34679)
Remove hardcoded ic_search.xml (#495057 fill) that was shadowing the
Nala version which uses @color/icon_default for proper light/dark
theme adaptation.

Resolves: https://github.com/brave/brave-browser/issues/53297
2026-03-12 16:32:52 -04:00
Anton Paymyshev a95360aa75 Drop gas_estimation field from TxData1559 (#34515)
* Drop gas_estimation field from TxData1559

* fix ci

* fix ci

* fix ci

* fix ci

* fix ci

* fix ci

* Address review
2026-03-12 22:13:34 +07:00
Darnell Andries b88610b3d4 Add Android metrics for Brave Search (#34076)
* Add widget search perecent metric

* Add quick search percentage metrics

* Address bot feedback
2026-03-11 16:27:31 -07:00
Simone Arpe 61a9a1434a Rename onboarding variants X and Y to avoid name collision (#34566)
Uncomments `getDayZeroVariant` to fetch the variant names and it renames them to X (default) and Y (new onboarding) to avoid naming collision with NTP A/B study.
2026-03-11 17:27:54 +01:00
AlexeyBarabash 01e05371c8 [CodeHealth][Android] Ignore more patches for overwritten resources (#34534)
* [CodeHealth][Android] Ignore patch generation for overwritten resources

This is update of the Android resources list we should
not generate patch for because we overwrite them.

Converted bookmark_toolbar.xml layout file override to patch, 
because it is trivial.

Resolves https://github.com/brave/brave-browser/issues/53436
2026-03-11 15:14:28 +02:00
Darnell Andries ec69821f17 Add metric for Android quick search (#33731)
* Add metric for Android quick search

* Address PR feedback

* Add registry check

* Add Brave to quick search answer
2026-03-10 11:22:18 -07:00
Serg 12400944d6 [Android] Fix crash in BraveNewsUtils when mojo pipe is closed (#34573)
Guard mojo calls with try/catch for IllegalStateException since the
pipe can be closed by onDetachedFromWindow() or onConnectionError()
before the BEST_EFFORT task executes, and Java mojo bindings have no
non-destructive validity check.

Resolves: https://github.com/brave/brave-browser/issues/53479
2026-03-09 23:27:30 +01:00
Simone Arpe 9ff0e5646d Init exit menu item as hidden (#34482)
Initializes exit menu item as hidden for new users only by setting it as disabled during onboarding. Exit item will be shown as disabled in the customized menu and tapping it on the toggle will bring it back.
2026-03-09 15:19:19 +01:00
Serg ae69664eab [Android] Clean up Origin preferences and implement reset/link purchase (#34535)
- Remove unused "Crash reports" toggle (no policy mapping)
- Remove "Manage account" preference
- Rename "Leo AI" toggle label to "AI"
- Implement "Reset to defaults" with confirmation dialog
- Implement "Link purchase" to open Brave account linking page

Resolves: https://github.com/brave/brave-browser/issues/53435
2026-03-06 17:28:33 -05:00
Serg 3efa85704e [Android] Restore Origin purchase on app startup for device change scenario (#34495)
When a user purchases Brave Origin on one device and later switches to a
new device (or reinstalls), the local preferences are empty and the
Origin menu always shows the purchase screen instead of the settings
screen.

This adds a verifyPurchase() method to BraveOriginSubscriptionPrefs that
queries Google Play for an existing Origin purchase and restores the
local preferences (purchase token, product ID, package name) if one is
found. The query is triggered during
BraveActivity.finishNativeInitialization() only when the local
subscription pref is not already active, so it doesn't run unnecessarily
for users who already have their purchase recorded locally.

Toasts are suppressed during the startup query to avoid showing billing
error messages on devices without Google Play, and re-enabled when the
purchase screen is opened.

Resolves: https://github.com/brave/brave-browser/issues/53405
2026-03-05 16:38:37 -05:00
AlexeyBarabash c36de06488 [Android][cr146] Put url into url bar after QR scan (#34437)
* [Android][cr146] Put url into url bar after QR scan

This commit brings back pre-cr146 behaviour
on scanning QR codes with url - url text now
is at the url bar and selected again.

Resolves https://github.com/brave/brave-browser/issues/53318
2026-03-05 16:19:01 +02:00
Serg e9ae9e7377 [Android] Fix stale verified publisher checkmark on tab switch (#34449)
The verified publisher checkmark could persist when switching tabs
because brave:// URLs were not treated as internal URLs and
OnPanelPublisherInfo silently dropped null publisher info without
notifying the Java layer.

- Treat brave:// URLs as internal alongside chrome:// so they
  clear the checkmark instead of querying getPublisherInfo.
- Notify Java with an empty publisher ID when OnPanelPublisherInfo
  receives null info, so the UI clears stale state.
- Reset the checkmark immediately in didSelectTab as a safety net
  before the async publisher query completes.

Resolves: https://github.com/brave/brave-browser/issues/53332
2026-03-04 20:59:29 -05:00
Simone Arpe d81a0e484e (Wallet) Fix edit fee dialog styles (#34388)
* Switch from `getActivity()` in favor of `requireContext()`

* Improve Edit Fee dialog styles

* Fix window leaked upon config changes

* Fix presubmit warning
2026-03-04 13:22:38 +00:00
Simone Arpe aebf44f653 Fix private tab layout and RTL support (#34401) 2026-03-04 14:20:06 +01:00
Simone Arpe 3ea61f5823 (Wallet) Add padding to avoid focus ring cut off (#34389)
Add padding to avoid focus ring cut off
2026-03-04 10:35:59 +00:00
vadims f13eac71f2 Global Shred site's data preference is not available in settings under Brave Shields & privacy (#34391)
Fixed global auto-shred settings to be displayed in Settings under
Brave Shields & Privacy when the Shred feature is enabled.

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

Signed-off-by: Vadym Struts <vstruts@brave.com>
2026-03-04 11:01:13 +01:00
Serg 7246781c90 [Android] Use Leo design tokens for icons in Brave Origin settings (#34411)
Migrate Origin settings icons from custom drawables with hardcoded fill
colors to Leo design token equivalents that use @color/icon_default for
proper dark theme support. Remove manual icon tinting code that was
working around the hardcoded colors.

Resolves: https://github.com/brave/brave-browser/issues/53334
2026-03-04 01:20:01 +01:00
Serg 8c0ed68c2e [Android] Gate email aliases preference behind kEmailAliases feature flag (#34403)
The email aliases toggle in Brave Origin settings was always visible
regardless of whether the feature flag is enabled. Since the feature is
disabled by default, users would see a non-functional toggle.

Expose kEmailAliases to Java via ChromeFeatureList and hide the
preference when the flag is disabled.

Resolves: https://github.com/brave/brave-browser/issues/53323
2026-03-03 21:36:30 +00:00
Serg cb5b0a007d [Android] fix: handle Mojo BadMessageException gracefully (#34360)
Chromium 146 introduced BadMessageException in the Java Mojo bindings
(crbug.com/469861566, https://github.com/chromium/chromium/commit/c04b8552deeef)
to surface malformed or unexpected messages (invalid headers, unknown methods,
deserialization errors, responses for already-cancelled requests). However, the
default ExceptionHandler simply re-throws the exception as unchecked, causing
crashes instead of gracefully closing the pipe.

This differs from the C++ Mojo bindings behavior where
Connector::DispatchMessage (mojo/public/cpp/bindings/lib/connector.cc) handles
dispatch failures by calling HandleError() which resets the pipe cleanly.

Set a delegate on ExceptionHandler.DefaultExceptionHandler that catches
BadMessageException and returns false (closing the pipe), while re-throwing
all other exceptions to preserve existing behavior.

Resolves: https://github.com/brave/brave-browser/issues/53290
2026-03-02 21:44:20 +01:00
Simone Arpe 32a340275c Fix HeadingH1/2/3/4 by adding android:textStyle bold (#34355) 2026-03-02 16:49:20 +01:00
AlexeyBarabash f038f8d936 [Android] Fix debug crash at assertNonNull on app start at News (#34330)
Resolves https://github.com/brave/brave-browser/issues/53262
2026-02-27 23:43:18 +00:00
AlexeyBarabash 5210710174 Fixing some Nullaway check warnings (#34122)
* Fixed some Nullaway check warnings

Resolves brave/brave-browser#53098
2026-02-27 18:17:36 +02:00
Simone Arpe 3f35655f1d Implement new layout for widget search promo panel (#34207)
Implements new layout for widget search promo panel and introduces better handling of activity recreations and configuration changes to redraw the widget search promo panel with correct theme (day/night) and proper position.

Other notable enhancements:

- Tweak tablet margins to better frame the onboarding cards on foldable devices after initial review with the design team.
- Fix post-FRE intent and delay activity to avoid a glitch on foldable devices by following the same strategy applied upstream.
- Accessibility: include content descriptions for widget search promo panel images.
- Nala: include new drawables from Nala tokens.
- Append new source android-widget for all searches made from the widget.
- Implement tests to verify new source android-widget.
2026-02-27 13:45:17 +01:00
Serg aa2fcc5c1f [Android] Fix in-app review flow crash on Play Store split APK installs (#34229)
PlayCoreDialogWrapperActivity (from core-common) lives in base.apk
but deserializes a Parcelable (review.zzc) from split_chrome.apk.
The base split's ClassLoader can't see chrome split classes, causing
ClassNotFoundException. Chromium fixes this for its own activities
via BundleUtils.checkContextClassLoader(), but PlayCoreDialogWrapperActivity
extends plain Activity and is not covered.

Fix by registering an ActivityLifecycleCallbacks that sets the
Application's ClassLoader on the Intent extras Bundle before onCreate().

Also adds a QA preference to force the in-app review flow from settings
for easier testing.

Resolves: https://github.com/brave/brave-browser/issues/53179
2026-02-26 23:19:42 +00:00
Artem Samoilenko f4f73437c0 [cr147][Android] Changes for ToolbarSwipeLayout
Chromium changes:
https://chromium.googlesource.com/chromium/src/+/6257cc0a04731f19de38049632765ee5ffa5f249

commit 6257cc0a04731f19de38049632765ee5ffa5f249
Author: Yanting Yu <yyanting@google.com>
Date:   Tue Feb 17 13:22:09 2026 -0800

    Fix the toolbar swipe animation in NTP (Part2).

    This is the follow up CL for crrev.com/c/7552991. In this CL, we fixed
    1) toolbar jumps down when swiping the toolbar from newly created NTP;
    2) the empty bar is observed above the bottom toolbar after swipe to
    non-NTP tab from newly created NTP.

    Root cause: When preparing the swipe animation, we use the stale toolbar
    capture including the top padding for E2E in NTP. Even though the
    toolbar is notified to remove its own padding before swipe starts. We
    fixed this bug by forcing the toolbar to update its layout and capture
    the bitmap.

    Before: https://screencast.googleplex.com/cast/NTAyMDk1NTYwNzgyNjQzMnxkNWU5ZGQwYy1jMw
    After: https://screencast.googleplex.com/cast/NjI5MTcyNTEzMDY2MTg4OHxkMzE3Y2ZhNi1lYQ

    Bug: 469708907, 480857474
    Change-Id: I7a365b8f1a11ea65d7b3c13b54e00bfb7f1d88ce
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7563889
    Commit-Queue: Yanting Yu <yyanting@google.com>
    Reviewed-by: Patrick Noland <pnoland@chromium.org>
    Reviewed-by: Xi Han <hanxi@chromium.org>
    Cr-Commit-Position: refs/heads/main@{#1585966}
2026-02-26 14:14:57 +00:00
AlexeyBarabash 2701f088c3 [cr146][Android] Encapsulate TopInsetProvider observer two-step pattern
Chromium change:
https://source.chromium.org/chromium/chromium/src/+/2eb1baa19a3548ac2bee87fdd1231ea4051442f0

	[E2E] Encapsulate TopInsetProvider observer two-step pattern

	This CL introduces a new class to encapsulates the common
	two-step pattern of:
	1. Waiting for TopInsetProvider to become available via a supplier
	2. Adding an observer to the provider once available

	This pattern was duplicated in ToolbarPositionController,
	AutocompleteCoordinator, and NewTabPage.

	The new utility class manage TopInsetProvider access with clear
	separation between owners and consumers

	TransitiveTopInsetProvider:
	  - Provides access to consumers who need to observe inset changes
	  - Automatically manages observer registration when provider becomes available
	  - Queues observers added before provider is set

	Bug: 478739083
	Change-Id: Ib818c4f16df88f1d6ab6befc633f1fb9031ba3d5
	Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7509092
2026-02-26 14:14:55 +00:00
AlexeyBarabash 4accb1d201 Revert "[cr146][Android] Changed shareDelegate arg at ChromeContextMenuPopulator.ctor"
This reverts commit 7d23353a12adf000a22615fd1d07ed389e9fd94c.

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

	Revert (partial) "Fix @Nullable annotation for ChromeContextMenuPopulator's ShareDelegate"

	This reverts commit c6562cde86eaf48819f83a7bd68e37b37626e51b.

	Reason for revert:
	The Suspect CL https://chromium-review.googlesource.com/q/Icc52e361fd3c5f64ef4ab1ff51397d841bc13f64 is highly likely the cause of the crash. Please see the crash report http://crash/d477a2ee4d2284d8.
	Rebase the Revert CL on top of main branch with conflicts allowed option to prevent false positive merge conflicts.

	If you agree with the revert CL, please approve it and mark as Commit-Queue +2 to submit it.

	More details can be found in the go/crash-revert-cls-creation.

	Original change's description:
	> Fix @Nullable annotation for ChromeContextMenuPopulator's ShareDelegate
	>
	> And switch it to not be a Supplier, since nothing currently requires it
	> to be one.
	>
	> Bug: 467389696
	> Change-Id: Icc52e361fd3c5f64ef4ab1ff51397d841bc13f64
	> Cq-Include-Trybots: luci.chrome.try:android-internal-dbg,android-internal-binary-size
	> Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7542574
	> Reviewed-by: Henrique Nakashima <hnakashima@chromium.org>
	> Commit-Queue: Andrew Grieve <agrieve@chromium.org>
	> Cr-Commit-Position: refs/heads/main@{#1579495}
	>
	Crash Bug: 482849462

	Change-Id: I6042384ff35cd6d3747fa2dab28607fe243e18f8
	Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7555790
2026-02-26 14:14:55 +00:00
AlexeyBarabash 60e1c669e4 [cr146][Android] Change at ReturnToChromeUtil
shouldShowNtpAsHomeSurfaceAtStartup method has new persistableBundle
argyment

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

	Explicitly disallow start surface after app update when restoring persistent state

	When a window is restored as part of the persistAcrossReboots feature,
	the start surface may be shown afterwards. This change prevents the
	start surface from being shown if the persistent state indicates that
	the window was restored after an app update, in order to minimize any
	disruptions.

	Bug: 459921316
	Change-Id: Ib02ef3277d3d536479cab4ae5c877c07b74d5dae
	Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7534264
2026-02-26 14:14:53 +00:00
AlexeyBarabash 240f8280a9 [cr146][Android] Make ObservableSupplierImpl package-private
AI-assited change

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

	Android: Make ObservableSupplierImpl package-private

	Bug: 467389696
	Change-Id: I6d8cce7f71f520d2ee5e43f87f8225cb71bef863
	Cq-Include-Trybots: luci.chrome.try:android-internal-dbg,android-internal-binary-size
	Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7546004
2026-02-26 14:14:53 +00:00
AlexeyBarabash 7813b87d2f [cr146][Android] Make MonotonicObservableSupplier inherit Supplier<@Nullable T>
Chromium change:
https://source.chromium.org/chromium/chromium/src/+/a5aa1f364aa75ce92d3d05c64c7d929303c8dc5f

	Android: Make MonotonicObservableSupplier inherit Supplier<@Nullable T>

	And fix all warnings that come with it.

	Bug: 467389696
	Cq-Include-Trybots: luci.chrome.try:android-internal-dbg,android-internal-binary-size
	Change-Id: I86becbc2f3c149941e3401fd726d7062a261bd7a
	Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7533558
2026-02-26 14:14:52 +00:00
AlexeyBarabash 7ca4b5d5ba [cr146][Android] Changed shareDelegate arg at ChromeContextMenuPopulator.ctor
Chromium change:
https://source.chromium.org/chromium/chromium/src/+/c6562cde86eaf48819f83a7bd68e37b37626e51b

	Fix @Nullable annotation for ChromeContextMenuPopulator's ShareDelegate

	And switch it to not be a Supplier, since nothing currently requires it
	to be one.

	Bug: 467389696
	Change-Id: Icc52e361fd3c5f64ef4ab1ff51397d841bc13f64
	Cq-Include-Trybots: luci.chrome.try:android-internal-dbg,android-internal-binary-size
	Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7542574
2026-02-26 14:14:52 +00:00
AlexeyBarabash 369e8c62cb [cr146][Android] Decouple Autocomplete from Focus tracking
Chromium change:
https://source.chromium.org/chromium/chromium/src/+/0c57afbab4d40c54ee55637488cf7a800c2cb378

	Decouple Autocomplete from Focus tracking.

	This change removes remaining logic where Autocomplete was tracking
	UrlBar logic, decoupling the editing session from focus entirely. This
	aims at addressing a discrepancy between the isInInputSession and
	the isUrlBarFocused that can come after a delay (from the Animation
	driver).

	Change-Id: I888abb47fa746531fe27a10b6d3cb5e72e3b34a8
	Fixed: 480832132, 480721973
	Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7539776
2026-02-26 14:14:52 +00:00
AlexeyBarabash d447587eba [cr146][Android] Move OmniboxFocusReason to //components
Chromium change:
https://source.chromium.org/chromium/chromium/src/+/d3f05c382534233d3174eaa52628405b5c0791a8

	Move OmniboxFocusReason to //components, include in ACInput.

	Bypass-Check-License: file moved
	Bug: 475620206
	Change-Id: Ifd9bf63a77882415dbc2abeaa81ab82cbc241bb7
	Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7541346
2026-02-26 14:14:52 +00:00
AlexeyBarabash 745d4ef1e5 [cr146][Android] profileSupplier arg at TopToolbarCoordinator.ctor
Chromium change:
https://source.chromium.org/chromium/chromium/src/+/cb00be75174e655ef5bafa4cbd9403923bea0d1b

	[Signin][Android] Create Signin Button skeleton & flag flow

	Introduces the SigninButton component for the Android NTP in the
	toolbar. Currently, this component does nothing and is behind the
	SigninLevelUpButton feature flag. This CL sets up the flag logic such
	that, when enabled, the IdentityDisc (which will eventually be replaced
	by the SigninButton) is removed from the Adaptive Toolbar and the
	SigninButton is added to the Top Toolbar. There is no View or XML for
	SigninButton currently as it is just a skeleton component. The
	implementation for SigninButton will be in follow-up CLs.

	Bug: 478828569
	Change-Id: Ibbf7d61687e18f12fd9d6a6401fe4da8c414b599
	Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7511406
2026-02-26 14:14:51 +00:00
AlexeyBarabash 98e9d1a027 [cr146][Android] Expose didAccountFetchSucceed method in SigninManager
Chromium change:
https://source.chromium.org/chromium/chromium/src/+/8d245c9bdb38862319c642f4925de64de7d1745e

	[Signin][Android] Expose didAccountFetchSucceed method in SigninManager

	Fixed: 480076180
	Change-Id: Id244540a757f25559eab0414a11aedbc568d9819
	Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7534279
2026-02-26 14:14:50 +00:00
AlexeyBarabash 21302ec663 [cr146][Android] Clean up OmniboxMobileParityUpdateV2 on Android (Part 1)
NewTabPage.updateSearchProvider is now void at upstream

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

	[ParityV2] Clean up OmniboxMobileParityUpdateV2 on Android (Part 1).

	Clean up feature flag OMNIBOX_MOBILE_PARITY_UPDATE_V2 and feature
	param "retrieve_builtin_favicon" on Android.

	Bug: 426594110
	Change-Id: I705823eb0dbd34b0e1187dfde3b20f12c4b78fa7
	Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7523327
2026-02-26 14:14:49 +00:00
AlexeyBarabash bbf9b63412 [cr146][Android] Make MonotonicObservableSupplier implement Supplier<@Nullable>
Chromium change:
https://source.chromium.org/chromium/chromium/src/+/6500325e057365791ae060e8c8405fd43ff48fab

	Android: Make MonotonicObservableSupplier implement Supplier<@Nullable>

	And fix all warnings that result from doing so.
	Supplier.get() is still being treated as @NullUnmarked. That's the
	last step in this migration!

	Bug: 478248581
	Change-Id: I0158e81ec0a739e05c6d89a28586f78b1e633ce5
	Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7531037
2026-02-26 14:14:49 +00:00
AlexeyBarabash 17f8419622 [cr146][Android] Create OmniboxChipManager and the open-in-app chip
Chromium change:
https://source.chromium.org/chromium/chromium/src/+/466f936e51f26b1bb438f4f7bda2dd65a4b86c6e

	[Link Capturing] Create OmniboxChipManager and the open-in-app chip

	Low-Coverage-Reason: TESTS_IN_SEPARATE_CL implementation not at a point to test properly yet
	Bug: 450253146
	Change-Id: Id4296ce2ce685dcca9be535f8308a1295a1772a4
	Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7362069
2026-02-26 14:14:49 +00:00
AlexeyBarabash 61234131f6 [cr146][Android] New arg lockTopControlsTokenJar at ToolbarManager.ctor
Chromium change:
https://source.chromium.org/chromium/chromium/src/+/90bbbf8c22d3727c3f35756a863dc1bb222db2d0

	[BrowserControls] Defer lock status change during DTC transition

	TopControlsStacker calculates the layer offset assuming they keep a
	consistent height and min height during transitions. As a result, if we
	change the top control lock status, which would change whether layers
	contribute to minHeight, would cause unexpected behaviors for browser
	driven offset calculations.

	This CL lets TabStripTopControlLayer uses the TokenHolder provided by
	TopControlLockCoordinator to prevent the lock status from changing, to
	ensure layers can maintain a consistently state whether they contribute
	to minHeight during tab strip transition.

	Bug: 469484975
	Change-Id: I57b55604c062940bcc120788f0b0764c244bd292
	Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7355240
2026-02-26 14:14:49 +00:00