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, ¤t_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 { |