OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef COMPONENTS_SIGNIN_CORE_BROWSER_SIGNIN_STATUS_METRICS_PROVIDER_BASE_H_ | 5 #ifndef COMPONENTS_SIGNIN_CORE_BROWSER_SIGNIN_STATUS_METRICS_PROVIDER_BASE_H_ |
6 #define COMPONENTS_SIGNIN_CORE_BROWSER_SIGNIN_STATUS_METRICS_PROVIDER_BASE_H_ | 6 #define COMPONENTS_SIGNIN_CORE_BROWSER_SIGNIN_STATUS_METRICS_PROVIDER_BASE_H_ |
7 | 7 |
| 8 #include "base/macros.h" |
8 #include "components/metrics/metrics_provider.h" | 9 #include "components/metrics/metrics_provider.h" |
9 | 10 |
10 // The base class for collecting login status of all opened profiles during one | 11 // The base class for collecting login status of all opened profiles during one |
11 // UMA session and recording the value into a histogram before UMA log is | 12 // UMA session and recording the value into a histogram before UMA log is |
12 // uploaded. Overriding class SigninStatusMetricsProvider supports platform | 13 // uploaded. Overriding class SigninStatusMetricsProvider supports platform |
13 // Window, Linux, Macintosh and Android, and overriding class | 14 // Window, Linux, Macintosh and Android, and overriding class |
14 // SigninStatusMetricsProviderChromeOS supports ChromeOS. It is currently not | 15 // SigninStatusMetricsProviderChromeOS supports ChromeOS. It is currently not |
15 // supported on iOS. | 16 // supported on iOS. |
16 class SigninStatusMetricsProviderBase : public metrics::MetricsProvider { | 17 class SigninStatusMetricsProviderBase : public metrics::MetricsProvider { |
17 public: | 18 public: |
(...skipping 29 matching lines...) Expand all Loading... |
47 void ResetSigninStatus(); | 48 void ResetSigninStatus(); |
48 | 49 |
49 private: | 50 private: |
50 // Sign-in status of all profiles seen so far. | 51 // Sign-in status of all profiles seen so far. |
51 SigninStatus signin_status_; | 52 SigninStatus signin_status_; |
52 | 53 |
53 DISALLOW_COPY_AND_ASSIGN(SigninStatusMetricsProviderBase); | 54 DISALLOW_COPY_AND_ASSIGN(SigninStatusMetricsProviderBase); |
54 }; | 55 }; |
55 | 56 |
56 #endif // COMPONENTS_SIGNIN_CORE_BROWSER_SIGNIN_STATUS_METRICS_PROVIDER_BASE_H_ | 57 #endif // COMPONENTS_SIGNIN_CORE_BROWSER_SIGNIN_STATUS_METRICS_PROVIDER_BASE_H_ |
OLD | NEW |