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

Unified Diff: chrome/browser/ui/webui/options/chromeos/core_chromeos_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/core_chromeos_options_handler.cc
diff --git a/chrome/browser/ui/webui/options/chromeos/core_chromeos_options_handler.cc b/chrome/browser/ui/webui/options/chromeos/core_chromeos_options_handler.cc
index 15030d3e0a1ba165f45d29edc0d69cf70a564da1..f38f65e008fd3d2244ab70f7867c56b12dd5ab12 100644
--- a/chrome/browser/ui/webui/options/chromeos/core_chromeos_options_handler.cc
+++ b/chrome/browser/ui/webui/options/chromeos/core_chromeos_options_handler.cc
@@ -262,9 +262,8 @@ void CoreChromeOSOptionsHandler::SetPref(const std::string& pref_name,
proxy_cros_settings_parser::SetProxyPrefValue(
pref_name, value, &proxy_config_service_);
base::StringValue proxy_type(pref_name);
- web_ui()->CallJavascriptFunction(
- "options.internet.DetailsInternetPage.updateProxySettings",
- proxy_type);
+ web_ui()->CallJavascriptFunctionUnsafe(
+ "options.internet.DetailsInternetPage.updateProxySettings", proxy_type);
ProcessUserMetric(value, metric);
return;
}

Powered by Google App Engine
This is Rietveld 408576698