| 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 <map> | 7 #include <map> | 
| 8 #include <string> | 8 #include <string> | 
| 9 | 9 | 
| 10 #include "base/command_line.h" | 10 #include "base/command_line.h" | 
| 11 #include "base/debug/activity_tracker.h" | 11 #include "base/debug/activity_tracker.h" | 
| 12 #include "base/feature_list.h" | 12 #include "base/feature_list.h" | 
| 13 #include "base/files/file_util.h" | 13 #include "base/files/file_util.h" | 
| 14 #include "base/metrics/field_trial.h" | 14 #include "base/metrics/field_trial.h" | 
| 15 #include "base/metrics/histogram_macros.h" | 15 #include "base/metrics/histogram_macros.h" | 
| 16 #include "base/path_service.h" | 16 #include "base/path_service.h" | 
|  | 17 #include "chrome/browser/features.h" | 
| 17 #include "chrome/browser/prerender/prerender_field_trial.h" | 18 #include "chrome/browser/prerender/prerender_field_trial.h" | 
| 18 #include "chrome/common/chrome_paths.h" | 19 #include "chrome/common/chrome_paths.h" | 
| 19 #include "chrome/common/chrome_switches.h" | 20 #include "chrome/common/chrome_switches.h" | 
| 20 #include "components/browser_watcher/features.h" | 21 #include "components/browser_watcher/features.h" | 
| 21 #include "components/variations/variations_associated_data.h" | 22 #include "components/variations/variations_associated_data.h" | 
| 22 #include "content/public/common/content_switches.h" | 23 #include "content/public/common/content_switches.h" | 
| 23 #include "media/media_features.h" | 24 #include "media/media_features.h" | 
| 24 | 25 | 
| 25 #if defined(OS_WIN) | 26 #if defined(OS_WIN) | 
| 26 #include "components/browser_watcher/stability_debugging_win.h" | 27 #include "components/browser_watcher/stability_debugging_win.h" | 
| (...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 105 #endif  // defined(OS_WIN) | 106 #endif  // defined(OS_WIN) | 
| 106 | 107 | 
| 107 }  // namespace | 108 }  // namespace | 
| 108 | 109 | 
| 109 void SetupDesktopFieldTrials(const base::CommandLine& parsed_command_line) { | 110 void SetupDesktopFieldTrials(const base::CommandLine& parsed_command_line) { | 
| 110   prerender::ConfigurePrerender(parsed_command_line); | 111   prerender::ConfigurePrerender(parsed_command_line); | 
| 111   SetupStunProbeTrial(); | 112   SetupStunProbeTrial(); | 
| 112 #if defined(OS_WIN) | 113 #if defined(OS_WIN) | 
| 113   SetupStabilityDebugging(); | 114   SetupStabilityDebugging(); | 
| 114 #endif  // defined(OS_WIN) | 115 #endif  // defined(OS_WIN) | 
|  | 116   // Activate the experiment as early as possible to increase its visibility | 
|  | 117   // (e.g. the likelihood of its presence in the serialized system profile). | 
|  | 118   base::FeatureList::IsEnabled(kDesktopFastShutdown); | 
| 115 } | 119 } | 
| 116 | 120 | 
| 117 }  // namespace chrome | 121 }  // namespace chrome | 
| OLD | NEW | 
|---|