summaryrefslogtreecommitdiffstats
path: root/net/disk_cache
diff options
context:
space:
mode:
authorrvargas@google.com <rvargas@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2012-11-05 19:41:46 +0000
committerrvargas@google.com <rvargas@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2012-11-05 19:41:46 +0000
commit90917db4b825aef9bfe192fcca7c7bef948deecd (patch)
treec9898acbcdf84fe7dc7c6df269df0350e401d2e3 /net/disk_cache
parent83af0d6ea7e4b05190dffeaebfd8843832a536fe (diff)
downloadchromium_src-90917db4b825aef9bfe192fcca7c7bef948deecd.zip
chromium_src-90917db4b825aef9bfe192fcca7c7bef948deecd.tar.gz
chromium_src-90917db4b825aef9bfe192fcca7c7bef948deecd.tar.bz2
Disk cache: Don't check the lists of entries at startup.
This patch intended for the beta branch. BUG=159471 TEST=none TBR=gavinp@chromium.org Review URL: https://codereview.chromium.org/11367097 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@165997 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/disk_cache')
-rw-r--r--net/disk_cache/backend_impl.cc3
1 files changed, 0 insertions, 3 deletions
diff --git a/net/disk_cache/backend_impl.cc b/net/disk_cache/backend_impl.cc
index e7fd5d6..2e42c55 100644
--- a/net/disk_cache/backend_impl.cc
+++ b/net/disk_cache/backend_impl.cc
@@ -486,9 +486,6 @@ 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();