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 CHROME_BROWSER_SIGNIN_SIGNIN_STATUS_METRICS_PROVIDER_CHROMEOS_H_ | 5 #ifndef CHROME_BROWSER_SIGNIN_SIGNIN_STATUS_METRICS_PROVIDER_CHROMEOS_H_ |
6 #define CHROME_BROWSER_SIGNIN_SIGNIN_STATUS_METRICS_PROVIDER_CHROMEOS_H_ | 6 #define CHROME_BROWSER_SIGNIN_SIGNIN_STATUS_METRICS_PROVIDER_CHROMEOS_H_ |
7 | 7 |
8 #include "base/gtest_prod_util.h" | 8 #include "base/gtest_prod_util.h" |
| 9 #include "base/macros.h" |
9 #include "components/signin/core/browser/signin_status_metrics_provider_base.h" | 10 #include "components/signin/core/browser/signin_status_metrics_provider_base.h" |
10 | 11 |
11 // Record and report the browser sign-in status on ChromeOS during each UMA | 12 // Record and report the browser sign-in status on ChromeOS during each UMA |
12 // session. On ChromeOS, the browser can only be at unsigned-in status when | 13 // session. On ChromeOS, the browser can only be at unsigned-in status when |
13 // browsing as a guest, or before the user logs in (i.e. the user sees a login | 14 // browsing as a guest, or before the user logs in (i.e. the user sees a login |
14 // window.) When user logs out, the browser process is terminated. Therefore, | 15 // window.) When user logs out, the browser process is terminated. Therefore, |
15 // the browser's sign-in status during one UMA session can only be alway | 16 // the browser's sign-in status during one UMA session can only be alway |
16 // signed-in, or always unsigned-in, or changing from unsigned-in to signed-in. | 17 // signed-in, or always unsigned-in, or changing from unsigned-in to signed-in. |
17 class SigninStatusMetricsProviderChromeOS | 18 class SigninStatusMetricsProviderChromeOS |
18 : public SigninStatusMetricsProviderBase { | 19 : public SigninStatusMetricsProviderBase { |
(...skipping 15 matching lines...) Expand all Loading... |
34 | 35 |
35 // Compute the sign-in status to upload to UMA log given the recorded sign-in | 36 // Compute the sign-in status to upload to UMA log given the recorded sign-in |
36 // status and if user is logged in now. | 37 // status and if user is logged in now. |
37 SigninStatus ComputeSigninStatusToUpload(SigninStatus recorded_status, | 38 SigninStatus ComputeSigninStatusToUpload(SigninStatus recorded_status, |
38 bool logged_in_now); | 39 bool logged_in_now); |
39 | 40 |
40 DISALLOW_COPY_AND_ASSIGN(SigninStatusMetricsProviderChromeOS); | 41 DISALLOW_COPY_AND_ASSIGN(SigninStatusMetricsProviderChromeOS); |
41 }; | 42 }; |
42 | 43 |
43 #endif // CHROME_BROWSER_SIGNIN_SIGNIN_STATUS_METRICS_PROVIDER_CHROMEOS_H_ | 44 #endif // CHROME_BROWSER_SIGNIN_SIGNIN_STATUS_METRICS_PROVIDER_CHROMEOS_H_ |
OLD | NEW |