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

Side by Side 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, 1 month 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 unified diff | Download patch
« no previous file with comments | « components/profile_metrics/OWNERS ('k') | components/profile_metrics/counts.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef COMPONENTS_PROFILE_METRICS_COUNTS_H_
6 #define COMPONENTS_PROFILE_METRICS_COUNTS_H_
7
8 #include "base/metrics/histogram_base.h"
9
10 namespace profile_metrics {
11
12 struct Counts {
13 base::HistogramBase::Sample total;
14 base::HistogramBase::Sample signedin;
15 base::HistogramBase::Sample supervised;
16 base::HistogramBase::Sample unused;
17 base::HistogramBase::Sample gaia_icon;
18 base::HistogramBase::Sample auth_errors;
19
20 Counts()
21 : total(0),
22 signedin(0),
23 supervised(0),
24 unused(0),
25 gaia_icon(0),
26 auth_errors(0) {}
27 };
28
29 // Logs metrics related to |counts|.
30 void LogProfileMetricsCounts(const Counts& counts);
31
32 } // namespace profile_metrics
33
34 #endif // COMPONENTS_PROFILE_METRICS_COUNTS_H_
OLDNEW
« 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