diff options
Diffstat (limited to 'net/disk_cache/simple')
-rw-r--r-- | net/disk_cache/simple/simple_backend_impl.cc | 2 | ||||
-rw-r--r-- | net/disk_cache/simple/simple_index_file.cc | 2 | ||||
-rw-r--r-- | net/disk_cache/simple/simple_index_file_unittest.cc | 6 |
3 files changed, 5 insertions, 5 deletions
diff --git a/net/disk_cache/simple/simple_backend_impl.cc b/net/disk_cache/simple/simple_backend_impl.cc index 16c77ed..1302054 100644 --- a/net/disk_cache/simple/simple_backend_impl.cc +++ b/net/disk_cache/simple/simple_backend_impl.cc @@ -94,7 +94,7 @@ void DeleteBackendImpl(disk_cache::Backend** backend, // 2. The Simple Backend has pickled file format for the index making it hacky // to have the magic in the right place. bool FileStructureConsistent(const base::FilePath& path) { - if (!file_util::PathExists(path) && !file_util::CreateDirectory(path)) { + if (!base::PathExists(path) && !file_util::CreateDirectory(path)) { LOG(ERROR) << "Failed to create directory: " << path.LossyDisplayName(); return false; } diff --git a/net/disk_cache/simple/simple_index_file.cc b/net/disk_cache/simple/simple_index_file.cc index 067e9c6..e154553 100644 --- a/net/disk_cache/simple/simple_index_file.cc +++ b/net/disk_cache/simple/simple_index_file.cc @@ -165,7 +165,7 @@ void SimpleIndexFile::SyncLoadIndexEntries( // TODO(felipeg): probably could load a stale index and use it for something. scoped_ptr<SimpleIndex::EntrySet> index_file_entries; - const bool index_file_exists = file_util::PathExists(index_file_path); + const bool index_file_exists = base::PathExists(index_file_path); // Only load if the index is not stale. const bool index_stale = IsIndexFileStale(index_file_path); diff --git a/net/disk_cache/simple/simple_index_file_unittest.cc b/net/disk_cache/simple/simple_index_file_unittest.cc index 8e5b88d..e2493f9 100644 --- a/net/disk_cache/simple/simple_index_file_unittest.cc +++ b/net/disk_cache/simple/simple_index_file_unittest.cc @@ -196,7 +196,7 @@ TEST_F(SimpleIndexFileTest, WriteThenLoadIndex) { simple_index_file.WriteToDisk(entries, kCacheSize, base::TimeTicks(), false); base::RunLoop().RunUntilIdle(); - EXPECT_TRUE(file_util::PathExists(index_path)); + EXPECT_TRUE(base::PathExists(index_path)); } WrappedSimpleIndexFile simple_index_file(temp_dir.path()); @@ -204,7 +204,7 @@ TEST_F(SimpleIndexFileTest, WriteThenLoadIndex) { GetCallback()); base::RunLoop().RunUntilIdle(); - EXPECT_TRUE(file_util::PathExists(index_path)); + EXPECT_TRUE(base::PathExists(index_path)); ASSERT_TRUE(callback_result()); EXPECT_FALSE(callback_result()->force_index_flush); const SimpleIndex::EntrySet* read_entries = @@ -235,7 +235,7 @@ TEST_F(SimpleIndexFileTest, LoadCorruptIndex) { GetCallback()); base::RunLoop().RunUntilIdle(); - EXPECT_FALSE(file_util::PathExists(index_path)); + EXPECT_FALSE(base::PathExists(index_path)); ASSERT_TRUE(callback_result()); EXPECT_TRUE(callback_result()->force_index_flush); EXPECT_TRUE(callback_result()->index_file_entries); |