diff options
author | rvargas@google.com <rvargas@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-04-07 21:24:58 +0000 |
---|---|---|
committer | rvargas@google.com <rvargas@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-04-07 21:24:58 +0000 |
commit | 110f48f0a6c0cc8af1d449119be2f540d81f75f5 (patch) | |
tree | e6a525496a9b276bb488775898d0bf8edf2df54a /chrome/browser/browser_main.cc | |
parent | d41355e6f0576dc372a6047ffc8e6f0fdea0129d (diff) | |
download | chromium_src-110f48f0a6c0cc8af1d449119be2f540d81f75f5.zip chromium_src-110f48f0a6c0cc8af1d449119be2f540d81f75f5.tar.gz chromium_src-110f48f0a6c0cc8af1d449119be2f540d81f75f5.tar.bz2 |
Disable user metrics reporting for chromium builds.
Review URL: http://codereview.chromium.org/62071
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@13286 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/browser_main.cc')
-rw-r--r-- | chrome/browser/browser_main.cc | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/chrome/browser/browser_main.cc b/chrome/browser/browser_main.cc index 1ef1f74..8dc32d4 100644 --- a/chrome/browser/browser_main.cc +++ b/chrome/browser/browser_main.cc @@ -518,7 +518,14 @@ int BrowserMain(const MainFunctionParams& parameters) { MetricsService* metrics = NULL; if (!parsed_command_line.HasSwitch(switches::kDisableMetrics)) { - if (parsed_command_line.HasSwitch(switches::kMetricsRecordingOnly)) { + bool record_only = + parsed_command_line.HasSwitch(switches::kMetricsRecordingOnly); + +#if !defined(GOOGLE_CHROME_BUILD) + record_only = true; +#endif + + if (record_only) { local_state->transient()->SetBoolean(prefs::kMetricsReportingEnabled, false); } @@ -527,7 +534,7 @@ int BrowserMain(const MainFunctionParams& parameters) { // If we're testing then we don't care what the user preference is, we turn // on recording, but not reporting, otherwise tests fail. - if (parsed_command_line.HasSwitch(switches::kMetricsRecordingOnly)) { + if (record_only) { metrics->StartRecordingOnly(); } else { // If the user permits metrics reporting with the checkbox in the |