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

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

Issue 471543002: Add more detailed UMA reporting on enrollment errors. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 4 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 167 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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_
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/login/enrollment/enrollment_screen.cc ('k') | tools/metrics/histograms/histograms.xml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698