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 204 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
215 // Lockbox failure during locking. | 215 // Lockbox failure during locking. |
216 kMetricEnrollmentLockFinalizeError = 48, | 216 kMetricEnrollmentLockFinalizeError = 48, |
217 // Lockbox read back is inconsistent. | 217 // Lockbox read back is inconsistent. |
218 kMetricEnrollmentLockReadbackError = 49, | 218 kMetricEnrollmentLockReadbackError = 49, |
219 // Failed to update device attributes. | 219 // Failed to update device attributes. |
220 kMetricEnrollmentAttributeUpdateFailed = 50, | 220 kMetricEnrollmentAttributeUpdateFailed = 50, |
221 // Enrollment mode does not match already locked install attributes. | 221 // Enrollment mode does not match already locked install attributes. |
222 kMetricEnrollmentLockModeMismatch = 51, | 222 kMetricEnrollmentLockModeMismatch = 51, |
223 // A registration certificate could not be fetched from the PCA. | 223 // A registration certificate could not be fetched from the PCA. |
224 kMetricEnrollmentRegistrationCertificateFetchFailed = 52, | 224 kMetricEnrollmentRegistrationCertificateFetchFailed = 52, |
| 225 // The request to enroll could not be signed. |
| 226 kMetricEnrollmentRegisterCannotSignRequest = 53, |
225 }; | 227 }; |
226 | 228 |
227 // Events related to policy refresh. | 229 // Events related to policy refresh. |
228 // This enum is used to define the buckets for an enumerated UMA histogram. | 230 // This enum is used to define the buckets for an enumerated UMA histogram. |
229 // Hence, | 231 // Hence, |
230 // (a) existing enumerated constants should never be deleted or reordered, and | 232 // (a) existing enumerated constants should never be deleted or reordered, and |
231 // (b) new constants should only be appended at the end of the enumeration. | 233 // (b) new constants should only be appended at the end of the enumeration. |
232 enum MetricPolicyRefresh { | 234 enum MetricPolicyRefresh { |
233 // A refresh occurred while the policy was not invalidated and the policy was | 235 // A refresh occurred while the policy was not invalidated and the policy was |
234 // changed. Invalidations were enabled. | 236 // changed. Invalidations were enabled. |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
273 POLICY_EXPORT extern const char kMetricToken[]; | 275 POLICY_EXPORT extern const char kMetricToken[]; |
274 POLICY_EXPORT extern const char kMetricPolicy[]; | 276 POLICY_EXPORT extern const char kMetricPolicy[]; |
275 POLICY_EXPORT extern const char kMetricUserPolicyRefresh[]; | 277 POLICY_EXPORT extern const char kMetricUserPolicyRefresh[]; |
276 POLICY_EXPORT extern const char kMetricUserPolicyInvalidations[]; | 278 POLICY_EXPORT extern const char kMetricUserPolicyInvalidations[]; |
277 POLICY_EXPORT extern const char kMetricDevicePolicyRefresh[]; | 279 POLICY_EXPORT extern const char kMetricDevicePolicyRefresh[]; |
278 POLICY_EXPORT extern const char kMetricDevicePolicyInvalidations[]; | 280 POLICY_EXPORT extern const char kMetricDevicePolicyInvalidations[]; |
279 | 281 |
280 } // namespace policy | 282 } // namespace policy |
281 | 283 |
282 #endif // COMPONENTS_POLICY_CORE_COMMON_CLOUD_ENTERPRISE_METRICS_H_ | 284 #endif // COMPONENTS_POLICY_CORE_COMMON_CLOUD_ENTERPRISE_METRICS_H_ |
OLD | NEW |