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

Side by Side 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: 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 unified diff | Download patch
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_CHROMEOS_SYSTEM_TIMEZONE_RESOLVER_MANAGER_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_SYSTEM_TIMEZONE_RESOLVER_MANAGER_H_
6 #define CHROME_BROWSER_CHROMEOS_SYSTEM_TIMEZONE_RESOLVER_MANAGER_H_ 6 #define CHROME_BROWSER_CHROMEOS_SYSTEM_TIMEZONE_RESOLVER_MANAGER_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "chromeos/timezone/timezone_resolver.h" 9 #include "chromeos/timezone/timezone_resolver.h"
10 #include "components/prefs/pref_change_registrar.h" 10 #include "components/prefs/pref_change_registrar.h"
(...skipping 22 matching lines...) Expand all
33 bool ShouldApplyResolvedTimezone(); 33 bool ShouldApplyResolvedTimezone();
34 34
35 private: 35 private:
36 // Returns true if TimeZoneResolver should be running and taking in account 36 // Returns true if TimeZoneResolver should be running and taking in account
37 // all configuration data. 37 // all configuration data.
38 bool IsTimeZoneResolverShouldBeRunnig(); 38 bool IsTimeZoneResolverShouldBeRunnig();
39 39
40 // This is non-null only after user logs in. 40 // This is non-null only after user logs in.
41 PrefService* primary_user_prefs_; 41 PrefService* primary_user_prefs_;
42 42
43 // This is used to subscribe to policy preference.
44 PrefChangeRegistrar local_state_pref_change_registrar_;
45
43 DISALLOW_COPY_AND_ASSIGN(TimeZoneResolverManager); 46 DISALLOW_COPY_AND_ASSIGN(TimeZoneResolverManager);
44 }; 47 };
45 48
46 } // namespace system 49 } // namespace system
47 } // namespace chromeos 50 } // namespace chromeos
48 51
49 #endif // CHROME_BROWSER_CHROMEOS_SYSTEM_TIMEZONE_RESOLVER_MANAGER_H_ 52 #endif // CHROME_BROWSER_CHROMEOS_SYSTEM_TIMEZONE_RESOLVER_MANAGER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698