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

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

Issue 2664753002: Remove base::StringValue (Closed)
Patch Set: Rebase Created 3 years, 9 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 unified diff | Download patch
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/browser/ui/webui/settings/chromeos/date_time_handler.h" 5 #include "chrome/browser/ui/webui/settings/chromeos/date_time_handler.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/command_line.h" 8 #include "base/command_line.h"
9 #include "base/values.h" 9 #include "base/values.h"
10 #include "chrome/browser/browser_process.h" 10 #include "chrome/browser/browser_process.h"
(...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after
164 } 164 }
165 165
166 void DateTimeHandler::NotifyTimezoneAutomaticDetectionPolicy() { 166 void DateTimeHandler::NotifyTimezoneAutomaticDetectionPolicy() {
167 bool managed = !IsTimezoneAutomaticDetectionUserEditable(); 167 bool managed = !IsTimezoneAutomaticDetectionUserEditable();
168 bool force_enabled = managed && 168 bool force_enabled = managed &&
169 g_browser_process->platform_part() 169 g_browser_process->platform_part()
170 ->GetTimezoneResolverManager() 170 ->GetTimezoneResolverManager()
171 ->ShouldApplyResolvedTimezone(); 171 ->ShouldApplyResolvedTimezone();
172 172
173 CallJavascriptFunction("cr.webUIListenerCallback", 173 CallJavascriptFunction("cr.webUIListenerCallback",
174 base::StringValue("time-zone-auto-detect-policy"), 174 base::Value("time-zone-auto-detect-policy"),
175 base::Value(managed), base::Value(force_enabled)); 175 base::Value(managed), base::Value(force_enabled));
176 } 176 }
177 177
178 void DateTimeHandler::SystemClockCanSetTimeChanged(bool can_set_time) { 178 void DateTimeHandler::SystemClockCanSetTimeChanged(bool can_set_time) {
179 CallJavascriptFunction("cr.webUIListenerCallback", 179 CallJavascriptFunction("cr.webUIListenerCallback",
180 base::StringValue("can-set-date-time-changed"), 180 base::Value("can-set-date-time-changed"),
181 base::Value(can_set_time)); 181 base::Value(can_set_time));
182 } 182 }
183 183
184 } // namespace settings 184 } // namespace settings
185 } // namespace chromeos 185 } // namespace chromeos
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698