| 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 #include "components/signin/core/browser/signin_metrics.h" | 5 #include "components/signin/core/browser/signin_metrics.h" |
| 6 | 6 |
| 7 #include <limits.h> |
| 8 |
| 7 #include "base/logging.h" | 9 #include "base/logging.h" |
| 8 #include "base/metrics/histogram_macros.h" | 10 #include "base/metrics/histogram_macros.h" |
| 9 #include "base/metrics/user_metrics.h" | 11 #include "base/metrics/user_metrics.h" |
| 10 #include "base/time/time.h" | 12 #include "base/time/time.h" |
| 11 | 13 |
| 12 namespace signin_metrics { | 14 namespace signin_metrics { |
| 13 | 15 |
| 14 // Helper method to determine which |DifferentPrimaryAccounts| applies. | 16 // Helper method to determine which |DifferentPrimaryAccounts| applies. |
| 15 DifferentPrimaryAccounts ComparePrimaryAccounts(bool primary_accounts_same, | 17 DifferentPrimaryAccounts ComparePrimaryAccounts(bool primary_accounts_same, |
| 16 int pre_count_gaia_cookies) { | 18 int pre_count_gaia_cookies) { |
| (...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 147 (base::Time::Now() - previous_activity_time).InMinutes(), 1, | 149 (base::Time::Now() - previous_activity_time).InMinutes(), 1, |
| 148 base::TimeDelta::FromDays(30).InMinutes(), 50); | 150 base::TimeDelta::FromDays(30).InMinutes(), 50); |
| 149 } | 151 } |
| 150 | 152 |
| 151 void LogAccountReconcilorStateOnGaiaResponse(AccountReconcilorState state) { | 153 void LogAccountReconcilorStateOnGaiaResponse(AccountReconcilorState state) { |
| 152 UMA_HISTOGRAM_ENUMERATION("Signin.AccountReconcilorState.OnGaiaResponse", | 154 UMA_HISTOGRAM_ENUMERATION("Signin.AccountReconcilorState.OnGaiaResponse", |
| 153 state, ACCOUNT_RECONCILOR_HISTOGRAM_COUNT); | 155 state, ACCOUNT_RECONCILOR_HISTOGRAM_COUNT); |
| 154 } | 156 } |
| 155 | 157 |
| 156 } // namespace signin_metrics | 158 } // namespace signin_metrics |
| OLD | NEW |