| Index: chrome/browser/spellchecker/spellcheck_custom_dictionary.cc
|
| diff --git a/chrome/browser/spellchecker/spellcheck_custom_dictionary.cc b/chrome/browser/spellchecker/spellcheck_custom_dictionary.cc
|
| index 1d8ce849a9c0aec18c9d422a8e5e469b2e34a4a1..b793b27ab9d307ac3ce32e47f4e30633f19593e1 100644
|
| --- a/chrome/browser/spellchecker/spellcheck_custom_dictionary.cc
|
| +++ b/chrome/browser/spellchecker/spellcheck_custom_dictionary.cc
|
| @@ -49,8 +49,10 @@ void SpellcheckCustomDictionary::LoadDictionaryIntoCustomWordList(
|
|
|
| std::string contents;
|
| file_util::ReadFileToString(custom_dictionary_path_, &contents);
|
| - if (contents.empty())
|
| + if (contents.empty()) {
|
| + custom_words->clear();
|
| return;
|
| + }
|
|
|
| base::SplitString(contents, '\n', custom_words);
|
| // Clear out empty words.
|
|
|