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> | 7 #include <limits.h> |
8 | 8 |
9 #include "base/logging.h" | 9 #include "base/logging.h" |
10 #include "base/metrics/histogram_macros.h" | 10 #include "base/metrics/histogram_macros.h" |
11 #include "base/metrics/user_metrics.h" | |
12 #include "base/time/time.h" | 11 #include "base/time/time.h" |
13 | 12 |
14 namespace signin_metrics { | 13 namespace signin_metrics { |
15 | 14 |
16 // Helper method to determine which |DifferentPrimaryAccounts| applies. | 15 // Helper method to determine which |DifferentPrimaryAccounts| applies. |
17 DifferentPrimaryAccounts ComparePrimaryAccounts(bool primary_accounts_same, | 16 DifferentPrimaryAccounts ComparePrimaryAccounts(bool primary_accounts_same, |
18 int pre_count_gaia_cookies) { | 17 int pre_count_gaia_cookies) { |
19 if (primary_accounts_same) | 18 if (primary_accounts_same) |
20 return ACCOUNTS_SAME; | 19 return ACCOUNTS_SAME; |
21 if (pre_count_gaia_cookies == 0) | 20 if (pre_count_gaia_cookies == 0) |
(...skipping 169 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
191 "Signin.CookieJar.ChromeAccountRelation", type, | 190 "Signin.CookieJar.ChromeAccountRelation", type, |
192 static_cast<int>(relation), | 191 static_cast<int>(relation), |
193 static_cast<int>(AccountRelation::HISTOGRAM_COUNT)); | 192 static_cast<int>(AccountRelation::HISTOGRAM_COUNT)); |
194 } | 193 } |
195 | 194 |
196 void LogIsShared(const bool is_shared, const ReportingType type) { | 195 void LogIsShared(const bool is_shared, const ReportingType type) { |
197 INVESTIGATOR_HISTOGRAM_BOOLEAN("Signin.IsShared", type, is_shared); | 196 INVESTIGATOR_HISTOGRAM_BOOLEAN("Signin.IsShared", type, is_shared); |
198 } | 197 } |
199 | 198 |
200 } // namespace signin_metrics | 199 } // namespace signin_metrics |
OLD | NEW |