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..0e30532b647d4d1c338a3ef4b5ae6a1560e66c69 100644 |
--- a/chrome/browser/policy/cloud/enterprise_metrics.h |
+++ b/chrome/browser/policy/cloud/enterprise_metrics.h |
@@ -159,12 +159,45 @@ 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. |
+ kMetricPolicyRefreshChanged, |
+ // A refresh occurred while the policy was not invalidated and the policy was |
+ // changed. Invalidations were disabled. |
+ kMetricPolicyRefreshChangedNoInvalidations, |
+ // A refresh occurred while the policy was not invalidated and the policy was |
+ // unchanged. |
+ kMetricPolicyRefreshUnchanged, |
+ // A refresh occurred while the policy was invalidated and the policy was |
+ // changed. |
+ kMetricPolicyRefreshInvalidatedChanged, |
+ // A refresh occurred while the policy was invalidated and the policy was |
+ // unchanged. |
+ kMetricPolicyRefreshInvalidatedUnchanged, |
+ |
+ kMetricPolicyRefreshSize // Must be the last. |
Ilya Sherman
2013/07/30 01:23:16
nit: I see that this isn't the style being used in
Steve Condie
2013/07/30 06:12:31
Done.
|
+}; |
+ |
+// Events related to policy invalidations. |
+enum MetricPolicyInvalidations { |
+ // A invalidation with a payload was received. |
+ kMetricPolicyInvalidationsPayload, |
+ // A invalidation with no payload was received. |
+ kMetricPolicyInvalidationsNoPayload, |
+ |
+ kMetricPolicyInvalidationsSize // 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* kMetricPolicyRefresh; |
+extern const char* kMetricPolicyInvalidations; |
} // namespace policy |