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

Unified Diff: components/metrics/metrics_switches.cc

Issue 2933953002: Make --enable-benchmarking not affect metrics recording. (Closed)
Patch Set: Created 3 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 side-by-side diff with in-line comments
Download patch
Index: components/metrics/metrics_switches.cc
diff --git a/components/metrics/metrics_switches.cc b/components/metrics/metrics_switches.cc
index 1aef619d6a4a9a56e03cca597d058536f8289dd1..f380ff8e7ce33f317595ea414c9dea4c5f0e45b9 100644
--- a/components/metrics/metrics_switches.cc
+++ b/components/metrics/metrics_switches.cc
@@ -7,6 +7,13 @@
namespace metrics {
namespace switches {
+// Enables the recording of metrics reports but disables reporting. In contrast
+// to kDisableMetrics, this executes all the code that a normal client would
+// use for reporting, except the report is dropped rather than sent to the
+// server. This is useful for finding issues in the metrics code during UI and
+// performance tests.
+const char kMetricsRecordingOnly[] = "metrics-recording-only";
+
// Forces a reset of the one-time-randomized FieldTrials on this client, also
// known as the Chrome Variations state.
const char kResetVariationState[] = "reset-variation-state";
« no previous file with comments | « components/metrics/metrics_switches.h ('k') | components/metrics_services_manager/metrics_services_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698