Chromium Code Reviews| Index: chrome/browser/chromeos/system/timezone_util.h |
| diff --git a/chrome/browser/chromeos/system/timezone_util.h b/chrome/browser/chromeos/system/timezone_util.h |
| index 92d8ade532b481f18f53969043bccfbd21d97e9c..320d37bf8316b85d7a8669d3289bdc5ce5e8963c 100644 |
| --- a/chrome/browser/chromeos/system/timezone_util.h |
| +++ b/chrome/browser/chromeos/system/timezone_util.h |
| @@ -9,6 +9,8 @@ |
| #include "base/strings/string16.h" |
| +class Profile; |
| + |
| namespace base { |
| class ListValue; |
| } |
| @@ -31,6 +33,22 @@ bool HasSystemTimezonePolicy(); |
| // Apply TimeZone update from TimeZoneProvider. |
| void ApplyTimeZone(const TimeZoneResponseData* timezone); |
| +// Returns true if given timezone preference is enterprise-managed. |
| +// Works for: |
| +// - prefs::kUserTimezone |
| +// - prefs::kResolveTimezoneByGeolocation |
| +bool IsTimezonePrefsManaged(const std::string& pref_name); |
|
stevenjb
2017/05/25 22:13:06
s/Prefs/Pref/
Alexander Alekseev
2017/05/29 21:10:23
Done.
|
| + |
| +// Updates system timezone from user profile data if needed. |
| +void UpdateSystemTimezone(Profile* profile); |
| + |
| +// Updates Local State preference prefs::kSigninScreenTimezone AND |
| +// also immediately sets system timezone (chromeos::system::TimezoneSettings). |
| +void SetSystemAndSigninScreenTimezone(const std::string& timezone); |
| + |
| +// Returns true if per-user timezone preferences are enabled. |
| +bool PerUserTimezoneEnabled(); |
| + |
| } // namespace system |
| } // namespace chromeos |