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

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

Issue 2849823003: ChromeOS: implement per-user time zone preferences. (Closed)
Patch Set: Try remove g_browser_process check 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/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 a9538b4c850a1e13ec1901e87479f995625f466a..0ea5479ea28256ff0bcd6c16eca7a9aeea9ec877 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/ui/input_events_blocker.h"
#include "chrome/browser/chromeos/login/wizard_controller.h"
#include "chrome/browser/chromeos/policy/device_cloud_policy_manager_chromeos.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,12 @@ 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::SetSigninScreenTimezone(timezone_id,
+ true /* set_system_timezone */);
}
std::string NetworkScreen::GetTimezone() const {

Powered by Google App Engine
This is Rietveld 408576698