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

Side by Side Diff: chrome/browser/chrome_browser_field_trials.cc

Issue 10824168: Cleaning up compositing field trial code and enable FCM in beta/stable (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: compositor_utils.cc moved to content\common Created 8 years, 4 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 unified diff | Download patch
« no previous file with comments | « no previous file | chrome/browser/chrome_content_browser_client.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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 }
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/chrome_content_browser_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698