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

Unified Diff: chrome/browser/ui/webui/options/handler_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/handler_options_handler.cc
diff --git a/chrome/browser/ui/webui/options/handler_options_handler.cc b/chrome/browser/ui/webui/options/handler_options_handler.cc
index 6eb4d754e13a1ef0b29c1094e1f59fae0e64ffec..e0318752581083ed2e5ec759a44d69a27ef934da 100644
--- a/chrome/browser/ui/webui/options/handler_options_handler.cc
+++ b/chrome/browser/ui/webui/options/handler_options_handler.cc
@@ -140,9 +140,10 @@ void HandlerOptionsHandler::UpdateHandlerList() {
std::unique_ptr<base::ListValue> ignored_handlers(new base::ListValue());
GetIgnoredHandlers(ignored_handlers.get());
- web_ui()->CallJavascriptFunction("HandlerOptions.setHandlers", handlers);
- web_ui()->CallJavascriptFunction("HandlerOptions.setIgnoredHandlers",
- *ignored_handlers);
+ web_ui()->CallJavascriptFunctionUnsafe("HandlerOptions.setHandlers",
+ handlers);
+ web_ui()->CallJavascriptFunctionUnsafe("HandlerOptions.setIgnoredHandlers",
+ *ignored_handlers);
}
void HandlerOptionsHandler::RemoveHandler(const base::ListValue* args) {

Powered by Google App Engine
This is Rietveld 408576698