Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(309)

Side by Side Diff: components/policy/core/common/cloud/enterprise_metrics.h

Issue 2371213002: Refactor: Inject StatisticsProvider as a dependency of DeviceCloudPolicyInitializer. (Closed)
Patch Set: Address Maksim's comments. Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 206 matching lines...) Expand 10 before | Expand all | Expand 10 after
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. 225 // The request to enroll could not be signed.
226 kMetricEnrollmentRegisterCannotSignRequest = 53, 226 kMetricEnrollmentRegisterCannotSignRequest = 53,
227 // Device model or serial number missing from VPD.
228 kMetricEnrollmentNoDeviceIdentification = 54,
227 }; 229 };
228 230
229 // Events related to policy refresh. 231 // Events related to policy refresh.
230 // This enum is used to define the buckets for an enumerated UMA histogram. 232 // This enum is used to define the buckets for an enumerated UMA histogram.
231 // Hence, 233 // Hence,
232 // (a) existing enumerated constants should never be deleted or reordered, and 234 // (a) existing enumerated constants should never be deleted or reordered, and
233 // (b) new constants should only be appended at the end of the enumeration. 235 // (b) new constants should only be appended at the end of the enumeration.
234 enum MetricPolicyRefresh { 236 enum MetricPolicyRefresh {
235 // A refresh occurred while the policy was not invalidated and the policy was 237 // A refresh occurred while the policy was not invalidated and the policy was
236 // changed. Invalidations were enabled. 238 // changed. Invalidations were enabled.
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
275 POLICY_EXPORT extern const char kMetricToken[]; 277 POLICY_EXPORT extern const char kMetricToken[];
276 POLICY_EXPORT extern const char kMetricPolicy[]; 278 POLICY_EXPORT extern const char kMetricPolicy[];
277 POLICY_EXPORT extern const char kMetricUserPolicyRefresh[]; 279 POLICY_EXPORT extern const char kMetricUserPolicyRefresh[];
278 POLICY_EXPORT extern const char kMetricUserPolicyInvalidations[]; 280 POLICY_EXPORT extern const char kMetricUserPolicyInvalidations[];
279 POLICY_EXPORT extern const char kMetricDevicePolicyRefresh[]; 281 POLICY_EXPORT extern const char kMetricDevicePolicyRefresh[];
280 POLICY_EXPORT extern const char kMetricDevicePolicyInvalidations[]; 282 POLICY_EXPORT extern const char kMetricDevicePolicyInvalidations[];
281 283
282 } // namespace policy 284 } // namespace policy
283 285
284 #endif // COMPONENTS_POLICY_CORE_COMMON_CLOUD_ENTERPRISE_METRICS_H_ 286 #endif // COMPONENTS_POLICY_CORE_COMMON_CLOUD_ENTERPRISE_METRICS_H_
OLDNEW
« no previous file with comments | « components/policy/core/common/cloud/cloud_policy_client.h ('k') | tools/metrics/histograms/histograms.xml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698