Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(269)

Unified Diff: net/disk_cache/disk_cache_test_base.cc

Issue 160485: Disk cache: Open the disk cache experiment for new users.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 11 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « net/disk_cache/backend_impl.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/disk_cache/disk_cache_test_base.cc
===================================================================
--- net/disk_cache/disk_cache_test_base.cc (revision 22075)
+++ net/disk_cache/disk_cache_test_base.cc (working copy)
@@ -59,6 +59,10 @@
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;
}
@@ -80,6 +84,7 @@
if (new_eviction_)
cache_impl_->SetNewEviction();
+ cache_impl_->SetFlags(disk_cache::kNoRandom);
ASSERT_TRUE(cache_impl_->Init());
}
« no previous file with comments | « net/disk_cache/backend_impl.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698