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

Unified Diff: chrome/browser/policy/cloud/enterprise_metrics.h

Issue 19733003: Implement cloud policy invalidations using the invalidation service framework. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 7 years, 5 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 side-by-side diff with in-line comments
Download patch
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

Powered by Google App Engine
This is Rietveld 408576698