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

Unified Diff: chrome/browser/ui/webui/settings/chromeos/date_time_handler.cc

Issue 2391073005: WebUIDataSource::AddInteger (like AddBoolean/AddString) (Closed)
Patch Set: DateTimeHandler usage of SetInteger Created 4 years, 2 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
« no previous file with comments | « no previous file | content/browser/webui/web_ui_data_source_impl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/webui/settings/chromeos/date_time_handler.cc
diff --git a/chrome/browser/ui/webui/settings/chromeos/date_time_handler.cc b/chrome/browser/ui/webui/settings/chromeos/date_time_handler.cc
index 41d9f06d279d6704474eb7cc840f4ed7efcb94e4..0e7257552101bb72e2ae55d83dbb9266b84256ef 100644
--- a/chrome/browser/ui/webui/settings/chromeos/date_time_handler.cc
+++ b/chrome/browser/ui/webui/settings/chromeos/date_time_handler.cc
@@ -56,10 +56,8 @@ DateTimeHandler* DateTimeHandler::Create(
html_source->AddBoolean("systemTimeZoneDetectionManaged",
system_time_zone_automatic_detection_managed);
if (system_time_zone_automatic_detection_managed) {
- base::DictionaryValue dict;
- dict.SetInteger("systemTimeZoneDetectionPolicyValue",
+ html_source->AddInteger("systemTimeZoneDetectionPolicyValue",
GetSystemTimezoneAutomaticDetectionPolicyValue());
- html_source->AddLocalizedStrings(dict);
}
if (base::CommandLine::ForCurrentProcess()->HasSwitch(
« no previous file with comments | « no previous file | content/browser/webui/web_ui_data_source_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698