summaryrefslogtreecommitdiffstats
path: root/net/disk_cache
diff options
context:
space:
mode:
authorrvargas@google.com <rvargas@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2012-09-24 21:54:30 +0000
committerrvargas@google.com <rvargas@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2012-09-24 21:54:30 +0000
commitc38d1bb63b46eb4dead7310b45ff2ced324cb147 (patch)
treedbe43cfe10d476b3e15f6d0041f132c83c111a96 /net/disk_cache
parent683f766479a457a74bbdb2316d9e7068c68bb08a (diff)
downloadchromium_src-c38d1bb63b46eb4dead7310b45ff2ced324cb147.zip
chromium_src-c38d1bb63b46eb4dead7310b45ff2ced324cb147.tar.gz
chromium_src-c38d1bb63b46eb4dead7310b45ff2ced324cb147.tar.bz2
Revert 158403 - Disk cache: Disable the self check of ranking lists.
For the beta branch. BUG=152040 TEST=none TBR=gavinp@chromium.org Review URL: https://codereview.chromium.org/10982011 TBR=rvargas@google.com Review URL: https://codereview.chromium.org/10988005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@158406 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/disk_cache')
-rw-r--r--net/disk_cache/backend_impl.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/net/disk_cache/backend_impl.cc b/net/disk_cache/backend_impl.cc
index 2ce72f2..2de5952 100644
--- a/net/disk_cache/backend_impl.cc
+++ b/net/disk_cache/backend_impl.cc
@@ -486,6 +486,9 @@ int BackendImpl::SyncInit() {
disabled_ = !rankings_.Init(this, new_eviction_);
+ if (!disabled_ && !(user_flags_ & kNoRandom) && base::RandInt(0, 99) < 2)
+ rankings_.SelfCheck(); // Ignore return value for now.
+
#if defined(STRESS_CACHE_EXTENDED_VALIDATION)
trace_object_->EnableTracing(false);
int sc = SelfCheck();