Index: chrome/browser/permissions/permission_uma_util.h |
diff --git a/chrome/browser/permissions/permission_uma_util.h b/chrome/browser/permissions/permission_uma_util.h |
index 6a4de41138ea822c4d3d34a8a02fc0a414bc5ce3..de92418b9a0aa216210a385293d73a3ab9e41ddd 100644 |
--- a/chrome/browser/permissions/permission_uma_util.h |
+++ b/chrome/browser/permissions/permission_uma_util.h |
@@ -48,6 +48,16 @@ enum SafeBrowsingResponse { |
RESPONSE_NUM, |
}; |
+// Any new values should be inserted immediately prior to STATUS_NUM. |
+enum PermissionEmbargoStatus { |
+ NOT_EMBARGOED = 0, |
+ PERMISSIONS_BLACKLISTING = 1, |
+ REPEATED_DISMISSALS = 2, |
+ |
+ // Keep this at the end. |
+ STATUS_NUM, |
+}; |
+ |
// A bundle for the information sent in a PermissionReport. |
struct PermissionReportInfo { |
PermissionReportInfo( |
@@ -72,15 +82,6 @@ struct PermissionReportInfo { |
int num_prior_ignores; |
}; |
-enum PermissionEmbargoStatus { |
- NOT_EMBARGOED = 0, |
- PERMISSIONS_BLACKLISTING = 1, |
- REPEATED_DISMISSALS = 2, |
- |
- // Keep this at the end. |
- STATUS_NUM, |
-}; |
- |
// Provides a convenient way of logging UMA for permission related operations. |
class PermissionUmaUtil { |
public: |
@@ -131,9 +132,14 @@ class PermissionUmaUtil { |
const GURL& revoked_origin, |
Profile* profile); |
- static void RecordPermissionEmbargoStatus( |
+ static void RecordEmbargoPromptSuppression( |
PermissionEmbargoStatus embargo_status); |
+ static void RecordEmbargoPromptSuppressionFromSource( |
+ PermissionStatusSource source); |
+ |
+ static void RecordEmbargoStatus(PermissionEmbargoStatus embargo_status); |
+ |
static void RecordSafeBrowsingResponse(base::TimeDelta response_time, |
SafeBrowsingResponse response); |