diff options
author | willchan@chromium.org <willchan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-04-20 18:39:08 +0000 |
---|---|---|
committer | willchan@chromium.org <willchan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-04-20 18:39:08 +0000 |
commit | 510e854f122deaedd5ba31af188105131a4c3b7d (patch) | |
tree | 03e6cbdeafa6529ab491fb85f05f6955ba713a70 /chrome/browser/browser_main.cc | |
parent | 8f1915d7a94456f029a25abdc64f9a5f6bdd1711 (diff) | |
download | chromium_src-510e854f122deaedd5ba31af188105131a4c3b7d.zip chromium_src-510e854f122deaedd5ba31af188105131a4c3b7d.tar.gz chromium_src-510e854f122deaedd5ba31af188105131a4c3b7d.tar.bz2 |
Add a FieldTrial and histograms for measuring impact of http prioritization.
Currently this FieldTrial is measuring the transaction latencies of requests, separated into frame/subframe requests vs subresource requests. We run a 2% holdback experiment where the people in the holdback don't have http prioritization enabled. Add class static method to ResourceDispatcherHost to disable http prioritization.
BUG=10486
Review URL: http://codereview.chromium.org/67119
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@14040 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/browser_main.cc')
-rw-r--r-- | chrome/browser/browser_main.cc | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/chrome/browser/browser_main.cc b/chrome/browser/browser_main.cc index 9e9d656..83422e6 100644 --- a/chrome/browser/browser_main.cc +++ b/chrome/browser/browser_main.cc @@ -478,6 +478,15 @@ int BrowserMain(const MainFunctionParams& parameters) { net::HttpNetworkSession::set_max_sockets_per_group(4); } + scoped_refptr<FieldTrial> http_prioritization_trial = + new FieldTrial("HttpPrioritization", 100); + // Put 10% of people in the fallback experiment with the http prioritization + // code disabled. + const int holdback_group = + http_prioritization_trial->AppendGroup("_no_http_prioritization", 10); + if (http_prioritization_trial->group() == holdback_group) { + ResourceDispatcherHost::DisableHttpPrioritization(); + } #if defined(OS_WIN) // Init common control sex. |