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

Unified Diff: chrome/browser/chromeos/system/timezone_util.cc

Issue 2438443005: MD Settings: Date and Time page, part 2/3 (Closed)
Patch Set: rebase Created 4 years, 2 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/chromeos/system/timezone_util.cc
diff --git a/chrome/browser/chromeos/system/timezone_util.cc b/chrome/browser/chromeos/system/timezone_util.cc
index 7552d5b1c73d694a3772e921fb7fa94b956227cf..6c41a052197a959f10c4e38fe4cc56e6c39ca149 100644
--- a/chrome/browser/chromeos/system/timezone_util.cc
+++ b/chrome/browser/chromeos/system/timezone_util.cc
@@ -147,6 +147,11 @@ base::string16 GetTimezoneName(const icu::TimeZone& timezone) {
namespace chromeos {
namespace system {
+base::string16 GetCurrentTimezoneName() {
+ return GetTimezoneName(
+ chromeos::system::TimezoneSettings::GetInstance()->GetTimezone());
+}
+
// Creates a list of pairs of each timezone's ID and name.
std::unique_ptr<base::ListValue> GetTimezoneList() {
const auto& timezones =
« no previous file with comments | « chrome/browser/chromeos/system/timezone_util.h ('k') | chrome/browser/extensions/api/settings_private/prefs_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698