OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_desktop.h" | 5 #include "chrome/browser/chrome_browser_field_trials_desktop.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/environment.h" | 10 #include "base/environment.h" |
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
111 trial->AppendGroup("5-pct", group == "5-pct" ? 100 : 0); | 111 trial->AppendGroup("5-pct", group == "5-pct" ? 100 : 0); |
112 trial->AppendGroup("0-pct", group == "0-pct" ? 100 : 0); | 112 trial->AppendGroup("0-pct", group == "0-pct" ? 100 : 0); |
113 | 113 |
114 // We have to call group in order to mark the experiment as active. | 114 // We have to call group in order to mark the experiment as active. |
115 trial->group(); | 115 trial->group(); |
116 } | 116 } |
117 | 117 |
118 } // namespace | 118 } // namespace |
119 | 119 |
120 void SetupDesktopFieldTrials(const CommandLine& parsed_command_line, | 120 void SetupDesktopFieldTrials(const CommandLine& parsed_command_line, |
121 const base::Time& install_time, | |
122 PrefService* local_state) { | 121 PrefService* local_state) { |
123 prerender::ConfigurePrerender(parsed_command_line); | 122 prerender::ConfigurePrerender(parsed_command_line); |
124 AutoLaunchChromeFieldTrial(); | 123 AutoLaunchChromeFieldTrial(); |
125 OmniboxFieldTrial::ActivateStaticTrials(); | 124 OmniboxFieldTrial::ActivateStaticTrials(); |
126 SetupInfiniteCacheFieldTrial(); | 125 SetupInfiniteCacheFieldTrial(); |
127 DisableShowProfileSwitcherTrialIfNecessary(); | 126 DisableShowProfileSwitcherTrialIfNecessary(); |
128 SetupShowAppLauncherPromoFieldTrial(local_state); | 127 SetupShowAppLauncherPromoFieldTrial(local_state); |
129 SetupPreReadFieldTrial(); | 128 SetupPreReadFieldTrial(); |
130 } | 129 } |
131 | 130 |
132 } // namespace chrome | 131 } // namespace chrome |
OLD | NEW |