| Index: chrome/browser/spellchecker/spellcheck_hunspell_dictionary.cc
|
| diff --git a/chrome/browser/spellchecker/spellcheck_hunspell_dictionary.cc b/chrome/browser/spellchecker/spellcheck_hunspell_dictionary.cc
|
| index 8b6251473bba8180338acaddfca083b84b459eaa..23377036c27f5ea89276efcbe9b3f74f85ee4928 100644
|
| --- a/chrome/browser/spellchecker/spellcheck_hunspell_dictionary.cc
|
| +++ b/chrome/browser/spellchecker/spellcheck_hunspell_dictionary.cc
|
| @@ -138,12 +138,11 @@ void SpellcheckHunspellDictionary::RetryDownloadDictionary(
|
| }
|
|
|
| bool SpellcheckHunspellDictionary::IsReady() const {
|
| - return GetDictionaryFile() !=
|
| - base::kInvalidPlatformFileValue || IsUsingPlatformChecker();
|
| + return GetDictionaryFile().IsValid() || IsUsingPlatformChecker();
|
| }
|
|
|
| -base::PlatformFile SpellcheckHunspellDictionary::GetDictionaryFile() const {
|
| - return dictionary_file_.file.GetPlatformFile();
|
| +const base::File& SpellcheckHunspellDictionary::GetDictionaryFile() const {
|
| + return dictionary_file_.file;
|
| }
|
|
|
| const std::string& SpellcheckHunspellDictionary::GetLanguage() const {
|
|
|