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

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

Issue 2613803005: [win] Enable ModuleDatabase behind a flag. (Closed)
Patch Set: Created 3 years, 11 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
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 #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/variations/variations_associated_data.h" 27 #include "components/variations/variations_associated_data.h"
27 #include "content/public/common/content_switches.h" 28 #include "content/public/common/content_switches.h"
28 #include "media/media_features.h" 29 #include "media/media_features.h"
29 30
30 #if defined(OS_WIN) 31 #if defined(OS_WIN)
31 #include "chrome/install_static/install_util.h" 32 #include "chrome/install_static/install_util.h"
32 #include "components/browser_watcher/stability_data_names.h" 33 #include "components/browser_watcher/stability_data_names.h"
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after
140 } 141 }
141 #endif // defined(OS_WIN) 142 #endif // defined(OS_WIN)
142 143
143 } // namespace 144 } // namespace
144 145
145 void SetupDesktopFieldTrials() { 146 void SetupDesktopFieldTrials() {
146 prerender::ConfigurePrerender(); 147 prerender::ConfigurePrerender();
147 SetupStunProbeTrial(); 148 SetupStunProbeTrial();
148 #if defined(OS_WIN) 149 #if defined(OS_WIN)
149 SetupStabilityDebugging(); 150 SetupStabilityDebugging();
151 base::FeatureList::IsEnabled(features::kModuleDatabase);
grt (UTC plus 2) 2017/01/06 09:44:57 apologies if this is a silly question, but why isn
chrisha 2017/01/10 21:01:45 AFAIK it's not a big deal, it's just that the earl
150 #endif // defined(OS_WIN) 152 #endif // defined(OS_WIN)
151 // Activate the experiment as early as possible to increase its visibility 153 // Activate the experiment as early as possible to increase its visibility
152 // (e.g. the likelihood of its presence in the serialized system profile). 154 // (e.g. the likelihood of its presence in the serialized system profile).
153 // This also needs to happen before the browser rendez-vous attempt 155 // This also needs to happen before the browser rendez-vous attempt
154 // (NotifyOtherProcessOrCreate) in PreMainMessageLoopRun so the corresponding 156 // (NotifyOtherProcessOrCreate) in PreMainMessageLoopRun so the corresponding
155 // metrics are tagged. 157 // metrics are tagged.
156 base::FeatureList::IsEnabled(features::kDesktopFastShutdown); 158 base::FeatureList::IsEnabled(features::kDesktopFastShutdown);
157 } 159 }
158 160
159 } // namespace chrome 161 } // namespace chrome
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/chrome_browser_main_win.h » ('j') | chrome/browser/chrome_browser_main_win.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698