| Index: chrome/browser/policy/cloud/enterprise_metrics.h
|
| diff --git a/chrome/browser/policy/cloud/enterprise_metrics.h b/chrome/browser/policy/cloud/enterprise_metrics.h
|
| index 6d262e0a45a6f1f0f7b73c096636cd05713fa1f4..bb334539b23a3377096c5fc2b27ac66411a4b88b 100644
|
| --- a/chrome/browser/policy/cloud/enterprise_metrics.h
|
| +++ b/chrome/browser/policy/cloud/enterprise_metrics.h
|
| @@ -159,12 +159,35 @@ enum MetricEnrollment {
|
| kMetricEnrollmentSize // Must be the last.
|
| };
|
|
|
| +// Events related to policy refresh.
|
| +enum MetricPolicyRefresh {
|
| + // A refresh occurred while the policy was not invalidated and the policy was
|
| + // changed. Invalidations were enabled.
|
| + METRIC_POLICY_REFRESH_CHANGED,
|
| + // A refresh occurred while the policy was not invalidated and the policy was
|
| + // changed. Invalidations were disabled.
|
| + METRIC_POLICY_REFRESH_CHANGED_NO_INVALIDATIONS,
|
| + // A refresh occurred while the policy was not invalidated and the policy was
|
| + // unchanged.
|
| + METRIC_POLICY_REFRESH_UNCHANGED,
|
| + // A refresh occurred while the policy was invalidated and the policy was
|
| + // changed.
|
| + METRIC_POLICY_REFRESH_INVALIDATED_CHANGED,
|
| + // A refresh occurred while the policy was invalidated and the policy was
|
| + // unchanged.
|
| + METRIC_POLICY_REFRESH_INVALIDATED_UNCHANGED,
|
| +
|
| + METRIC_POLICY_REFRESH_SIZE // Must be the last.
|
| +};
|
| +
|
| // Names for the UMA counters. They are shared from here since the events
|
| // from the same enum above can be triggered in different files, and must use
|
| // the same UMA histogram name.
|
| -extern const char* kMetricToken;
|
| -extern const char* kMetricPolicy;
|
| -extern const char* kMetricEnrollment;
|
| +extern const char kMetricToken[];
|
| +extern const char kMetricPolicy[];
|
| +extern const char kMetricEnrollment[];
|
| +extern const char kMetricPolicyRefresh[];
|
| +extern const char kMetricPolicyInvalidations[];
|
|
|
| } // namespace policy
|
|
|
|
|