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..c5bd3dbd7c9334b9e1928118fbb8035f1a8f5059 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,12 @@ void LanguageDictionaryOverlayHandler::ResetDictionaryWords() { |
} |
ListValue list_value; |
- list_value.AppendStrings(dictionary_->GetWords()); |
+ const chrome::spellcheck_common::WordSet& words = dictionary_->GetWords(); |
+ for (chrome::spellcheck_common::WordSet::iterator it = words.begin(); |
Dan Beam
2013/05/24 02:57:51
nit: const_iterator
Dan Beam
2013/05/24 02:57:51
wouldn't it be nice to use auto here?! what a mou
please use gerrit instead
2013/05/24 16:20:01
Done.
|
+ it != words.end(); |
Dan Beam
2013/05/24 02:57:51
nit: it's probably pretty normal to put
it != w
please use gerrit instead
2013/05/24 16:20:01
Done.
|
+ ++it) { |
+ list_value.AppendString(*it); |
+ } |
web_ui()->CallJavascriptFunction("EditDictionaryOverlay.setWordList", |
list_value); |
} |