diff options
author | mbelshe@google.com <mbelshe@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-12-07 22:54:27 +0000 |
---|---|---|
committer | mbelshe@google.com <mbelshe@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-12-07 22:54:27 +0000 |
commit | e8d82c6124232e1678eb242e5c7369bd20ac949d (patch) | |
tree | 4248307bc59b2e0491ce67cf146ba3e9942d1d0c /chrome | |
parent | 956702425b4ce15cdfc433491519f1df19f3d3fc (diff) | |
download | chromium_src-e8d82c6124232e1678eb242e5c7369bd20ac949d.zip chromium_src-e8d82c6124232e1678eb242e5c7369bd20ac949d.tar.gz chromium_src-e8d82c6124232e1678eb242e5c7369bd20ac949d.tar.bz2 |
Turn off field trials and reporting of metrics when running benchmarking.
BUG=none
TEST=none
Review URL: http://codereview.chromium.org/5628005
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@68532 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome')
-rw-r--r-- | chrome/browser/browser_main.cc | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/chrome/browser/browser_main.cc b/chrome/browser/browser_main.cc index bb53cf7..78173b4 100644 --- a/chrome/browser/browser_main.cc +++ b/chrome/browser/browser_main.cc @@ -189,6 +189,9 @@ BrowserMainParts::~BrowserMainParts() { void BrowserMainParts::EarlyInitialization() { PreEarlyInitialization(); + if (parsed_command_line().HasSwitch(switches::kEnableBenchmarking)) + base::FieldTrial::EnableBenchmarking(); + // Note: make sure to call ConnectionFieldTrial() before // ProxyConnectionsFieldTrial(). ConnectionFieldTrial(); @@ -675,7 +678,8 @@ MetricsService* InitializeMetrics(const CommandLine& parsed_command_line, MetricsService* metrics = g_browser_process->metrics_service(); - if (parsed_command_line.HasSwitch(switches::kMetricsRecordingOnly)) { + if (parsed_command_line.HasSwitch(switches::kMetricsRecordingOnly) || + parsed_command_line.HasSwitch(switches::kEnableBenchmarking)) { // If we're testing then we don't care what the user preference is, we turn // on recording, but not reporting, otherwise tests fail. metrics->StartRecordingOnly(); |