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

Unified Diff: chrome/browser/spellchecker/spellcheck_custom_dictionary.h

Issue 11434043: Remove duplicate words from custom spelling dictionary on load (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 8 years, 1 month 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
Index: chrome/browser/spellchecker/spellcheck_custom_dictionary.h
diff --git a/chrome/browser/spellchecker/spellcheck_custom_dictionary.h b/chrome/browser/spellchecker/spellcheck_custom_dictionary.h
index 1c244e7e123c19ec03e8132d200b1502f1a1697a..3aa5748131c7002df9477eaf5517b5913100794c 100644
--- a/chrome/browser/spellchecker/spellcheck_custom_dictionary.h
+++ b/chrome/browser/spellchecker/spellcheck_custom_dictionary.h
@@ -32,6 +32,9 @@ class SpellcheckCustomDictionary : public SpellcheckDictionary {
const chrome::spellcheck_common::WordList& GetWords() const;
+ // Populates the given vector with the list of words in the custom dictionary
groby-ooo-7-16 2012/11/29 23:35:47 Populates |custom_words|...
please use gerrit instead 2012/11/29 23:48:03 Done.
+ // file. Makes sure that the custom dictionary file is sorted and does not
+ // have duplicates.
void LoadDictionaryIntoCustomWordList(
chrome::spellcheck_common::WordList* custom_words);
@@ -48,7 +51,7 @@ class SpellcheckCustomDictionary : public SpellcheckDictionary {
void WriteWordToCustomDictionary(const std::string& word);
- // Removes the given word from the custom words list and inform renderer of
+ // Removes the given word from the custom words list and informs renderer of
// the update. Returns false for words that are not in the dictionary.
bool RemoveWord(const std::string& word);

Powered by Google App Engine
This is Rietveld 408576698