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

Unified Diff: net/disk_cache/simple/simple_index_file.cc

Issue 23983005: SimpleCache: merge the first and second stream in one file (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed gavin's comments Created 7 years, 3 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
« no previous file with comments | « net/disk_cache/simple/simple_entry_impl.cc ('k') | net/disk_cache/simple/simple_synchronous_entry.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/disk_cache/simple/simple_index_file.cc
diff --git a/net/disk_cache/simple/simple_index_file.cc b/net/disk_cache/simple/simple_index_file.cc
index 61318c83b933718c8d760332868d161b74fcd2bc..488d645c34f6aabf2dcac3041508470cc6103dee 100644
--- a/net/disk_cache/simple/simple_index_file.cc
+++ b/net/disk_cache/simple/simple_index_file.cc
@@ -117,7 +117,7 @@ void ProcessEntryFile(SimpleIndex::EntrySet* entries,
EntryMetadata(last_used_time, file_size),
entries);
} else {
- // Summing up the total size of the entry through all the *_[0-2] files
+ // Summing up the total size of the entry through all the *_[0-1] files
it->second.SetEntrySize(it->second.GetEntrySize() + file_size);
}
}
@@ -411,10 +411,6 @@ void SimpleIndexFile::SyncRestoreFromDisk(
out_result->Reset();
SimpleIndex::EntrySet* entries = &out_result->entries;
- // TODO(felipeg,gavinp): Fix this once we have a one-file per entry format.
- COMPILE_ASSERT(kSimpleEntryFileCount == 3,
- file_pattern_must_match_file_count);
-
const bool did_succeed = TraverseCacheDirectory(
cache_directory, base::Bind(&ProcessEntryFile, entries));
if (!did_succeed) {
« no previous file with comments | « net/disk_cache/simple/simple_entry_impl.cc ('k') | net/disk_cache/simple/simple_synchronous_entry.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698