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

Unified Diff: components/profile_metrics/counts.h

Issue 1417903006: Componentize ProfileMetrics::Counts (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add owners and fix Windows compile Created 5 years, 2 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/profile_metrics/OWNERS ('k') | components/profile_metrics/counts.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/profile_metrics/counts.h
diff --git a/components/profile_metrics/counts.h b/components/profile_metrics/counts.h
new file mode 100644
index 0000000000000000000000000000000000000000..a02a9725a0fe662f9a6b50031cb11d750f0759c2
--- /dev/null
+++ b/components/profile_metrics/counts.h
@@ -0,0 +1,34 @@
+// Copyright 2015 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.
+
+#ifndef COMPONENTS_PROFILE_METRICS_COUNTS_H_
+#define COMPONENTS_PROFILE_METRICS_COUNTS_H_
+
+#include "base/metrics/histogram_base.h"
+
+namespace profile_metrics {
+
+struct Counts {
+ base::HistogramBase::Sample total;
+ base::HistogramBase::Sample signedin;
+ base::HistogramBase::Sample supervised;
+ base::HistogramBase::Sample unused;
+ base::HistogramBase::Sample gaia_icon;
+ base::HistogramBase::Sample auth_errors;
+
+ Counts()
+ : total(0),
+ signedin(0),
+ supervised(0),
+ unused(0),
+ gaia_icon(0),
+ auth_errors(0) {}
+};
+
+// Logs metrics related to |counts|.
+void LogProfileMetricsCounts(const Counts& counts);
+
+} // namespace profile_metrics
+
+#endif // COMPONENTS_PROFILE_METRICS_COUNTS_H_
« no previous file with comments | « components/profile_metrics/OWNERS ('k') | components/profile_metrics/counts.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698