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

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

Issue 2006973002: Background tracing: Enable field-trial control on Android (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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 #include <string> 7 #include <string>
8 8
9 #include "base/command_line.h" 9 #include "base/command_line.h"
10 #include "base/metrics/field_trial.h" 10 #include "base/metrics/field_trial.h"
11 #include "chrome/browser/prerender/prerender_field_trial.h" 11 #include "chrome/browser/prerender/prerender_field_trial.h"
12 #include "chrome/browser/tracing/background_tracing_field_trial.h"
13 #include "chrome/common/chrome_switches.h" 12 #include "chrome/common/chrome_switches.h"
14 #include "chrome/common/variations/variations_util.h" 13 #include "chrome/common/variations/variations_util.h"
15 #include "components/variations/variations_associated_data.h" 14 #include "components/variations/variations_associated_data.h"
16 #include "content/public/common/content_switches.h" 15 #include "content/public/common/content_switches.h"
17 16
18 namespace chrome { 17 namespace chrome {
19 18
20 namespace { 19 namespace {
21 20
22 void SetupLightSpeedTrials() { 21 void SetupLightSpeedTrials() {
(...skipping 22 matching lines...) Expand all
45 base::CommandLine::ForCurrentProcess()->AppendSwitchASCII( 44 base::CommandLine::ForCurrentProcess()->AppendSwitchASCII(
46 switches::kWebRtcStunProbeTrialParameter, cmd_param); 45 switches::kWebRtcStunProbeTrialParameter, cmd_param);
47 #endif 46 #endif
48 } 47 }
49 48
50 } // namespace 49 } // namespace
51 50
52 void SetupDesktopFieldTrials(const base::CommandLine& parsed_command_line) { 51 void SetupDesktopFieldTrials(const base::CommandLine& parsed_command_line) {
53 prerender::ConfigurePrerender(parsed_command_line); 52 prerender::ConfigurePrerender(parsed_command_line);
54 SetupLightSpeedTrials(); 53 SetupLightSpeedTrials();
55 tracing::SetupBackgroundTracingFieldTrial();
56 SetupStunProbeTrial(); 54 SetupStunProbeTrial();
57 } 55 }
58 56
59 } // namespace chrome 57 } // namespace chrome
OLDNEW
« no previous file with comments | « chrome/browser/chrome_browser_field_trials.cc ('k') | chrome/browser/chrome_content_browser_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698