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

Unified Diff: chrome/browser/ui/webui/components_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, 7 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/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);
}

Powered by Google App Engine
This is Rietveld 408576698