| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_POLICY_CORE_COMMON_CLOUD_ENTERPRISE_METRICS_H_ | 5 #ifndef COMPONENTS_POLICY_CORE_COMMON_CLOUD_ENTERPRISE_METRICS_H_ |
| 6 #define COMPONENTS_POLICY_CORE_COMMON_CLOUD_ENTERPRISE_METRICS_H_ | 6 #define COMPONENTS_POLICY_CORE_COMMON_CLOUD_ENTERPRISE_METRICS_H_ |
| 7 | 7 |
| 8 #include "components/policy/policy_export.h" | 8 #include "components/policy/policy_export.h" |
| 9 | 9 |
| 10 namespace policy { | 10 namespace policy { |
| (...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 160 // Enrollment failed because the robot account auth code couldn't be | 160 // Enrollment failed because the robot account auth code couldn't be |
| 161 // exchanged for a refresh token. | 161 // exchanged for a refresh token. |
| 162 kMetricEnrollmentRobotRefreshTokenFetchFailed, | 162 kMetricEnrollmentRobotRefreshTokenFetchFailed, |
| 163 // Enrollment failed because the robot account refresh token couldn't be | 163 // Enrollment failed because the robot account refresh token couldn't be |
| 164 // persisted on the device. | 164 // persisted on the device. |
| 165 kMetricEnrollmentRobotRefreshTokenStoreFailed, | 165 kMetricEnrollmentRobotRefreshTokenStoreFailed, |
| 166 // Enrollment failed because the administrator has deprovisioned the device. | 166 // Enrollment failed because the administrator has deprovisioned the device. |
| 167 kMetricEnrollmentDeprovisioned, | 167 kMetricEnrollmentDeprovisioned, |
| 168 // Enrollment failed because the device doesn't belong to the domain. | 168 // Enrollment failed because the device doesn't belong to the domain. |
| 169 kMetricEnrollmentDomainMismatch, | 169 kMetricEnrollmentDomainMismatch, |
| 170 // Enrollment has been triggered, the credential screen has been shown. |
| 171 kMetricEnrollmentTriggered, |
| 172 // The user retried to submitted credentials. |
| 173 kMetricEnrollmentRetried, |
| 170 | 174 |
| 171 kMetricEnrollmentSize // Must be the last. | 175 kMetricEnrollmentSize // Must be the last. |
| 172 }; | 176 }; |
| 173 | 177 |
| 174 // Events related to policy refresh. | 178 // Events related to policy refresh. |
| 175 enum MetricPolicyRefresh { | 179 enum MetricPolicyRefresh { |
| 176 // A refresh occurred while the policy was not invalidated and the policy was | 180 // A refresh occurred while the policy was not invalidated and the policy was |
| 177 // changed. Invalidations were enabled. | 181 // changed. Invalidations were enabled. |
| 178 METRIC_POLICY_REFRESH_CHANGED, | 182 METRIC_POLICY_REFRESH_CHANGED, |
| 179 // A refresh occurred while the policy was not invalidated and the policy was | 183 // A refresh occurred while the policy was not invalidated and the policy was |
| (...skipping 25 matching lines...) Expand all Loading... |
| 205 | 209 |
| 206 POLICY_INVALIDATION_TYPE_SIZE // Must be the last. | 210 POLICY_INVALIDATION_TYPE_SIZE // Must be the last. |
| 207 }; | 211 }; |
| 208 | 212 |
| 209 // Names for the UMA counters. They are shared from here since the events | 213 // Names for the UMA counters. They are shared from here since the events |
| 210 // from the same enum above can be triggered in different files, and must use | 214 // from the same enum above can be triggered in different files, and must use |
| 211 // the same UMA histogram name. | 215 // the same UMA histogram name. |
| 212 POLICY_EXPORT extern const char kMetricToken[]; | 216 POLICY_EXPORT extern const char kMetricToken[]; |
| 213 POLICY_EXPORT extern const char kMetricPolicy[]; | 217 POLICY_EXPORT extern const char kMetricPolicy[]; |
| 214 POLICY_EXPORT extern const char kMetricEnrollment[]; | 218 POLICY_EXPORT extern const char kMetricEnrollment[]; |
| 219 POLICY_EXPORT extern const char kMetricEnrollmentRecovery[]; |
| 215 POLICY_EXPORT extern const char kMetricPolicyRefresh[]; | 220 POLICY_EXPORT extern const char kMetricPolicyRefresh[]; |
| 216 POLICY_EXPORT extern const char kMetricPolicyInvalidations[]; | 221 POLICY_EXPORT extern const char kMetricPolicyInvalidations[]; |
| 217 | 222 |
| 218 } // namespace policy | 223 } // namespace policy |
| 219 | 224 |
| 220 #endif // COMPONENTS_POLICY_CORE_COMMON_CLOUD_ENTERPRISE_METRICS_H_ | 225 #endif // COMPONENTS_POLICY_CORE_COMMON_CLOUD_ENTERPRISE_METRICS_H_ |
| OLD | NEW |