summaryrefslogtreecommitdiffstats
path: root/net/disk_cache/disk_cache_test_base.cc
diff options
context:
space:
mode:
authorrvargas@google.com <rvargas@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-09-29 18:21:34 +0000
committerrvargas@google.com <rvargas@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-09-29 18:21:34 +0000
commit813149f8eae2381d0e788c611035574fbb1fd4c1 (patch)
tree6e281c1176ad1246b56d73de76e283b9fb009bce /net/disk_cache/disk_cache_test_base.cc
parentecf100830533911b799a5806d69f1cc0bd5d91e3 (diff)
downloadchromium_src-813149f8eae2381d0e788c611035574fbb1fd4c1.zip
chromium_src-813149f8eae2381d0e788c611035574fbb1fd4c1.tar.gz
chromium_src-813149f8eae2381d0e788c611035574fbb1fd4c1.tar.bz2
Disk cache: End the experiment and use the new eviction
algorithm by default. BUG=none TEST=none Review URL: http://codereview.chromium.org/248022 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@27514 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/disk_cache/disk_cache_test_base.cc')
-rw-r--r--net/disk_cache/disk_cache_test_base.cc15
1 files changed, 5 insertions, 10 deletions
diff --git a/net/disk_cache/disk_cache_test_base.cc b/net/disk_cache/disk_cache_test_base.cc
index db6af64..a148f4c 100644
--- a/net/disk_cache/disk_cache_test_base.cc
+++ b/net/disk_cache/disk_cache_test_base.cc
@@ -56,17 +56,12 @@ void DiskCacheTestWithCache::InitDiskCache() {
if (first_cleanup_)
ASSERT_TRUE(DeleteCache(path.c_str()));
- if (!implementation_) {
- cache_ = disk_cache::CreateCacheBackend(path, force_creation_, size_,
- net::DISK_CACHE);
- disk_cache::BackendImpl* impl =
- static_cast<disk_cache::BackendImpl*>(cache_);
- if (impl)
- impl->SetFlags(disk_cache::kNoRandom);
- return;
- }
+ if (implementation_)
+ return InitDiskCacheImpl(path);
- InitDiskCacheImpl(path);
+ cache_ = disk_cache::BackendImpl::CreateBackend(path, force_creation_, size_,
+ net::DISK_CACHE,
+ disk_cache::kNoRandom);
}
void DiskCacheTestWithCache::InitDiskCacheImpl(const std::wstring& path) {