| 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 #if defined(OS_WIN) | 7 #if defined(OS_WIN) |
| 8 #include <windows.h> | 8 #include <windows.h> |
| 9 #endif | 9 #endif |
| 10 | 10 |
| 11 #include <map> | 11 #include <map> |
| 12 #include <string> | 12 #include <string> |
| 13 | 13 |
| 14 #include "base/command_line.h" | 14 #include "base/command_line.h" |
| 15 #include "base/debug/activity_tracker.h" | 15 #include "base/debug/activity_tracker.h" |
| 16 #include "base/feature_list.h" | 16 #include "base/feature_list.h" |
| 17 #include "base/files/file_util.h" | 17 #include "base/files/file_util.h" |
| 18 #include "base/metrics/field_trial.h" | 18 #include "base/metrics/field_trial.h" |
| 19 #include "base/metrics/histogram_macros.h" | 19 #include "base/metrics/histogram_macros.h" |
| 20 #include "base/path_service.h" | 20 #include "base/path_service.h" |
| 21 #include "chrome/browser/features.h" | 21 #include "chrome/browser/features.h" |
| 22 #include "chrome/browser/prerender/prerender_field_trial.h" | 22 #include "chrome/browser/prerender/prerender_field_trial.h" |
| 23 #include "chrome/common/chrome_features.h" |
| 23 #include "chrome/common/chrome_paths.h" | 24 #include "chrome/common/chrome_paths.h" |
| 24 #include "chrome/common/chrome_switches.h" | 25 #include "chrome/common/chrome_switches.h" |
| 25 #include "components/browser_watcher/features.h" | 26 #include "components/browser_watcher/features.h" |
| 26 #include "components/browser_watcher/stability_debugging.h" | 27 #include "components/browser_watcher/stability_debugging.h" |
| 27 #include "components/variations/variations_associated_data.h" | 28 #include "components/variations/variations_associated_data.h" |
| 28 #include "content/public/common/content_switches.h" | 29 #include "content/public/common/content_switches.h" |
| 29 #include "media/media_features.h" | 30 #include "media/media_features.h" |
| 30 | 31 |
| 31 #if defined(OS_WIN) | 32 #if defined(OS_WIN) |
| 32 #include "base/win/pe_image.h" | 33 #include "base/win/pe_image.h" |
| (...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 158 } | 159 } |
| 159 #endif // defined(OS_WIN) | 160 #endif // defined(OS_WIN) |
| 160 | 161 |
| 161 } // namespace | 162 } // namespace |
| 162 | 163 |
| 163 void SetupDesktopFieldTrials() { | 164 void SetupDesktopFieldTrials() { |
| 164 prerender::ConfigurePrerender(); | 165 prerender::ConfigurePrerender(); |
| 165 SetupStunProbeTrial(); | 166 SetupStunProbeTrial(); |
| 166 #if defined(OS_WIN) | 167 #if defined(OS_WIN) |
| 167 SetupStabilityDebugging(); | 168 SetupStabilityDebugging(); |
| 169 base::FeatureList::IsEnabled(features::kModuleDatabase); |
| 168 #endif // defined(OS_WIN) | 170 #endif // defined(OS_WIN) |
| 169 // Activate the experiment as early as possible to increase its visibility | 171 // Activate the experiment as early as possible to increase its visibility |
| 170 // (e.g. the likelihood of its presence in the serialized system profile). | 172 // (e.g. the likelihood of its presence in the serialized system profile). |
| 171 // This also needs to happen before the browser rendez-vous attempt | 173 // This also needs to happen before the browser rendez-vous attempt |
| 172 // (NotifyOtherProcessOrCreate) in PreMainMessageLoopRun so the corresponding | 174 // (NotifyOtherProcessOrCreate) in PreMainMessageLoopRun so the corresponding |
| 173 // metrics are tagged. | 175 // metrics are tagged. |
| 174 base::FeatureList::IsEnabled(features::kDesktopFastShutdown); | 176 base::FeatureList::IsEnabled(features::kDesktopFastShutdown); |
| 175 } | 177 } |
| 176 | 178 |
| 177 } // namespace chrome | 179 } // namespace chrome |
| OLD | NEW |