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

Unified Diff: net/disk_cache/rankings.cc

Issue 16837003: Disk cache: Update Addr to handle file format version 3. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 7 years, 6 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
« net/disk_cache/addr.cc ('K') | « net/disk_cache/entry_impl.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/disk_cache/rankings.cc
===================================================================
--- net/disk_cache/rankings.cc (revision 205902)
+++ net/disk_cache/rankings.cc (working copy)
@@ -533,8 +533,8 @@
Addr next_addr(data->next);
Addr prev_addr(data->prev);
- if (!next_addr.SanityCheck() || next_addr.file_type() != RANKINGS ||
- !prev_addr.SanityCheck() || prev_addr.file_type() != RANKINGS)
+ if (!next_addr.SanityCheckV2() || next_addr.file_type() != RANKINGS ||
+ !prev_addr.SanityCheckV2() || prev_addr.file_type() != RANKINGS)
return false;
return true;
« net/disk_cache/addr.cc ('K') | « net/disk_cache/entry_impl.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698