Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2495)

Unified Diff: chrome/browser/ui/webui/options/browser_options_handler.h

Issue 1843523002: ChromeOS: Add SystemTimezoneAutomaticDetection policy. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@596690--Implement-better-timezone-detection--refactoring-before-policy
Patch Set: Rebased. Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/webui/options/browser_options_handler.h
diff --git a/chrome/browser/ui/webui/options/browser_options_handler.h b/chrome/browser/ui/webui/options/browser_options_handler.h
index a93d3ef16642fff44436e083dd5c034d0843e1db..fbbef6c6a44fa257501498180fa094caa04dfc4c 100644
--- a/chrome/browser/ui/webui/options/browser_options_handler.h
+++ b/chrome/browser/ui/webui/options/browser_options_handler.h
@@ -224,6 +224,12 @@ class BrowserOptionsHandler
// kSystemTimezonePolicy is set, and preventing the user from changing the
// system time zone if kSystemTimezonePolicy is not set.
void OnSystemTimezonePolicyChanged();
+
+ // Updates the UI, preventing the user from changing timezone or timezone
+ // detection settings if kSystemTimezoneAutomaticDetectionPolicy is set, and
+ // allowing the user to update these settings if
+ // kSystemTimezoneAutomaticDetectionPolicy is not set.
+ void OnSystemTimezoneAutomaticDetectionPolicyChanged();
#endif
// Callback for the "selectDownloadLocation" message. This will prompt the
@@ -402,6 +408,8 @@ class BrowserOptionsHandler
// Whether factory reset can be performed.
bool enable_factory_reset_;
+
+ PrefChangeRegistrar local_state_pref_change_registrar_;
#endif
ScopedObserver<SigninManagerBase, SigninManagerBase::Observer>

Powered by Google App Engine
This is Rietveld 408576698