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

Unified Diff: chrome/browser/ui/webui/options/language_dictionary_overlay_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/language_dictionary_overlay_handler.cc
diff --git a/chrome/browser/ui/webui/options/language_dictionary_overlay_handler.cc b/chrome/browser/ui/webui/options/language_dictionary_overlay_handler.cc
index 4ce1839def83fcf5b0aed8b655c9af2a46c72d6e..247383effce417cae3fc6aadad75c7c0cf5cc4a0 100644
--- a/chrome/browser/ui/webui/options/language_dictionary_overlay_handler.cc
+++ b/chrome/browser/ui/webui/options/language_dictionary_overlay_handler.cc
@@ -84,8 +84,8 @@ void LanguageDictionaryOverlayHandler::OnCustomDictionaryChanged(
remove_words.AppendString(word);
}
- web_ui()->CallJavascriptFunction("EditDictionaryOverlay.updateWords",
- add_words, remove_words);
+ web_ui()->CallJavascriptFunctionUnsafe("EditDictionaryOverlay.updateWords",
+ add_words, remove_words);
}
void LanguageDictionaryOverlayHandler::ResetDictionaryWords() {
@@ -103,8 +103,8 @@ void LanguageDictionaryOverlayHandler::ResetDictionaryWords() {
for (const std::string& word : dictionary_->GetWords()) {
list_value.AppendString(word);
}
- web_ui()->CallJavascriptFunction("EditDictionaryOverlay.setWordList",
- list_value);
+ web_ui()->CallJavascriptFunctionUnsafe("EditDictionaryOverlay.setWordList",
+ list_value);
}
void LanguageDictionaryOverlayHandler::RefreshWords(

Powered by Google App Engine
This is Rietveld 408576698