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

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

Issue 2690543004: Add UMA for recording embargo reasons and autoblocker interactions. (Closed)
Patch Set: Address comment 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 8a603ef2360b9a61b0957a8c9049cae69797fe99..e486c84185c6258f03f055a8bf85409d0811ff1e 100644
--- a/chrome/browser/permissions/permission_uma_util.h
+++ b/chrome/browser/permissions/permission_uma_util.h
@@ -76,6 +76,15 @@ 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:
@@ -125,8 +134,13 @@ class PermissionUmaUtil {
PermissionSourceUI source_ui,
const GURL& revoked_origin,
Profile* profile);
+
+ static void RecordPermissionEmbargoStatus(
+ PermissionEmbargoStatus embargo_status);
+
static void RecordSafeBrowsingResponse(base::TimeDelta response_time,
SafeBrowsingResponse response);
+
// UMA specifically for when permission prompts are shown. This should be
// roughly equivalent to the metrics above, however it is
// useful to have separate UMA to a few reasons:
« 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