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

Unified Diff: net/disk_cache/rankings.cc

Issue 15203004: Disk cache: Reference CL for the implementation of file format version 3. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: IndexTable review 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/disk_cache/rankings.h ('k') | net/disk_cache/sparse_control.cc » ('j') | 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 199883)
+++ net/disk_cache/rankings.cc (working copy)
@@ -6,6 +6,7 @@
#include "base/metrics/histogram.h"
#include "net/disk_cache/backend_impl.h"
+#include "net/disk_cache/disk_format.h"
#include "net/disk_cache/entry_impl.h"
#include "net/disk_cache/errors.h"
#include "net/disk_cache/histogram_macros.h"
@@ -532,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;
« no previous file with comments | « net/disk_cache/rankings.h ('k') | net/disk_cache/sparse_control.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698