diff options
Diffstat (limited to 'chrome/browser/spellchecker')
3 files changed, 4 insertions, 4 deletions
diff --git a/chrome/browser/spellchecker/spellcheck_custom_dictionary.cc b/chrome/browser/spellchecker/spellcheck_custom_dictionary.cc index cc3db9a..c5c8163 100644 --- a/chrome/browser/spellchecker/spellcheck_custom_dictionary.cc +++ b/chrome/browser/spellchecker/spellcheck_custom_dictionary.cc @@ -96,7 +96,7 @@ void LoadDictionaryFileReliably(WordList& custom_words, return; // Checksum is not valid. See if there's a backup. base::FilePath backup = path.AddExtension(BACKUP_EXTENSION); - if (!file_util::PathExists(backup)) + if (!base::PathExists(backup)) return; // Load the backup and verify its checksum. if (LoadFile(backup, custom_words) != VALID_CHECKSUM) diff --git a/chrome/browser/spellchecker/spellcheck_hunspell_dictionary.cc b/chrome/browser/spellchecker/spellcheck_hunspell_dictionary.cc index a6f5169..67dc923 100644 --- a/chrome/browser/spellchecker/spellcheck_hunspell_dictionary.cc +++ b/chrome/browser/spellchecker/spellcheck_hunspell_dictionary.cc @@ -80,7 +80,7 @@ scoped_ptr<DictionaryFile> OpenDictionaryFile( base::FilePath user_dir; PathService::Get(chrome::DIR_USER_DATA, &user_dir); base::FilePath fallback = user_dir.Append(file->path.BaseName()); - if (!file_util::PathExists(file->path) && file_util::PathExists(fallback)) + if (!base::PathExists(file->path) && base::PathExists(fallback)) file->path = fallback; #endif @@ -89,7 +89,7 @@ scoped_ptr<DictionaryFile> OpenDictionaryFile( bool bdict_is_valid; { base::MemoryMappedFile map; - bdict_is_valid = file_util::PathExists(file->path) && + bdict_is_valid = base::PathExists(file->path) && map.Initialize(file->path) && hunspell::BDict::Verify(reinterpret_cast<const char*>(map.data()), map.length()); diff --git a/chrome/browser/spellchecker/spellcheck_service_browsertest.cc b/chrome/browser/spellchecker/spellcheck_service_browsertest.cc index 5130600..45754ce 100644 --- a/chrome/browser/spellchecker/spellcheck_service_browsertest.cc +++ b/chrome/browser/spellchecker/spellcheck_service_browsertest.cc @@ -78,7 +78,7 @@ IN_PROC_BROWSER_TEST_F(SpellcheckServiceBrowserTest, DeleteCorruptedBDICT) { content::RunAllPendingInMessageLoop(content::BrowserThread::UI); EXPECT_EQ(SpellcheckService::BDICT_CORRUPTED, SpellcheckService::GetStatusEvent()); - if (file_util::PathExists(bdict_path)) { + if (base::PathExists(bdict_path)) { ADD_FAILURE(); EXPECT_TRUE(base::Delete(bdict_path, true)); } |