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

Unified Diff: chrome/browser/chromeos/login/screens/network_screen.cc

Issue 2849823003: ChromeOS: implement per-user time zone preferences. (Closed)
Patch Set: Rebased. Created 3 years, 4 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/screens/network_screen.cc
diff --git a/chrome/browser/chromeos/login/screens/network_screen.cc b/chrome/browser/chromeos/login/screens/network_screen.cc
index 1d78fd4b1c2ff55d27411ba49c795dd3b4aaf742..006b4c76b4e0e93673cdf87eb64532b6bb61b0e7 100644
--- a/chrome/browser/chromeos/login/screens/network_screen.cc
+++ b/chrome/browser/chromeos/login/screens/network_screen.cc
@@ -21,6 +21,7 @@
#include "chrome/browser/chromeos/login/screens/network_view.h"
#include "chrome/browser/chromeos/login/ui/input_events_blocker.h"
#include "chrome/browser/chromeos/login/wizard_controller.h"
+#include "chrome/browser/chromeos/system/timezone_util.h"
#include "chrome/browser/profiles/profile_manager.h"
#include "chrome/browser/ui/webui/chromeos/login/l10n_util.h"
#include "chrome/common/pref_names.h"
@@ -133,12 +134,11 @@ std::string NetworkScreen::GetInputMethod() const {
}
void NetworkScreen::SetTimezone(const std::string& timezone_id) {
- std::string current_timezone_id;
- CrosSettings::Get()->GetString(kSystemTimezone, &current_timezone_id);
- if (current_timezone_id == timezone_id || timezone_id.empty())
+ if (timezone_id.empty())
return;
+
timezone_ = timezone_id;
- CrosSettings::Get()->SetString(kSystemTimezone, timezone_id);
+ chromeos::system::SetSystemAndSigninScreenTimezone(timezone_id);
}
std::string NetworkScreen::GetTimezone() const {

Powered by Google App Engine
This is Rietveld 408576698