summaryrefslogtreecommitdiffstats
path: root/net/disk_cache
diff options
context:
space:
mode:
authorrvargas@google.com <rvargas@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2012-06-29 19:07:33 +0000
committerrvargas@google.com <rvargas@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2012-06-29 19:07:33 +0000
commitf62c413930448d44cd944bfc152780bdeb4212fa (patch)
treea6e3b9519b717aaa8ff0f19298c1554fad5f861c /net/disk_cache
parent180aad7c121d6ad743e639769fc1b6c39b5ad5b5 (diff)
downloadchromium_src-f62c413930448d44cd944bfc152780bdeb4212fa.zip
chromium_src-f62c413930448d44cd944bfc152780bdeb4212fa.tar.gz
chromium_src-f62c413930448d44cd944bfc152780bdeb4212fa.tar.bz2
Revert 144947 - Disk cache: don't check the list of entries at startup.
This is meant for M21 Satble BUG=135233 TEST=none TBR=gavinp@chromium.org Review URL: https://chromiumcodereview.appspot.com/10690049 TBR=rvargas@google.com Review URL: https://chromiumcodereview.appspot.com/10701044 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@144949 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 dc784f7..00970b7 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();