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 32a5eccc4102513733c0b6ad892d08624c657309..9b3b091cdb90bac8389894513bacc4f970f88642 100644 |
--- a/chrome/browser/ui/webui/options/language_dictionary_overlay_handler.cc |
+++ b/chrome/browser/ui/webui/options/language_dictionary_overlay_handler.cc |
@@ -77,10 +77,22 @@ void LanguageDictionaryOverlayHandler::OnCustomDictionaryLoaded() { |
void LanguageDictionaryOverlayHandler::OnCustomDictionaryWordAdded( |
const std::string& word) { |
+ ListValue add_words; |
+ ListValue remove_words; |
+ add_words.AppendString(word); |
+ web_ui()->CallJavascriptFunction("EditDictionaryOverlay.updateWords", |
+ add_words, |
+ remove_words); |
} |
void LanguageDictionaryOverlayHandler::OnCustomDictionaryWordRemoved( |
const std::string& word) { |
+ ListValue add_words; |
+ ListValue remove_words; |
+ remove_words.AppendString(word); |
+ web_ui()->CallJavascriptFunction("EditDictionaryOverlay.updateWords", |
+ add_words, |
+ remove_words); |
} |
void LanguageDictionaryOverlayHandler::ResetDictionaryWords() { |