From ce0a5a975e1f662d565db36bc890a3c55f325bf7 Mon Sep 17 00:00:00 2001 From: "gavinp@chromium.org" Date: Tue, 27 Dec 2011 19:56:14 +0000 Subject: 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 --- net/http/http_cache_transaction.cc | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'net/http') 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) { -- cgit v1.1