diff options
Diffstat (limited to 'chromium/net/disk_cache/simple/simple_index_file.cc')
-rw-r--r-- | chromium/net/disk_cache/simple/simple_index_file.cc | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/chromium/net/disk_cache/simple/simple_index_file.cc b/chromium/net/disk_cache/simple/simple_index_file.cc index abd9f7a7ae0..0b375f4a6cc 100644 --- a/chromium/net/disk_cache/simple/simple_index_file.cc +++ b/chromium/net/disk_cache/simple/simple_index_file.cc @@ -66,7 +66,7 @@ void UmaRecordIndexInitMethod(IndexInitMethod method, } bool WritePickleFile(Pickle* pickle, const base::FilePath& file_name) { - int bytes_written = file_util::WriteFile( + int bytes_written = base::WriteFile( file_name, static_cast<const char*>(pickle->data()), pickle->size()); if (bytes_written != implicit_cast<int>(pickle->size())) { base::DeleteFile(file_name, /* recursive = */ false); @@ -95,7 +95,7 @@ void ProcessEntryFile(SimpleIndex::EntrySet* entries, return; } - base::PlatformFileInfo file_info; + base::File::Info file_info; if (!base::GetFileInfo(file_path, &file_info)) { LOG(ERROR) << "Could not get file info for " << file_path.value(); return; @@ -195,7 +195,6 @@ void SimpleIndexFile::SyncWriteToDisk(net::CacheType cache_type, // part of a Create operation does not fit into the time budget for the index // flush delay. This simple approach will be reconsidered if it does not allow // for maintaining freshness. - base::PlatformFileInfo cache_dir_info; base::Time cache_dir_mtime; if (!simple_util::GetMTime(cache_directory, &cache_dir_mtime)) { LOG(ERROR) << "Could obtain information about cache age"; @@ -434,7 +433,7 @@ void SimpleIndexFile::SyncRestoreFromDisk( const base::FilePath& cache_directory, const base::FilePath& index_file_path, SimpleIndexLoadResult* out_result) { - LOG(INFO) << "Simple Cache Index is being restored from disk."; + VLOG(1) << "Simple Cache Index is being restored from disk."; base::DeleteFile(index_file_path, /* recursive = */ false); out_result->Reset(); SimpleIndex::EntrySet* entries = &out_result->entries; |