OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "chrome/browser/chrome_browser_field_trials.h" | 5 #include "chrome/browser/chrome_browser_field_trials.h" |
6 | 6 |
7 #include <string> | 7 #include <string> |
8 | 8 |
9 #include "base/command_line.h" | 9 #include "base/command_line.h" |
10 #include "base/metrics/field_trial.h" | 10 #include "base/metrics/field_trial.h" |
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
113 // shoud not be performed. | 113 // shoud not be performed. |
114 if (!proxy_policy_is_set) | 114 if (!proxy_policy_is_set) |
115 ProxyConnectionsFieldTrial(); | 115 ProxyConnectionsFieldTrial(); |
116 prerender::ConfigurePrefetchAndPrerender(parsed_command_line_); | 116 prerender::ConfigurePrefetchAndPrerender(parsed_command_line_); |
117 SpdyFieldTrial(); | 117 SpdyFieldTrial(); |
118 ConnectBackupJobsFieldTrial(); | 118 ConnectBackupJobsFieldTrial(); |
119 WarmConnectionFieldTrial(); | 119 WarmConnectionFieldTrial(); |
120 PredictorFieldTrial(); | 120 PredictorFieldTrial(); |
121 DefaultAppsFieldTrial(); | 121 DefaultAppsFieldTrial(); |
122 AutoLaunchChromeFieldTrial(); | 122 AutoLaunchChromeFieldTrial(); |
123 gpu_util::InitializeForceCompositingModeFieldTrial(); | 123 gpu_util::InitializeCompositingFieldTrial(); |
124 SetupUniformityFieldTrials(); | 124 SetupUniformityFieldTrials(); |
125 AutocompleteFieldTrial::Activate(); | 125 AutocompleteFieldTrial::Activate(); |
126 DisableNewTabFieldTrialIfNecesssary(); | 126 DisableNewTabFieldTrialIfNecesssary(); |
127 ChannelIDFieldTrial(); | 127 ChannelIDFieldTrial(); |
128 } | 128 } |
129 | 129 |
130 // This is an A/B test for the maximum number of persistent connections per | 130 // This is an A/B test for the maximum number of persistent connections per |
131 // host. Currently Chrome, Firefox, and IE8 have this value set at 6. Safari | 131 // host. Currently Chrome, Firefox, and IE8 have this value set at 6. Safari |
132 // uses 4, and Fasterfox (a plugin for Firefox that supposedly configures it to | 132 // uses 4, and Fasterfox (a plugin for Firefox that supposedly configures it to |
133 // run faster) uses 8. We would like to see how much of an effect this value has | 133 // run faster) uses 8. We would like to see how much of an effect this value has |
(...skipping 461 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
595 const base::FieldTrial::Probability kEnableProbability = 10; | 595 const base::FieldTrial::Probability kEnableProbability = 10; |
596 scoped_refptr<base::FieldTrial> trial = | 596 scoped_refptr<base::FieldTrial> trial = |
597 base::FieldTrialList::FactoryGetFieldTrial( | 597 base::FieldTrialList::FactoryGetFieldTrial( |
598 "ChannelID", kDivisor, "disable", 2012, 8, 23, NULL); | 598 "ChannelID", kDivisor, "disable", 2012, 8, 23, NULL); |
599 trial->UseOneTimeRandomization(); | 599 trial->UseOneTimeRandomization(); |
600 int enable_group = trial->AppendGroup("enable", kEnableProbability); | 600 int enable_group = trial->AppendGroup("enable", kEnableProbability); |
601 if (trial->group() == enable_group) | 601 if (trial->group() == enable_group) |
602 net::SSLConfigService::EnableChannelIDTrial(); | 602 net::SSLConfigService::EnableChannelIDTrial(); |
603 } | 603 } |
604 } | 604 } |
OLD | NEW |