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

Unified Diff: chrome/browser/permissions/permission_uma_util.h

Issue 2701343002: Implement permission embargo suppression metrics. (Closed)
Patch Set: Rebase Created 3 years, 10 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/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);
« no previous file with comments | « chrome/browser/permissions/permission_request_impl.cc ('k') | chrome/browser/permissions/permission_uma_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698