| 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..1da7fb5d22fad2da9d064a7924a1d6bd6a921f56 100644
|
| --- a/chrome/browser/ui/webui/options/language_dictionary_overlay_handler.cc
|
| +++ b/chrome/browser/ui/webui/options/language_dictionary_overlay_handler.cc
|
| @@ -75,12 +75,20 @@ void LanguageDictionaryOverlayHandler::OnCustomDictionaryLoaded() {
|
| ResetDictionaryWords();
|
| }
|
|
|
| -void LanguageDictionaryOverlayHandler::OnCustomDictionaryWordAdded(
|
| - const std::string& word) {
|
| +void LanguageDictionaryOverlayHandler::OnCustomDictionaryWordsAdded(
|
| + const chrome::spellcheck_common::WordList& words) {
|
| + ListValue list_value;
|
| + list_value.AppendStrings(words);
|
| + web_ui()->CallJavascriptFunction("EditDictionaryOverlay.addWords",
|
| + list_value);
|
| }
|
|
|
| -void LanguageDictionaryOverlayHandler::OnCustomDictionaryWordRemoved(
|
| - const std::string& word) {
|
| +void LanguageDictionaryOverlayHandler::OnCustomDictionaryWordsRemoved(
|
| + const chrome::spellcheck_common::WordList& words) {
|
| + ListValue list_value;
|
| + list_value.AppendStrings(words);
|
| + web_ui()->CallJavascriptFunction("EditDictionaryOverlay.removeWords",
|
| + list_value);
|
| }
|
|
|
| void LanguageDictionaryOverlayHandler::ResetDictionaryWords() {
|
|
|