| Index: net/tools/dump_cache/dump_cache.cc
|
| ===================================================================
|
| --- net/tools/dump_cache/dump_cache.cc (revision 199883)
|
| +++ net/tools/dump_cache/dump_cache.cc (working copy)
|
| @@ -125,7 +125,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;
|
| @@ -173,8 +173,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);
|
|
|