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

Unified Diff: components/metrics/metrics_log.cc

Issue 2671333003: Add UMA.IsClonedInstall boolean histogram. (Closed)
Patch Set: Add new enum. Created 3 years, 10 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 | tools/metrics/histograms/histograms.xml » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/metrics/metrics_log.cc
diff --git a/components/metrics/metrics_log.cc b/components/metrics/metrics_log.cc
index 0856f31f3b86314788faeb600d7abfd761146962..741ea68545d8a105290e7961451cf599f0baa3aa 100644
--- a/components/metrics/metrics_log.cc
+++ b/components/metrics/metrics_log.cc
@@ -297,6 +297,9 @@ void MetricsLog::RecordStabilityMetrics(
void MetricsLog::RecordGeneralMetrics(
const std::vector<MetricsProvider*>& metrics_providers) {
+ if (local_state_->GetBoolean(prefs::kMetricsResetIds))
+ UMA_HISTOGRAM_BOOLEAN("UMA.IsClonedInstall", true);
+
for (size_t i = 0; i < metrics_providers.size(); ++i)
metrics_providers[i]->ProvideGeneralMetrics(uma_proto());
}
« no previous file with comments | « no previous file | tools/metrics/histograms/histograms.xml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698