| 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(
|
|
|