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

Unified Diff: chrome/browser/browser_main.cc

Issue 62071: Disable user metrics reporting for chromium builds. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 11 years, 8 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/browser_main.cc
===================================================================
--- chrome/browser/browser_main.cc (revision 13174)
+++ chrome/browser/browser_main.cc (working copy)
@@ -518,7 +518,14 @@
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 @@
// 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698