| 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 167 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 178 // Enrollment failed because the administrator has deprovisioned the device. | 178 // Enrollment failed because the administrator has deprovisioned the device. |
| 179 kMetricEnrollmentDeprovisioned = 22, | 179 kMetricEnrollmentDeprovisioned = 22, |
| 180 // Enrollment failed because the device doesn't belong to the domain. | 180 // Enrollment failed because the device doesn't belong to the domain. |
| 181 kMetricEnrollmentDomainMismatch = 23, | 181 kMetricEnrollmentDomainMismatch = 23, |
| 182 // Enrollment has been triggered, the credential screen has been shown. | 182 // Enrollment has been triggered, the credential screen has been shown. |
| 183 kMetricEnrollmentTriggered = 24, | 183 kMetricEnrollmentTriggered = 24, |
| 184 // The user retried to submitted credentials. | 184 // The user retried to submitted credentials. |
| 185 kMetricEnrollmentRetried = 25, | 185 kMetricEnrollmentRetried = 25, |
| 186 // Enrollment failed because DM token and device ID couldn't be stored. | 186 // Enrollment failed because DM token and device ID couldn't be stored. |
| 187 kMetricEnrollmentStoreTokenAndIdFailed = 26, | 187 kMetricEnrollmentStoreTokenAndIdFailed = 26, |
| 188 // Enrollment failed because FRE state keys couldn't be obtained. |
| 189 kMetricEnrollmentNoStateKeys = 27, |
| 190 // Enrollment failed because policy couldn't be validated. |
| 191 kMetricEnrollmentPolicyValidationFailed = 28, |
| 192 // Enrollment failed because of error in CloudPolicyStore. |
| 193 kMetricEnrollmentCloudPolicyStoreError = 29, |
| 194 // Enrollment failed because device couldn't be locked. |
| 195 kMetricEnrollmentLockBackendError = 30, |
| 188 | 196 |
| 189 kMetricEnrollmentSize // Must be the last. | 197 kMetricEnrollmentSize // Must be the last. |
| 190 }; | 198 }; |
| 191 | 199 |
| 192 // Events related to policy refresh. | 200 // Events related to policy refresh. |
| 193 // This enum is used to define the buckets for an enumerated UMA histogram. | 201 // This enum is used to define the buckets for an enumerated UMA histogram. |
| 194 // Hence, | 202 // Hence, |
| 195 // (a) existing enumerated constants should never be deleted or reordered, and | 203 // (a) existing enumerated constants should never be deleted or reordered, and |
| 196 // (b) new constants should only be appended at the end of the enumeration. | 204 // (b) new constants should only be appended at the end of the enumeration. |
| 197 enum MetricPolicyRefresh { | 205 enum MetricPolicyRefresh { |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 238 POLICY_EXPORT extern const char kMetricToken[]; | 246 POLICY_EXPORT extern const char kMetricToken[]; |
| 239 POLICY_EXPORT extern const char kMetricPolicy[]; | 247 POLICY_EXPORT extern const char kMetricPolicy[]; |
| 240 POLICY_EXPORT extern const char kMetricEnrollment[]; | 248 POLICY_EXPORT extern const char kMetricEnrollment[]; |
| 241 POLICY_EXPORT extern const char kMetricEnrollmentRecovery[]; | 249 POLICY_EXPORT extern const char kMetricEnrollmentRecovery[]; |
| 242 POLICY_EXPORT extern const char kMetricPolicyRefresh[]; | 250 POLICY_EXPORT extern const char kMetricPolicyRefresh[]; |
| 243 POLICY_EXPORT extern const char kMetricPolicyInvalidations[]; | 251 POLICY_EXPORT extern const char kMetricPolicyInvalidations[]; |
| 244 | 252 |
| 245 } // namespace policy | 253 } // namespace policy |
| 246 | 254 |
| 247 #endif // COMPONENTS_POLICY_CORE_COMMON_CLOUD_ENTERPRISE_METRICS_H_ | 255 #endif // COMPONENTS_POLICY_CORE_COMMON_CLOUD_ENTERPRISE_METRICS_H_ |
| OLD | NEW |