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

Unified Diff: chrome/browser/spellchecker/spellcheck_hunspell_dictionary.cc

Issue 320513002: Remove base::kInvalidPlatformFileValue from Chrome (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 6 months 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_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 {

Powered by Google App Engine
This is Rietveld 408576698