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

Unified Diff: components/variations/metrics.cc

Issue 2935623004: [Cleanup] Clean up the VariationsSeedStore's histograms. (Closed)
Patch Set: Rebase 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
« no previous file with comments | « components/variations/metrics.h ('k') | components/variations/variations_seed_store.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/variations/metrics.cc
diff --git a/components/variations/metrics.cc b/components/variations/metrics.cc
new file mode 100644
index 0000000000000000000000000000000000000000..a59d3d6920e85397a64e1a6614b7e4242ef7e09e
--- /dev/null
+++ b/components/variations/metrics.cc
@@ -0,0 +1,28 @@
+// Copyright 2017 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "components/variations/metrics.h"
+
+#include "base/metrics/histogram_macros.h"
+
+namespace variations {
+
+#if defined(OS_ANDROID)
+void RecordFirstRunSeedImportResult(FirstRunSeedImportResult result) {
+ UMA_HISTOGRAM_ENUMERATION("Variations.FirstRunResult", result,
+ FirstRunSeedImportResult::ENUM_SIZE);
+}
+#endif // OS_ANDROID
+
+void RecordLoadSeedResult(LoadSeedResult state) {
+ UMA_HISTOGRAM_ENUMERATION("Variations.SeedLoadResult", state,
+ LoadSeedResult::ENUM_SIZE);
+}
+
+void RecordStoreSeedResult(StoreSeedResult result) {
+ UMA_HISTOGRAM_ENUMERATION("Variations.SeedStoreResult", result,
+ StoreSeedResult::ENUM_SIZE);
+}
+
+} // namespace variations
« no previous file with comments | « components/variations/metrics.h ('k') | components/variations/variations_seed_store.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698