[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}
This commit is contained in:
Artem Samoilenko
2025-09-22 14:59:44 -04:00
committed by Max Karolinskiy
parent e66adaf7eb
commit 8cc588aff4
2 changed files with 8 additions and 5 deletions
@@ -39,7 +39,8 @@ public class BraveStatusBarColorController extends StatusBarColorController {
TopUiThemeColorProvider topUiThemeColorProvider,
EdgeToEdgeSystemBarColorHelper edgeToEdgeSystemBarColorHelper,
OneshotSupplier<DesktopWindowStateManager> desktopWindowStateManagerSupplier,
ObservableSupplier<Integer> overviewColorSupplier) {
ObservableSupplier<Integer> overviewColorSupplier,
boolean supportEdgeToEdge) {
super(
window,
isTablet,
@@ -51,7 +52,8 @@ public class BraveStatusBarColorController extends StatusBarColorController {
topUiThemeColorProvider,
edgeToEdgeSystemBarColorHelper,
desktopWindowStateManagerSupplier,
overviewColorSupplier);
overviewColorSupplier,
supportEdgeToEdge);
// Dark theme doesn't have the regression, apply adjustment to light one only
if (!ColorUtils.inNightMode(context)) {