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

Unified Diff: chrome/browser/chromeos/system/timezone_resolver_manager.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/chromeos/system/timezone_resolver_manager.h
diff --git a/chrome/browser/chromeos/system/timezone_resolver_manager.h b/chrome/browser/chromeos/system/timezone_resolver_manager.h
index db5fc77918c353d8ec3499c9d318afede0ddcdbe..f900c0504d170772dfee5acf9c51e1a887fb0f52 100644
--- a/chrome/browser/chromeos/system/timezone_resolver_manager.h
+++ b/chrome/browser/chromeos/system/timezone_resolver_manager.h
@@ -32,6 +32,9 @@ class TimeZoneResolverManager : public TimeZoneResolver::Delegate {
// system timezone (preferences might have changed since request was started).
bool ShouldApplyResolvedTimezone();
+ // Returns the result of the provate call for tests.
+ bool TimeZoneResolverShouldBeRunningForTests();
+
private:
// Returns true if TimeZoneResolver should be running and taking in account
// all configuration data.
@@ -40,6 +43,9 @@ class TimeZoneResolverManager : public TimeZoneResolver::Delegate {
// This is non-null only after user logs in.
PrefService* primary_user_prefs_;
+ // This is used to subscribe to policy preference.
+ PrefChangeRegistrar local_state_pref_change_registrar_;
+
DISALLOW_COPY_AND_ASSIGN(TimeZoneResolverManager);
};

Powered by Google App Engine
This is Rietveld 408576698