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

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

Issue 2531123002: Record MetricsService's execution phase to the stability file (Closed)
Patch Set: Address comments Created 4 years 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 #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/prerender/prerender_field_trial.h" 17 #include "chrome/browser/prerender/prerender_field_trial.h"
18 #include "chrome/common/chrome_paths.h" 18 #include "chrome/common/chrome_paths.h"
19 #include "chrome/common/chrome_switches.h" 19 #include "chrome/common/chrome_switches.h"
20 #include "components/browser_watcher/features.h" 20 #include "components/browser_watcher/features.h"
21 #include "components/browser_watcher/stability_debugging.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 #include "components/browser_watcher/stability_debugging_win.h"
27 #endif
28
29 namespace chrome { 26 namespace chrome {
30 27
31 namespace { 28 namespace {
32 29
33 void SetupStunProbeTrial() { 30 void SetupStunProbeTrial() {
34 #if BUILDFLAG(ENABLE_WEBRTC) 31 #if BUILDFLAG(ENABLE_WEBRTC)
35 std::map<std::string, std::string> params; 32 std::map<std::string, std::string> params;
36 if (!variations::GetVariationParams("StunProbeTrial2", &params)) 33 if (!variations::GetVariationParams("StunProbeTrial2", &params))
37 return; 34 return;
38 35
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
108 105
109 void SetupDesktopFieldTrials(const base::CommandLine& parsed_command_line) { 106 void SetupDesktopFieldTrials(const base::CommandLine& parsed_command_line) {
110 prerender::ConfigurePrerender(parsed_command_line); 107 prerender::ConfigurePrerender(parsed_command_line);
111 SetupStunProbeTrial(); 108 SetupStunProbeTrial();
112 #if defined(OS_WIN) 109 #if defined(OS_WIN)
113 SetupStabilityDebugging(); 110 SetupStabilityDebugging();
114 #endif // defined(OS_WIN) 111 #endif // defined(OS_WIN)
115 } 112 }
116 113
117 } // namespace chrome 114 } // namespace chrome
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698