Chromium Code Reviews

Unified Diff: chrome/browser/ui/webui/options/browser_options_handler.cc

Issue 944593002: ChromeOS: Update browser option UI for automatic timezone detection. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed SharedOptionsTest. Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Index: chrome/browser/ui/webui/options/browser_options_handler.cc
diff --git a/chrome/browser/ui/webui/options/browser_options_handler.cc b/chrome/browser/ui/webui/options/browser_options_handler.cc
index e3d05b11ed050964bebaffe20a88d7605fb1760a..a40eb9ef9cc59fef8869a2613a17deacf2beddcd 100644
--- a/chrome/browser/ui/webui/options/browser_options_handler.cc
+++ b/chrome/browser/ui/webui/options/browser_options_handler.cc
@@ -681,6 +681,9 @@ void BrowserOptionsHandler::GetLocalizedValues(base::DictionaryValue* values) {
values->SetBoolean("enableTimeZoneTrackingOption",
!have_disable_time_zone_tracking_option_switch &&
!chromeos::system::HasSystemTimezonePolicy());
+ values->SetBoolean("resolveTimezoneByGeolocationInitialValue",
+ Profile::FromWebUI(web_ui())->GetPrefs()->GetBoolean(
+ prefs::kResolveTimezoneByGeolocation));
#endif
}

Powered by Google App Engine