summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorrvargas@google.com <rvargas@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2011-02-02 02:12:26 +0000
committerrvargas@google.com <rvargas@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2011-02-02 02:12:26 +0000
commit371edee6ac1ad2c675f0b37a3b373cbd29adf251 (patch)
tree40a09db29305db2858b788c9998e8b6d9616fcc0
parent34e9947eaa9cf56cd5a106211f344a1a43a40fad (diff)
downloadchromium_src-371edee6ac1ad2c675f0b37a3b373cbd29adf251.zip
chromium_src-371edee6ac1ad2c675f0b37a3b373cbd29adf251.tar.gz
chromium_src-371edee6ac1ad2c675f0b37a3b373cbd29adf251.tar.bz2
Revert 73402 - Disk cache: Disable the throttling experiment.
This is intended for the beta/stable channels. BUG=none TEST=none TBR=gavinp Review URL: http://codereview.chromium.org/6286036 TBR=rvargas@google.com Review URL: http://codereview.chromium.org/6250097 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@73405 0039d316-1c4b-4281-b951-d872f2087c98
-rw-r--r--net/disk_cache/backend_impl.cc13
1 files changed, 12 insertions, 1 deletions
diff --git a/net/disk_cache/backend_impl.cc b/net/disk_cache/backend_impl.cc
index 593d271..0a6ad778 100644
--- a/net/disk_cache/backend_impl.cc
+++ b/net/disk_cache/backend_impl.cc
@@ -180,7 +180,14 @@ bool SetFieldTrialInfo(int size_group) {
new base::FieldTrial("CacheSize", totalProbability, group1, 2011, 6, 30));
trial1->AppendGroup(group1, totalProbability);
- return false;
+ // After June 30, 2011 builds, it will always be in default group.
+ scoped_refptr<base::FieldTrial> trial2(
+ new base::FieldTrial(
+ "CacheThrottle", 100, "CacheThrottle_Default", 2011, 6, 30));
+ int group2a = trial2->AppendGroup("CacheThrottle_On", 10); // 10 % in.
+ trial2->AppendGroup("CacheThrottle_Off", 10); // 10 % control.
+
+ return trial2->group() == group2a;
}
// ------------------------------------------------------------------------
@@ -1133,6 +1140,10 @@ void BackendImpl::OnOperationCompleted(base::TimeDelta elapsed_time) {
if (cache_type() != net::DISK_CACHE)
return;
+ UMA_HISTOGRAM_TIMES(base::FieldTrial::MakeName("DiskCache.TotalIOTime",
+ "CacheThrottle").data(),
+ elapsed_time);
+
if (!throttle_requests_)
return;