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 <limits.h> | 8 #include <limits.h> |
9 | 9 |
10 #include "base/time/time.h" | 10 #include "base/time/time.h" |
(...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
131 ACCESS_POINT_BOOKMARK_MANAGER, | 131 ACCESS_POINT_BOOKMARK_MANAGER, |
132 ACCESS_POINT_AVATAR_BUBBLE_SIGN_IN, | 132 ACCESS_POINT_AVATAR_BUBBLE_SIGN_IN, |
133 ACCESS_POINT_USER_MANAGER, | 133 ACCESS_POINT_USER_MANAGER, |
134 ACCESS_POINT_DEVICES_PAGE, | 134 ACCESS_POINT_DEVICES_PAGE, |
135 ACCESS_POINT_CLOUD_PRINT, | 135 ACCESS_POINT_CLOUD_PRINT, |
136 ACCESS_POINT_CONTENT_AREA, | 136 ACCESS_POINT_CONTENT_AREA, |
137 ACCESS_POINT_SIGNIN_PROMO, | 137 ACCESS_POINT_SIGNIN_PROMO, |
138 ACCESS_POINT_RECENT_TABS, | 138 ACCESS_POINT_RECENT_TABS, |
139 ACCESS_POINT_UNKNOWN, // This should never have been used to get signin URL. | 139 ACCESS_POINT_UNKNOWN, // This should never have been used to get signin URL. |
140 ACCESS_POINT_PASSWORD_BUBBLE, | 140 ACCESS_POINT_PASSWORD_BUBBLE, |
141 ACCESS_POINT_MAX, // This must be last. | 141 ACCESS_POINT_AUTOFILL_DROPDOWN, |
| 142 ACCESS_POINT_MAX, // This must be last. |
142 }; | 143 }; |
143 | 144 |
144 // Enum values which enumerates all reasons to start sign in process. | 145 // Enum values which enumerates all reasons to start sign in process. |
145 // A Java counterpart will be generated for this enum. | 146 // A Java counterpart will be generated for this enum. |
146 // GENERATED_JAVA_ENUM_PACKAGE: org.chromium.chrome.browser.signin | 147 // GENERATED_JAVA_ENUM_PACKAGE: org.chromium.chrome.browser.signin |
147 // GENERATED_JAVA_CLASS_NAME_OVERRIDE: SigninReason | 148 // GENERATED_JAVA_CLASS_NAME_OVERRIDE: SigninReason |
148 enum class Reason : int { | 149 enum class Reason : int { |
149 REASON_SIGNIN_PRIMARY_ACCOUNT = 0, | 150 REASON_SIGNIN_PRIMARY_ACCOUNT = 0, |
150 REASON_ADD_SECONDARY_ACCOUNT, | 151 REASON_ADD_SECONDARY_ACCOUNT, |
151 REASON_REAUTHENTICATION, | 152 REASON_REAUTHENTICATION, |
(...skipping 250 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
402 UMA_HISTOGRAM_ENUMERATION(name "_Periodic", sample, boundary_value); \ | 403 UMA_HISTOGRAM_ENUMERATION(name "_Periodic", sample, boundary_value); \ |
403 break; \ | 404 break; \ |
404 case ReportingType::ON_CHANGE: \ | 405 case ReportingType::ON_CHANGE: \ |
405 UMA_HISTOGRAM_ENUMERATION(name "_OnChange", sample, boundary_value); \ | 406 UMA_HISTOGRAM_ENUMERATION(name "_OnChange", sample, boundary_value); \ |
406 break; \ | 407 break; \ |
407 } | 408 } |
408 | 409 |
409 } // namespace signin_metrics | 410 } // namespace signin_metrics |
410 | 411 |
411 #endif // COMPONENTS_SIGNIN_CORE_BROWSER_SIGNIN_METRICS_H_ | 412 #endif // COMPONENTS_SIGNIN_CORE_BROWSER_SIGNIN_METRICS_H_ |
OLD | NEW |