summaryrefslogtreecommitdiffstats
path: root/net/disk_cache
diff options
context:
space:
mode:
authorrvargas@google.com <rvargas@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2012-05-31 22:50:16 +0000
committerrvargas@google.com <rvargas@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2012-05-31 22:50:16 +0000
commit4e263fcb5c725adc14863d08f9a7259f6d682cbe (patch)
treea63998fb3dacff9ec6b341ba7e76ffa7e69435ba /net/disk_cache
parent03fed45321145f142ca6e6ffac908031288fc6ca (diff)
downloadchromium_src-4e263fcb5c725adc14863d08f9a7259f6d682cbe.zip
chromium_src-4e263fcb5c725adc14863d08f9a7259f6d682cbe.tar.gz
chromium_src-4e263fcb5c725adc14863d08f9a7259f6d682cbe.tar.bz2
Revert 139886 - Disk cache: Don't check the list of entries at startup.
This is intended for the beta channel. BUG=130443 TEST=none Review URL: https://chromiumcodereview.appspot.com/10446092 TBR=rvargas@google.com Review URL: https://chromiumcodereview.appspot.com/10442120 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@139904 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 c70763c..8ed1a4e 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();