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

Unified Diff: chrome/browser/ui/webui/options/chromeos/date_time_options_handler.cc

Issue 1995113002: Rename WebUI::CallJavascriptFunction to WebUI::CallJavascriptFunctionUnsafe (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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/ui/webui/options/chromeos/date_time_options_handler.cc
diff --git a/chrome/browser/ui/webui/options/chromeos/date_time_options_handler.cc b/chrome/browser/ui/webui/options/chromeos/date_time_options_handler.cc
index bbb4b0c0c4a09b9ef41e10c12677b61860ca4815..5e8f81a64ecb30c51b1dcad979042b5c145011dc 100644
--- a/chrome/browser/ui/webui/options/chromeos/date_time_options_handler.cc
+++ b/chrome/browser/ui/webui/options/chromeos/date_time_options_handler.cc
@@ -59,8 +59,8 @@ void DateTimeOptionsHandler::RegisterMessages() {
void DateTimeOptionsHandler::SystemClockCanSetTimeChanged(bool can_set_time) {
if (page_initialized_) {
- web_ui()->CallJavascriptFunction("BrowserOptions.setCanSetTime",
- base::FundamentalValue(can_set_time));
+ web_ui()->CallJavascriptFunctionUnsafe(
+ "BrowserOptions.setCanSetTime", base::FundamentalValue(can_set_time));
}
can_set_time_ = can_set_time;
}

Powered by Google App Engine
This is Rietveld 408576698