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 211 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
222 // A registration certificate could not be fetched from the PCA. | 222 // A registration certificate could not be fetched from the PCA. |
223 kMetricEnrollmentRegistrationCertificateFetchFailed = 52, | 223 kMetricEnrollmentRegistrationCertificateFetchFailed = 52, |
224 // The request to enroll could not be signed. | 224 // The request to enroll could not be signed. |
225 kMetricEnrollmentRegisterCannotSignRequest = 53, | 225 kMetricEnrollmentRegisterCannotSignRequest = 53, |
226 // Device model or serial number missing from VPD. | 226 // Device model or serial number missing from VPD. |
227 kMetricEnrollmentNoDeviceIdentification = 54, | 227 kMetricEnrollmentNoDeviceIdentification = 54, |
228 // Active Directory policy fetch failed. | 228 // Active Directory policy fetch failed. |
229 kMetricEnrollmentActiveDirectoryPolicyFetchFailed = 55, | 229 kMetricEnrollmentActiveDirectoryPolicyFetchFailed = 55, |
230 // Failed to store DM token into the local state. | 230 // Failed to store DM token into the local state. |
231 kMetricEnrollmentStoreDMTokenFailed = 56, | 231 kMetricEnrollmentStoreDMTokenFailed = 56, |
232 // Failed to get available licenses. | |
233 kEnrollmentLicenseRequestFailed = 57, | |
emaxx
2017/07/07 14:32:34
nit: s/kEnrollmentLicenseRequestFailed/kMetricEnro
Denis Kuznetsov (DE-MUC)
2017/07/13 18:44:03
Done.
| |
232 }; | 234 }; |
233 | 235 |
234 // Events related to policy refresh. | 236 // Events related to policy refresh. |
235 // This enum is used to define the buckets for an enumerated UMA histogram. | 237 // This enum is used to define the buckets for an enumerated UMA histogram. |
236 // Hence, | 238 // Hence, |
237 // (a) existing enumerated constants should never be deleted or reordered, and | 239 // (a) existing enumerated constants should never be deleted or reordered, and |
238 // (b) new constants should only be appended at the end of the enumeration. | 240 // (b) new constants should only be appended at the end of the enumeration. |
239 enum MetricPolicyRefresh { | 241 enum MetricPolicyRefresh { |
240 // A refresh occurred while the policy was not invalidated and the policy was | 242 // A refresh occurred while the policy was not invalidated and the policy was |
241 // changed. Invalidations were enabled. | 243 // changed. Invalidations were enabled. |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
280 POLICY_EXPORT extern const char kMetricToken[]; | 282 POLICY_EXPORT extern const char kMetricToken[]; |
281 POLICY_EXPORT extern const char kMetricPolicy[]; | 283 POLICY_EXPORT extern const char kMetricPolicy[]; |
282 POLICY_EXPORT extern const char kMetricUserPolicyRefresh[]; | 284 POLICY_EXPORT extern const char kMetricUserPolicyRefresh[]; |
283 POLICY_EXPORT extern const char kMetricUserPolicyInvalidations[]; | 285 POLICY_EXPORT extern const char kMetricUserPolicyInvalidations[]; |
284 POLICY_EXPORT extern const char kMetricDevicePolicyRefresh[]; | 286 POLICY_EXPORT extern const char kMetricDevicePolicyRefresh[]; |
285 POLICY_EXPORT extern const char kMetricDevicePolicyInvalidations[]; | 287 POLICY_EXPORT extern const char kMetricDevicePolicyInvalidations[]; |
286 | 288 |
287 } // namespace policy | 289 } // namespace policy |
288 | 290 |
289 #endif // COMPONENTS_POLICY_CORE_COMMON_CLOUD_ENTERPRISE_METRICS_H_ | 291 #endif // COMPONENTS_POLICY_CORE_COMMON_CLOUD_ENTERPRISE_METRICS_H_ |
OLD | NEW |