OLD | NEW |
(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_ |
OLD | NEW |