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

Unified Diff: chrome/browser/ui/webui/local_state/local_state_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, 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/local_state/local_state_ui.cc
diff --git a/chrome/browser/ui/webui/local_state/local_state_ui.cc b/chrome/browser/ui/webui/local_state/local_state_ui.cc
index bc7fb7e117b55f132d94d6caae24eec93dab6b73..f1470db73975ecdb143662770571a2fc1f8c0d77 100644
--- a/chrome/browser/ui/webui/local_state/local_state_ui.cc
+++ b/chrome/browser/ui/webui/local_state/local_state_ui.cc
@@ -74,8 +74,8 @@ void LocalStateUIHandler::HandleRequestJson(const base::ListValue* args) {
if (!result)
json = "Error loading Local State file.";
- web_ui()->CallJavascriptFunction("localState.setLocalState",
- base::StringValue(json));
+ web_ui()->CallJavascriptFunctionUnsafe("localState.setLocalState",
+ base::StringValue(json));
}
// Returns true if |pref_name| starts with one of the |valid_prefixes|.

Powered by Google App Engine
This is Rietveld 408576698