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

Side by Side 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | chrome/browser/chromeos/dom_ui/system_settings_provider.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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_DOM_UI_SYSTEM_SETTINGS_PROVIDER_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_DOM_UI_SYSTEM_SETTINGS_PROVIDER_H_
6 #define CHROME_BROWSER_CHROMEOS_DOM_UI_SYSTEM_SETTINGS_PROVIDER_H_ 6 #define CHROME_BROWSER_CHROMEOS_DOM_UI_SYSTEM_SETTINGS_PROVIDER_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/string16.h" 10 #include "base/string16.h"
(...skipping 28 matching lines...) Expand all
39 39
40 // Gets timezone name. 40 // Gets timezone name.
41 static string16 GetTimezoneName(const icu::TimeZone& timezone); 41 static string16 GetTimezoneName(const icu::TimeZone& timezone);
42 42
43 // Gets timezone ID which is also used as timezone pref value. 43 // Gets timezone ID which is also used as timezone pref value.
44 static string16 GetTimezoneID(const icu::TimeZone& timezone); 44 static string16 GetTimezoneID(const icu::TimeZone& timezone);
45 45
46 // Gets timezone object from its id. 46 // Gets timezone object from its id.
47 const icu::TimeZone* GetTimezone(const string16& timezone_id); 47 const icu::TimeZone* GetTimezone(const string16& timezone_id);
48 48
49 // Gets a timezone id from a timezone in |timezones_| that has the same
50 // rule of given |timezone|.
51 // One timezone could have multiple timezones,
52 // e.g.
53 // US/Pacific == America/Los_Angeles
54 // We should always use the known timezone id when passing back as
55 // pref values.
56 string16 GetKnownTimezoneID(const icu::TimeZone& timezone) const;
57
49 // Timezones. 58 // Timezones.
50 std::vector<icu::TimeZone*> timezones_; 59 std::vector<icu::TimeZone*> timezones_;
51 60
52 DISALLOW_COPY_AND_ASSIGN(SystemSettingsProvider); 61 DISALLOW_COPY_AND_ASSIGN(SystemSettingsProvider);
53 }; 62 };
54 63
55 } // namespace chromeos 64 } // namespace chromeos
56 65
57 #endif // CHROME_BROWSER_CHROMEOS_DOM_UI_SYSTEM_SETTINGS_PROVIDER_H_ 66 #endif // CHROME_BROWSER_CHROMEOS_DOM_UI_SYSTEM_SETTINGS_PROVIDER_H_
OLDNEW
« 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