| 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 10 matching lines...) Expand all Loading... |
| 21 #include "chrome/browser/ui/sync/one_click_signin_helper.h" | 21 #include "chrome/browser/ui/sync/one_click_signin_helper.h" |
| 22 #include "chrome/common/chrome_constants.h" | 22 #include "chrome/common/chrome_constants.h" |
| 23 #include "chrome/common/chrome_switches.h" | 23 #include "chrome/common/chrome_switches.h" |
| 24 #include "chrome/common/chrome_version_info.h" | 24 #include "chrome/common/chrome_version_info.h" |
| 25 #include "chrome/common/metrics/variations/variations_util.h" | 25 #include "chrome/common/metrics/variations/variations_util.h" |
| 26 #include "chrome/common/pref_names.h" | 26 #include "chrome/common/pref_names.h" |
| 27 #include "content/public/common/content_constants.h" | 27 #include "content/public/common/content_constants.h" |
| 28 #include "net/spdy/spdy_session.h" | 28 #include "net/spdy/spdy_session.h" |
| 29 #include "ui/base/layout.h" | 29 #include "ui/base/layout.h" |
| 30 | 30 |
| 31 #if defined(OS_CHROMEOS) |
| 32 #include "chrome/browser/chromeos/login/users/user_manager.h" |
| 33 #endif |
| 34 |
| 31 namespace chrome { | 35 namespace chrome { |
| 32 | 36 |
| 33 namespace { | 37 namespace { |
| 34 | 38 |
| 35 void AutoLaunchChromeFieldTrial() { | 39 void AutoLaunchChromeFieldTrial() { |
| 36 std::string brand; | 40 std::string brand; |
| 37 google_util::GetBrand(&brand); | 41 google_util::GetBrand(&brand); |
| 38 | 42 |
| 39 // Create a 100% field trial based on the brand code. | 43 // Create a 100% field trial based on the brand code. |
| 40 if (auto_launch_trial::IsInExperimentGroup(brand)) { | 44 if (auto_launch_trial::IsInExperimentGroup(brand)) { |
| (...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 119 prerender::ConfigurePrerender(parsed_command_line); | 123 prerender::ConfigurePrerender(parsed_command_line); |
| 120 AutoLaunchChromeFieldTrial(); | 124 AutoLaunchChromeFieldTrial(); |
| 121 OmniboxFieldTrial::ActivateStaticTrials(); | 125 OmniboxFieldTrial::ActivateStaticTrials(); |
| 122 SetupInfiniteCacheFieldTrial(); | 126 SetupInfiniteCacheFieldTrial(); |
| 123 DisableShowProfileSwitcherTrialIfNecessary(); | 127 DisableShowProfileSwitcherTrialIfNecessary(); |
| 124 SetupShowAppLauncherPromoFieldTrial(local_state); | 128 SetupShowAppLauncherPromoFieldTrial(local_state); |
| 125 SetupPreReadFieldTrial(); | 129 SetupPreReadFieldTrial(); |
| 126 } | 130 } |
| 127 | 131 |
| 128 } // namespace chrome | 132 } // namespace chrome |
| OLD | NEW |