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

Unified Diff: chrome/browser/ui/webui/options/language_dictionary_overlay_handler.cc

Issue 15940004: Add HasWord(string) method to SpellcheckCustomDictionary (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Clarified message direction (browser-to-renderer) in spellcheck_messages.h Created 7 years, 7 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
« no previous file with comments | « chrome/browser/sync/test/integration/dictionary_helper.cc ('k') | chrome/common/spellcheck_common.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 11f17c19e9227a70849259b4995c357f58eecc93..d6be0e40dffc1623a66ffdd14de532ab32b01954 100644
--- a/chrome/browser/ui/webui/options/language_dictionary_overlay_handler.cc
+++ b/chrome/browser/ui/webui/options/language_dictionary_overlay_handler.cc
@@ -91,7 +91,11 @@ void LanguageDictionaryOverlayHandler::ResetDictionaryWords() {
}
ListValue list_value;
- list_value.AppendStrings(dictionary_->GetWords());
+ const chrome::spellcheck_common::WordSet& words = dictionary_->GetWords();
+ for (chrome::spellcheck_common::WordSet::const_iterator it = words.begin();
+ it != words.end(); ++it) {
+ list_value.AppendString(*it);
+ }
web_ui()->CallJavascriptFunction("EditDictionaryOverlay.setWordList",
list_value);
}
« no previous file with comments | « chrome/browser/sync/test/integration/dictionary_helper.cc ('k') | chrome/common/spellcheck_common.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698