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

Unified Diff: chrome/browser/ui/webui/chromeos/network_ui.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/chromeos/network_ui.cc
diff --git a/chrome/browser/ui/webui/chromeos/network_ui.cc b/chrome/browser/ui/webui/chromeos/network_ui.cc
index 257b9398e3d181844cfbc48db576e603fe603cc3..c65933766c83cc73e069d65f9531e6c8036ec32c 100644
--- a/chrome/browser/ui/webui/chromeos/network_ui.cc
+++ b/chrome/browser/ui/webui/chromeos/network_ui.cc
@@ -112,8 +112,8 @@ class NetworkConfigMessageHandler : public content::WebUIMessageHandler {
base::ListValue return_arg_list;
return_arg_list.Append(dictionary_copy.release());
- web_ui()->CallJavascriptFunction("NetworkUI.getShillPropertiesResult",
- return_arg_list);
+ web_ui()->CallJavascriptFunctionUnsafe("NetworkUI.getShillPropertiesResult",
+ return_arg_list);
}
void ErrorCallback(
@@ -126,8 +126,8 @@ class NetworkConfigMessageHandler : public content::WebUIMessageHandler {
dictionary->SetStringWithoutPathExpansion(shill::kGuidProperty, guid);
dictionary->SetStringWithoutPathExpansion("ShillError", error_name);
return_arg_list.Append(dictionary.release());
- web_ui()->CallJavascriptFunction("NetworkUI.getShillPropertiesResult",
- return_arg_list);
+ web_ui()->CallJavascriptFunctionUnsafe("NetworkUI.getShillPropertiesResult",
+ return_arg_list);
}
base::WeakPtrFactory<NetworkConfigMessageHandler> weak_ptr_factory_;
« no previous file with comments | « chrome/browser/ui/webui/chromeos/mobile_setup_ui.cc ('k') | chrome/browser/ui/webui/chromeos/nfc_debug_ui.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698