Files
brave-core/browser/ntp_customization
AlexeyBarabash 2304174ac8 [cr146][Android] isInNarrowWindowOnTablet was moved from NewTabPageLayout to NtpCustomizationUtils`
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
2026-02-26 13:47:51 +00:00
..