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

Unified Diff: chrome/browser/chromeos/login/wizard_controller.cc

Issue 2849823003: ChromeOS: implement per-user time zone preferences. (Closed)
Patch Set: Fixed tests. Created 3 years, 7 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/login/wizard_controller.cc
diff --git a/chrome/browser/chromeos/login/wizard_controller.cc b/chrome/browser/chromeos/login/wizard_controller.cc
index 84a770db3f4eaa288b1cf94418e4f0c1ddd248f3..5d50c2fc636c611e2b12da167dce5b9da2136b3b 100644
--- a/chrome/browser/chromeos/login/wizard_controller.cc
+++ b/chrome/browser/chromeos/login/wizard_controller.cc
@@ -1427,9 +1427,9 @@ void WizardController::OnTimezoneResolved(
if (!timezone->timeZoneId.empty()) {
VLOG(1) << "Resolve TimeZone: setting timezone to '" << timezone->timeZoneId
<< "'";
-
- system::TimezoneSettings::GetInstance()->SetTimezoneFromID(
- base::UTF8ToUTF16(timezone->timeZoneId));
+ g_browser_process->local_state()->SetString(prefs::kSigninScreenTimezone,
+ timezone->timeZoneId);
+ CrosSettings::Get()->SetString(kSystemTimezone, timezone->timeZoneId);
stevenjb 2017/05/15 17:08:02 Setting both of these in multiple places is a litt
Alexander Alekseev 2017/05/16 01:11:56 Done.
}
}

Powered by Google App Engine
This is Rietveld 408576698