Add the WallpaperGooglePhotosIntegrationEnabled policy.
This CL adds a boolean user policy to control google photos integration
within the ChromeOS personalization application. Since the value of
the preference is checked every time the application is opened (or the
app is reloaded) I think we can get away without using a pref registry
to watch it.
The policy is also checked when checking for google photos staleness,
with the side effect of setting the default wallpaper should the
controller client find the policy disabled.
Bug: b:264924661
Change-Id: If7b2586c20ffad60371a11a7259405e8a8818fad
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4228731
Reviewed-by: Dominic Battré <[email protected]>
Reviewed-by: Anqing Zhao <[email protected]>
Reviewed-by: Jeffrey Young <[email protected]>
Reviewed-by: Alexander Hendrich <[email protected]>
Commit-Queue: Chris Mullins <[email protected]>
Reviewed-by: Xiaohui Chen <[email protected]>
Cr-Commit-Position: refs/heads/main@{#1113439}
diff --git a/chrome/browser/prefs/browser_prefs.cc b/chrome/browser/prefs/browser_prefs.cc
index 7b5ea12..12cbc7f 100644
--- a/chrome/browser/prefs/browser_prefs.cc
+++ b/chrome/browser/prefs/browser_prefs.cc
@@ -502,6 +502,10 @@
#include "ui/color/system_theme.h"
#endif
+#if BUILDFLAG(IS_CHROMEOS_ASH)
+#include "chrome/browser/ash/wallpaper_handlers/wallpaper_prefs.h"
+#endif
+
namespace {
// Please keep the list of deprecated prefs in chronological order. i.e. Add to
@@ -1631,6 +1635,7 @@
file_manager::file_tasks::RegisterProfilePrefs(registry);
file_manager::prefs::RegisterProfilePrefs(registry);
bruschetta::prefs::RegisterProfilePrefs(registry);
+ wallpaper_handlers::prefs::RegisterProfilePrefs(registry);
#endif // BUILDFLAG(IS_CHROMEOS_ASH)
#if BUILDFLAG(IS_CHROMEOS_LACROS)