diff options
Diffstat (limited to 'chrome/browser/spellchecker/spellcheck_custom_dictionary.cc')
-rw-r--r-- | chrome/browser/spellchecker/spellcheck_custom_dictionary.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/chrome/browser/spellchecker/spellcheck_custom_dictionary.cc b/chrome/browser/spellchecker/spellcheck_custom_dictionary.cc index a34c7b6..e7b9140 100644 --- a/chrome/browser/spellchecker/spellcheck_custom_dictionary.cc +++ b/chrome/browser/spellchecker/spellcheck_custom_dictionary.cc @@ -76,7 +76,7 @@ ChecksumStatus LoadFile(const base::FilePath& file_path, WordList& words) { // Returns true for invalid words and false for valid words. bool IsInvalidWord(const std::string& word) { std::string tmp; - return !IsStringUTF8(word) || + return !base::IsStringUTF8(word) || word.length() > chrome::spellcheck_common::MAX_CUSTOM_DICTIONARY_WORD_BYTES || word.empty() || |