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

Unified Diff: net/tools/dump_cache/dump_cache.cc

Issue 17507006: Disk cache v3 ref2 Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Incl IndexTable cl Created 7 years, 1 month 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/net.gyp ('k') | net/tools/dump_cache/dump_files.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/tools/dump_cache/dump_cache.cc
===================================================================
--- net/tools/dump_cache/dump_cache.cc (revision 232523)
+++ net/tools/dump_cache/dump_cache.cc (working copy)
@@ -129,7 +129,7 @@
return FILE_ACCESS_ERROR;
bool slave_required = upgrade;
- if (version != disk_cache::kCurrentVersion >> 16) {
+ if ((version != 2) && (version != 3)) {
if (command_line.HasSwitch(kSlave)) {
printf("Unknown version\n");
return UNKNOWN_VERSION;
@@ -177,8 +177,12 @@
return ALL_GOOD;
}
- if (command_line.HasSwitch(kDumpContents))
- return DumpContents(input_path);
+ if (command_line.HasSwitch(kDumpContents)) {
+ if (version == 3)
+ return DumpContentsV3(input_path);
+ else
+ return DumpContentsV2(input_path);
+ }
if (command_line.HasSwitch(kDumpHeaders))
return DumpHeaders(input_path);
« no previous file with comments | « net/net.gyp ('k') | net/tools/dump_cache/dump_files.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698