summaryrefslogtreecommitdiffstats
path: root/net/http
diff options
context:
space:
mode:
authorgavinp@chromium.org <gavinp@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-12-27 19:56:14 +0000
committergavinp@chromium.org <gavinp@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-12-27 19:56:14 +0000
commitce0a5a975e1f662d565db36bc890a3c55f325bf7 (patch)
tree85f2f2af4ed6f00d5313ad314c0387d76f069e74 /net/http
parent243887b36ec8b3ac78c72b3327efee75886f4997 (diff)
downloadchromium_src-ce0a5a975e1f662d565db36bc890a3c55f325bf7.zip
chromium_src-ce0a5a975e1f662d565db36bc890a3c55f325bf7.tar.gz
chromium_src-ce0a5a975e1f662d565db36bc890a3c55f325bf7.tar.bz2
Turn on prefetching again
In issue 8965032, I rename the Prerender field trial to make way for the Prefetch one. This CL turns the key, and makes prefetching active again in a 50/50 field trial in the Dev/Canary channels. BUG=107897 Review URL: http://codereview.chromium.org/9018034 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@115840 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/http')
-rw-r--r--net/http/http_cache_transaction.cc7
1 files changed, 7 insertions, 0 deletions
diff --git a/net/http/http_cache_transaction.cc b/net/http/http_cache_transaction.cc
index d9f4f49..f5f7d3c 100644
--- a/net/http/http_cache_transaction.cc
+++ b/net/http/http_cache_transaction.cc
@@ -939,6 +939,13 @@ int HttpCache::Transaction::DoAddToEntryComplete(int result) {
const base::TimeDelta entry_lock_wait =
base::TimeTicks::Now() - entry_lock_waiting_since_;
UMA_HISTOGRAM_TIMES("HttpCache.EntryLockWait", entry_lock_wait);
+ static const bool prefetching_fieldtrial =
+ base::FieldTrialList::TrialExists("Prefetch");
+ if (prefetching_fieldtrial) {
+ UMA_HISTOGRAM_TIMES(
+ base::FieldTrial::MakeName("HttpCache.EntryLockWait", "Prefetch"),
+ entry_lock_wait);
+ }
static const bool prerendering_fieldtrial =
base::FieldTrialList::TrialExists("Prerender");
if (prerendering_fieldtrial) {