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_METRICS_H_ | 5 #ifndef COMPONENTS_SIGNIN_CORE_BROWSER_SIGNIN_METRICS_H_ |
6 #define COMPONENTS_SIGNIN_CORE_BROWSER_SIGNIN_METRICS_H_ | 6 #define COMPONENTS_SIGNIN_CORE_BROWSER_SIGNIN_METRICS_H_ |
7 | 7 |
8 #include "base/time/time.h" | 8 #include "base/time/time.h" |
9 | 9 |
| 10 #include <limits.h> |
| 11 |
10 #include "google_apis/gaia/google_service_auth_error.h" | 12 #include "google_apis/gaia/google_service_auth_error.h" |
11 | 13 |
12 namespace signin_metrics { | 14 namespace signin_metrics { |
13 | 15 |
14 // Enum for the ways in which primary account detection is done. | 16 // Enum for the ways in which primary account detection is done. |
15 enum DifferentPrimaryAccounts { | 17 enum DifferentPrimaryAccounts { |
16 // token and cookie had same primary accounts. | 18 // token and cookie had same primary accounts. |
17 ACCOUNTS_SAME = 0, | 19 ACCOUNTS_SAME = 0, |
18 // Deprecated. Indicates different primary accounts. | 20 // Deprecated. Indicates different primary accounts. |
19 UNUSED_ACCOUNTS_DIFFERENT, | 21 UNUSED_ACCOUNTS_DIFFERENT, |
(...skipping 250 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
270 void LogBrowsingSessionDuration(const base::Time& previous_activity_time); | 272 void LogBrowsingSessionDuration(const base::Time& previous_activity_time); |
271 | 273 |
272 // Records the AccountReconcilor |state| when GAIA returns a specific response. | 274 // Records the AccountReconcilor |state| when GAIA returns a specific response. |
273 // If |state| is different than ACCOUNT_RECONCILOR_OK it means the user will | 275 // If |state| is different than ACCOUNT_RECONCILOR_OK it means the user will |
274 // be shown a different set of accounts in the content-area and the settings UI. | 276 // be shown a different set of accounts in the content-area and the settings UI. |
275 void LogAccountReconcilorStateOnGaiaResponse(AccountReconcilorState state); | 277 void LogAccountReconcilorStateOnGaiaResponse(AccountReconcilorState state); |
276 | 278 |
277 } // namespace signin_metrics | 279 } // namespace signin_metrics |
278 | 280 |
279 #endif // COMPONENTS_SIGNIN_CORE_BROWSER_SIGNIN_METRICS_H_ | 281 #endif // COMPONENTS_SIGNIN_CORE_BROWSER_SIGNIN_METRICS_H_ |
OLD | NEW |