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

Side by Side Diff: chrome/browser/chromeos/system/timezone_util.h

Issue 2438443005: MD Settings: Date and Time page, part 2/3 (Closed)
Patch Set: rebase Created 4 years, 1 month 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
« no previous file with comments | « no previous file | chrome/browser/chromeos/system/timezone_util.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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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_UTIL_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_SYSTEM_TIMEZONE_UTIL_H_
6 #define CHROME_BROWSER_CHROMEOS_SYSTEM_TIMEZONE_UTIL_H_ 6 #define CHROME_BROWSER_CHROMEOS_SYSTEM_TIMEZONE_UTIL_H_
7 7
8 #include <memory> 8 #include <memory>
9 9
10 #include "base/strings/string16.h"
11
10 namespace base { 12 namespace base {
11 class ListValue; 13 class ListValue;
12 } 14 }
13 15
14 namespace chromeos { 16 namespace chromeos {
15 17
16 struct TimeZoneResponseData; 18 struct TimeZoneResponseData;
17 19
18 namespace system { 20 namespace system {
19 21
22 // Gets the current timezone's display name.
23 base::string16 GetCurrentTimezoneName();
24
20 // Creates a list of pairs of each timezone's ID and name. 25 // Creates a list of pairs of each timezone's ID and name.
21 std::unique_ptr<base::ListValue> GetTimezoneList(); 26 std::unique_ptr<base::ListValue> GetTimezoneList();
22 27
23 // Returns true if device is managed and has SystemTimezonePolicy set. 28 // Returns true if device is managed and has SystemTimezonePolicy set.
24 bool HasSystemTimezonePolicy(); 29 bool HasSystemTimezonePolicy();
25 30
26 // Apply TimeZone update from TimeZoneProvider. 31 // Apply TimeZone update from TimeZoneProvider.
27 void ApplyTimeZone(const TimeZoneResponseData* timezone); 32 void ApplyTimeZone(const TimeZoneResponseData* timezone);
28 33
29 } // namespace system 34 } // namespace system
30 } // namespace chromeos 35 } // namespace chromeos
31 36
32 #endif // CHROME_BROWSER_CHROMEOS_SYSTEM_TIMEZONE_UTIL_H_ 37 #endif // CHROME_BROWSER_CHROMEOS_SYSTEM_TIMEZONE_UTIL_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/chromeos/system/timezone_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698