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

Unified Diff: chrome/browser/ui/webui/instant_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
« no previous file with comments | « chrome/browser/ui/webui/inspect_ui.cc ('k') | chrome/browser/ui/webui/invalidations_message_handler.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/webui/instant_ui.cc
diff --git a/chrome/browser/ui/webui/instant_ui.cc b/chrome/browser/ui/webui/instant_ui.cc
index 0496421c3ee79fc887d3d0c8964db785559d6368..3a71bea3aa0a3abe2986bd1d5ab8d98328aa90e5 100644
--- a/chrome/browser/ui/webui/instant_ui.cc
+++ b/chrome/browser/ui/webui/instant_ui.cc
@@ -100,7 +100,7 @@ void InstantUIMessageHandler::GetPreferenceValue(const base::ListValue* args) {
if (pref_name == prefs::kInstantUIZeroSuggestUrlPrefix) {
PrefService* prefs = Profile::FromWebUI(web_ui())->GetPrefs();
base::StringValue arg(prefs->GetString(pref_name.c_str()));
- web_ui()->CallJavascriptFunction(
+ web_ui()->CallJavascriptFunctionUnsafe(
"instantConfig.getPreferenceValueResult", pref_name_value, arg);
}
}
@@ -143,7 +143,8 @@ void InstantUIMessageHandler::GetDebugInfo(const base::ListValue* args) {
}
data.Set("entries", entries);
- web_ui()->CallJavascriptFunction("instantConfig.getDebugInfoResult", data);
+ web_ui()->CallJavascriptFunctionUnsafe("instantConfig.getDebugInfoResult",
+ data);
#endif
}
« no previous file with comments | « chrome/browser/ui/webui/inspect_ui.cc ('k') | chrome/browser/ui/webui/invalidations_message_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698