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 198 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
209 // Lockbox backend failed to initialize. | 209 // Lockbox backend failed to initialize. |
210 kMetricEnrollmentLockBackendInvalid = 45, | 210 kMetricEnrollmentLockBackendInvalid = 45, |
211 // Lockbox backend (TPM) already locked. | 211 // Lockbox backend (TPM) already locked. |
212 kMetricEnrollmentLockAlreadyLocked = 46, | 212 kMetricEnrollmentLockAlreadyLocked = 46, |
213 // Lockbox failure setting attributes. | 213 // Lockbox failure setting attributes. |
214 kMetricEnrollmentLockSetError = 47, | 214 kMetricEnrollmentLockSetError = 47, |
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 name a device. |
| 220 kMetricEnrollmentDeviceNamingFailed = 50, |
219 }; | 221 }; |
220 | 222 |
221 // Events related to policy refresh. | 223 // Events related to policy refresh. |
222 // This enum is used to define the buckets for an enumerated UMA histogram. | 224 // This enum is used to define the buckets for an enumerated UMA histogram. |
223 // Hence, | 225 // Hence, |
224 // (a) existing enumerated constants should never be deleted or reordered, and | 226 // (a) existing enumerated constants should never be deleted or reordered, and |
225 // (b) new constants should only be appended at the end of the enumeration. | 227 // (b) new constants should only be appended at the end of the enumeration. |
226 enum MetricPolicyRefresh { | 228 enum MetricPolicyRefresh { |
227 // A refresh occurred while the policy was not invalidated and the policy was | 229 // A refresh occurred while the policy was not invalidated and the policy was |
228 // changed. Invalidations were enabled. | 230 // changed. Invalidations were enabled. |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
267 POLICY_EXPORT extern const char kMetricToken[]; | 269 POLICY_EXPORT extern const char kMetricToken[]; |
268 POLICY_EXPORT extern const char kMetricPolicy[]; | 270 POLICY_EXPORT extern const char kMetricPolicy[]; |
269 POLICY_EXPORT extern const char kMetricUserPolicyRefresh[]; | 271 POLICY_EXPORT extern const char kMetricUserPolicyRefresh[]; |
270 POLICY_EXPORT extern const char kMetricUserPolicyInvalidations[]; | 272 POLICY_EXPORT extern const char kMetricUserPolicyInvalidations[]; |
271 POLICY_EXPORT extern const char kMetricDevicePolicyRefresh[]; | 273 POLICY_EXPORT extern const char kMetricDevicePolicyRefresh[]; |
272 POLICY_EXPORT extern const char kMetricDevicePolicyInvalidations[]; | 274 POLICY_EXPORT extern const char kMetricDevicePolicyInvalidations[]; |
273 | 275 |
274 } // namespace policy | 276 } // namespace policy |
275 | 277 |
276 #endif // COMPONENTS_POLICY_CORE_COMMON_CLOUD_ENTERPRISE_METRICS_H_ | 278 #endif // COMPONENTS_POLICY_CORE_COMMON_CLOUD_ENTERPRISE_METRICS_H_ |
OLD | NEW |