| Index: chrome/browser/ui/webui/components_ui.cc
|
| diff --git a/chrome/browser/ui/webui/components_ui.cc b/chrome/browser/ui/webui/components_ui.cc
|
| index 7eb610abf6cf211953e543b6bb961992d87f423e..40bb188d3015f4af1bde140b51a12bd60191f9c6 100644
|
| --- a/chrome/browser/ui/webui/components_ui.cc
|
| +++ b/chrome/browser/ui/webui/components_ui.cc
|
| @@ -105,7 +105,7 @@ void ComponentsDOMHandler::HandleRequestComponentsData(
|
| base::ListValue* list = ComponentsUI::LoadComponents();
|
| base::DictionaryValue result;
|
| result.Set("components", list);
|
| - web_ui()->CallJavascriptFunction("returnComponentsData", result);
|
| + web_ui()->CallJavascriptFunctionUnsafe("returnComponentsData", result);
|
| }
|
|
|
| // This function is called when user presses button from html UI.
|
| @@ -256,5 +256,5 @@ void ComponentsUI::OnEvent(Events event, const std::string& id) {
|
| }
|
| parameters.SetString("id", id);
|
| }
|
| - web_ui()->CallJavascriptFunction("onComponentEvent", parameters);
|
| + web_ui()->CallJavascriptFunctionUnsafe("onComponentEvent", parameters);
|
| }
|
|
|