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

Unified Diff: content/public/browser/web_ui_message_handler.h

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: content/public/browser/web_ui_message_handler.h
diff --git a/content/public/browser/web_ui_message_handler.h b/content/public/browser/web_ui_message_handler.h
index ed0117931f59bc8cc8db1b135a2c606aea0c2015..74cf7d3c40af5bc9b07641126aa1a43139bf5194 100644
--- a/content/public/browser/web_ui_message_handler.h
+++ b/content/public/browser/web_ui_message_handler.h
@@ -88,7 +88,7 @@ class CONTENT_EXPORT WebUIMessageHandler {
const Values&... values) {
CHECK(IsJavascriptAllowed()) << "Cannot CallJavascriptFunction before "
"explicitly allowing JavaScript.";
- web_ui()->CallJavascriptFunction(function_name, values...);
+ web_ui()->CallJavascriptFunctionUnsafe(function_name, values...);
Charlie Reis 2016/05/23 20:26:00 Maybe put a comment here saying that the check abo
tommycli 2016/06/03 17:52:44 Done.
}
// Returns the attached WebUI for this handler.

Powered by Google App Engine
This is Rietveld 408576698