diff options
author | rvargas@google.com <rvargas@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-11-05 19:55:53 +0000 |
---|---|---|
committer | rvargas@google.com <rvargas@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-11-05 19:55:53 +0000 |
commit | 331d8f42375a3e7c218eed442ce3446db17714aa (patch) | |
tree | 3bde5176d4827cd55c17d8e32754b8738f3e891e /net/disk_cache | |
parent | 2fa1f1770ecbf20f8aef632ec239eae288ed190f (diff) | |
download | chromium_src-331d8f42375a3e7c218eed442ce3446db17714aa.zip chromium_src-331d8f42375a3e7c218eed442ce3446db17714aa.tar.gz chromium_src-331d8f42375a3e7c218eed442ce3446db17714aa.tar.bz2 |
Revert 165997 - 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
TBR=rvargas@google.com
Review URL: https://codereview.chromium.org/11358101
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@166002 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/disk_cache')
-rw-r--r-- | net/disk_cache/backend_impl.cc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/net/disk_cache/backend_impl.cc b/net/disk_cache/backend_impl.cc index 2e42c55..e7fd5d6 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(); |