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

Unified Diff: chrome/browser/chromeos/dom_ui/system_settings_provider.h

Issue 5524002: Use only timezone IDs from known timezone list. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 10 years 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
« no previous file with comments | « no previous file | chrome/browser/chromeos/dom_ui/system_settings_provider.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chromeos/dom_ui/system_settings_provider.h
diff --git a/chrome/browser/chromeos/dom_ui/system_settings_provider.h b/chrome/browser/chromeos/dom_ui/system_settings_provider.h
index 816ea2c926dff7cae09797810f4bf7ec55493835..a355df6c507892d8c07c8eceaa53f568eb961a74 100644
--- a/chrome/browser/chromeos/dom_ui/system_settings_provider.h
+++ b/chrome/browser/chromeos/dom_ui/system_settings_provider.h
@@ -46,6 +46,15 @@ class SystemSettingsProvider : public CrosSettingsProvider,
// Gets timezone object from its id.
const icu::TimeZone* GetTimezone(const string16& timezone_id);
+ // Gets a timezone id from a timezone in |timezones_| that has the same
+ // rule of given |timezone|.
+ // One timezone could have multiple timezones,
+ // e.g.
+ // US/Pacific == America/Los_Angeles
+ // We should always use the known timezone id when passing back as
+ // pref values.
+ string16 GetKnownTimezoneID(const icu::TimeZone& timezone) const;
+
// Timezones.
std::vector<icu::TimeZone*> timezones_;
« no previous file with comments | « no previous file | chrome/browser/chromeos/dom_ui/system_settings_provider.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698