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

Unified Diff: chrome/browser/ui/webui/voice_search_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/voice_search_ui.cc
diff --git a/chrome/browser/ui/webui/voice_search_ui.cc b/chrome/browser/ui/webui/voice_search_ui.cc
index 39bc94a532adea5f17102dc9e85b1358bad713cc..91eff39f2f89212962f42161c83518b3cfbabc66 100644
--- a/chrome/browser/ui/webui/voice_search_ui.cc
+++ b/chrome/browser/ui/webui/voice_search_ui.cc
@@ -163,7 +163,8 @@ class VoiceSearchDomHandler : public WebUIMessageHandler {
DCHECK(info);
base::DictionaryValue voiceSearchInfo;
voiceSearchInfo.Set("voiceSearchInfo", info.release());
- web_ui()->CallJavascriptFunction("returnVoiceSearchInfo", voiceSearchInfo);
+ web_ui()->CallJavascriptFunctionUnsafe("returnVoiceSearchInfo",
+ voiceSearchInfo);
}
// Fill in the data to be displayed on the page.
« no previous file with comments | « chrome/browser/ui/webui/version_handler_chromeos.cc ('k') | chrome/test/base/web_ui_browser_test_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698