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

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

Issue 444903002: [cros] user_manager component - move UserManagerBase and UserManager (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 6 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 | Annotate | Revision Log
OLDNEW
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"
11 #include "base/metrics/field_trial.h" 11 #include "base/metrics/field_trial.h"
12 #include "base/prefs/pref_service.h" 12 #include "base/prefs/pref_service.h"
13 #include "base/strings/string_util.h" 13 #include "base/strings/string_util.h"
14 #include "chrome/browser/auto_launch_trial.h" 14 #include "chrome/browser/auto_launch_trial.h"
15 #include "chrome/browser/google/google_brand.h" 15 #include "chrome/browser/google/google_brand.h"
16 #include "chrome/browser/prerender/prerender_field_trial.h" 16 #include "chrome/browser/prerender/prerender_field_trial.h"
17 #include "chrome/browser/profiles/profiles_state.h" 17 #include "chrome/browser/profiles/profiles_state.h"
18 #include "chrome/browser/safe_browsing/safe_browsing_blocking_page.h" 18 #include "chrome/browser/safe_browsing/safe_browsing_blocking_page.h"
19 #include "chrome/browser/ui/app_list/app_list_util.h" 19 #include "chrome/browser/ui/app_list/app_list_util.h"
20 #include "chrome/browser/ui/sync/one_click_signin_helper.h" 20 #include "chrome/browser/ui/sync/one_click_signin_helper.h"
21 #include "chrome/common/chrome_constants.h" 21 #include "chrome/common/chrome_constants.h"
22 #include "chrome/common/chrome_switches.h" 22 #include "chrome/common/chrome_switches.h"
23 #include "chrome/common/chrome_version_info.h" 23 #include "chrome/common/chrome_version_info.h"
24 #include "chrome/common/pref_names.h" 24 #include "chrome/common/pref_names.h"
25 #include "chrome/common/variations/variations_util.h" 25 #include "chrome/common/variations/variations_util.h"
26 #include "content/public/common/content_constants.h" 26 #include "content/public/common/content_constants.h"
27 #include "net/spdy/spdy_session.h" 27 #include "net/spdy/spdy_session.h"
28 #include "ui/base/layout.h" 28 #include "ui/base/layout.h"
29 29
30 #if defined(OS_CHROMEOS)
31 #include "chrome/browser/chromeos/login/users/user_manager.h"
32 #endif
33
34 namespace chrome { 30 namespace chrome {
35 31
36 namespace { 32 namespace {
37 33
38 void AutoLaunchChromeFieldTrial() { 34 void AutoLaunchChromeFieldTrial() {
39 std::string brand; 35 std::string brand;
40 google_brand::GetBrand(&brand); 36 google_brand::GetBrand(&brand);
41 37
42 // Create a 100% field trial based on the brand code. 38 // Create a 100% field trial based on the brand code.
43 if (auto_launch_trial::IsInExperimentGroup(brand)) { 39 if (auto_launch_trial::IsInExperimentGroup(brand)) {
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
120 PrefService* local_state) { 116 PrefService* local_state) {
121 prerender::ConfigurePrerender(parsed_command_line); 117 prerender::ConfigurePrerender(parsed_command_line);
122 AutoLaunchChromeFieldTrial(); 118 AutoLaunchChromeFieldTrial();
123 SetupInfiniteCacheFieldTrial(); 119 SetupInfiniteCacheFieldTrial();
124 DisableShowProfileSwitcherTrialIfNecessary(); 120 DisableShowProfileSwitcherTrialIfNecessary();
125 SetupShowAppLauncherPromoFieldTrial(local_state); 121 SetupShowAppLauncherPromoFieldTrial(local_state);
126 SetupPreReadFieldTrial(); 122 SetupPreReadFieldTrial();
127 } 123 }
128 124
129 } // namespace chrome 125 } // namespace chrome
OLDNEW
« no previous file with comments | « chrome/browser/browsing_data/browsing_data_remover_unittest.cc ('k') | chrome/browser/chrome_content_browser_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698