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

Unified Diff: chrome/browser/chrome_browser_field_trials.cc

Issue 11228007: Remove the ConnCountImpact FieldTrial code. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 8 years, 2 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 | « chrome/browser/chrome_browser_field_trials.h ('k') | chrome/renderer/page_load_histograms.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chrome_browser_field_trials.cc
diff --git a/chrome/browser/chrome_browser_field_trials.cc b/chrome/browser/chrome_browser_field_trials.cc
index c807bcf41ffa946f2ef398a0ac633d6b8ff1e6b3..c68759cdadd8a80fc29261e253c1fb07592ffe30 100644
--- a/chrome/browser/chrome_browser_field_trials.cc
+++ b/chrome/browser/chrome_browser_field_trials.cc
@@ -106,9 +106,6 @@ ChromeBrowserFieldTrials::~ChromeBrowserFieldTrials() {
}
void ChromeBrowserFieldTrials::SetupFieldTrials(bool proxy_policy_is_set) {
- // Note: make sure to call ConnectionFieldTrial() before
- // ProxyConnectionsFieldTrial().
- ConnectionFieldTrial();
SocketTimeoutFieldTrial();
// If a policy is defining the number of active connections this field test
// shoud not be performed.
@@ -134,57 +131,6 @@ void ChromeBrowserFieldTrials::SetupFieldTrials(bool proxy_policy_is_set) {
#endif
}
-// This is an A/B test for the maximum number of persistent connections per
-// host. Currently Chrome, Firefox, and IE8 have this value set at 6. Safari
-// uses 4, and Fasterfox (a plugin for Firefox that supposedly configures it to
-// run faster) uses 8. We would like to see how much of an effect this value has
-// on browsing. Too large a value might cause us to run into SYN flood detection
-// mechanisms.
-void ChromeBrowserFieldTrials::ConnectionFieldTrial() {
- const base::FieldTrial::Probability kConnectDivisor = 100;
- const base::FieldTrial::Probability kConnectProbability = 1; // 1% prob.
-
- // This (6) is the current default value. Having this group declared here
- // makes it straightforward to modify |kConnectProbability| such that the same
- // probability value will be assigned to all the other groups, while
- // preserving the remainder of the of probability space to the default value.
- int connect_6 = -1;
-
- // After June 30, 2011 builds, it will always be in default group.
- scoped_refptr<base::FieldTrial> connect_trial(
- base::FieldTrialList::FactoryGetFieldTrial(
- "ConnCountImpact", kConnectDivisor, "conn_count_6", 2011, 6, 30,
- &connect_6));
-
- const int connect_5 = connect_trial->AppendGroup("conn_count_5",
- kConnectProbability);
- const int connect_7 = connect_trial->AppendGroup("conn_count_7",
- kConnectProbability);
- const int connect_8 = connect_trial->AppendGroup("conn_count_8",
- kConnectProbability);
- const int connect_9 = connect_trial->AppendGroup("conn_count_9",
- kConnectProbability);
-
- const int connect_trial_group = connect_trial->group();
-
- int max_sockets = 0;
- if (connect_trial_group == connect_5) {
- max_sockets = 5;
- } else if (connect_trial_group == connect_6) {
- max_sockets = 6;
SteveT 2012/10/19 18:59:55 I'm guessing I need to set this as a constant some
- } else if (connect_trial_group == connect_7) {
- max_sockets = 7;
- } else if (connect_trial_group == connect_8) {
- max_sockets = 8;
- } else if (connect_trial_group == connect_9) {
- max_sockets = 9;
- } else {
- NOTREACHED();
- }
- net::ClientSocketPoolManager::set_max_sockets_per_group(
- net::HttpNetworkSession::NORMAL_SOCKET_POOL, max_sockets);
-}
-
// A/B test for determining a value for unused socket timeout. Currently the
// timeout defaults to 10 seconds. Having this value set too low won't allow us
// to take advantage of idle sockets. Setting it to too high could possibly
« no previous file with comments | « chrome/browser/chrome_browser_field_trials.h ('k') | chrome/renderer/page_load_histograms.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698