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 147 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
158 // fetched from the DM Server. | 158 // fetched from the DM Server. |
159 kMetricEnrollmentRobotAuthCodeFetchFailed, | 159 kMetricEnrollmentRobotAuthCodeFetchFailed, |
160 // Enrollment failed because the robot account auth code couldn't be | 160 // Enrollment failed because the robot account auth code couldn't be |
161 // exchanged for a refresh token. | 161 // exchanged for a refresh token. |
162 kMetricEnrollmentRobotRefreshTokenFetchFailed, | 162 kMetricEnrollmentRobotRefreshTokenFetchFailed, |
163 // Enrollment failed because the robot account refresh token couldn't be | 163 // Enrollment failed because the robot account refresh token couldn't be |
164 // persisted on the device. | 164 // persisted on the device. |
165 kMetricEnrollmentRobotRefreshTokenStoreFailed, | 165 kMetricEnrollmentRobotRefreshTokenStoreFailed, |
166 // Enrollment failed because the administrator has deprovisioned the device. | 166 // Enrollment failed because the administrator has deprovisioned the device. |
167 kMetricEnrollmentDeprovisioned, | 167 kMetricEnrollmentDeprovisioned, |
168 // Enrollment failed because the device doesn't belong to the domain. | |
169 kMetricEnrollmentDomainMismatch, | |
170 | 168 |
171 kMetricEnrollmentSize // Must be the last. | 169 kMetricEnrollmentSize // Must be the last. |
172 }; | 170 }; |
173 | 171 |
174 // Events related to policy refresh. | 172 // Events related to policy refresh. |
175 enum MetricPolicyRefresh { | 173 enum MetricPolicyRefresh { |
176 // A refresh occurred while the policy was not invalidated and the policy was | 174 // A refresh occurred while the policy was not invalidated and the policy was |
177 // changed. Invalidations were enabled. | 175 // changed. Invalidations were enabled. |
178 METRIC_POLICY_REFRESH_CHANGED, | 176 METRIC_POLICY_REFRESH_CHANGED, |
179 // A refresh occurred while the policy was not invalidated and the policy was | 177 // A refresh occurred while the policy was not invalidated and the policy was |
(...skipping 17 matching lines...) Expand all Loading... |
197 // the same UMA histogram name. | 195 // the same UMA histogram name. |
198 POLICY_EXPORT extern const char kMetricToken[]; | 196 POLICY_EXPORT extern const char kMetricToken[]; |
199 POLICY_EXPORT extern const char kMetricPolicy[]; | 197 POLICY_EXPORT extern const char kMetricPolicy[]; |
200 POLICY_EXPORT extern const char kMetricEnrollment[]; | 198 POLICY_EXPORT extern const char kMetricEnrollment[]; |
201 POLICY_EXPORT extern const char kMetricPolicyRefresh[]; | 199 POLICY_EXPORT extern const char kMetricPolicyRefresh[]; |
202 POLICY_EXPORT extern const char kMetricPolicyInvalidations[]; | 200 POLICY_EXPORT extern const char kMetricPolicyInvalidations[]; |
203 | 201 |
204 } // namespace policy | 202 } // namespace policy |
205 | 203 |
206 #endif // COMPONENTS_POLICY_CORE_COMMON_CLOUD_ENTERPRISE_METRICS_H_ | 204 #endif // COMPONENTS_POLICY_CORE_COMMON_CLOUD_ENTERPRISE_METRICS_H_ |
OLD | NEW |