Chromium change: https://source.chromium.org/chromium/chromium/src/+/23c8fddd48102899160ce4d71b1ab1949c88a248 [Theme] Add NtpCustomizationPolicyManager. In this CL, we add NtpCustomizationPolicyManager which listens to Pref.NTP_CUSTOM_BACKGROUND_DICT changes. 1) Pref.NTP_CUSTOM_BACKGROUND_DICT being managed means the policy::key::NTPCustomBackgroundEnabled is disabled. 2) When the policy NTPCustomBackgroundEnabled changes, NtpCustomizationPolicyManager saves the latest policy value to the shared preference. It will apply after relaunch chrome. This allows the UI correct when CTA isn't recreated. Demo: http://shortn/_nBBqRNFS3N Bug: 467029432 Change-Id: I04a50d0d814802fbd3ef8be29414a17181adae98 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7500251
16 lines
701 B
Plaintext
16 lines
701 B
Plaintext
# Copyright (c) 2026 The Brave Authors. All rights reserved.
|
|
# This Source Code Form is subject to the terms of the Mozilla Public
|
|
# License, v. 2.0. If a copy of the MPL was not distributed with this file,
|
|
# You can obtain one at https://mozilla.org/MPL/2.0/.
|
|
|
|
import("//build/config/android/rules.gni")
|
|
|
|
# Brave override for NtpCustomizationUtils.isInNarrowWindowOnTablet (bytecode
|
|
# redirects calls to this). Depends only on UiConfig to avoid circular deps
|
|
# with //chrome/browser/ntp_customization:java.
|
|
android_library("java") {
|
|
sources = [ "java/src/org/chromium/chrome/browser/ntp_customization/BraveNtpCustomizationUtils.java" ]
|
|
|
|
deps = [ "//components/browser_ui/widget/android:java" ]
|
|
}
|