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_; |