Chromium Code Reviews| 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 f16361737f09855b8c60492354361cddbffb109f..2df45b05e43e1ebac5d84916b6ae72fd8695c398 100644 |
| --- a/chrome/browser/permissions/permission_uma_util.h |
| +++ b/chrome/browser/permissions/permission_uma_util.h |
| @@ -51,15 +51,20 @@ class PermissionUmaUtil { |
| const GURL& embedding_origin, |
| Profile* profile); |
| static void PermissionGranted(content::PermissionType permission, |
| - const GURL& requesting_origin); |
| + const GURL& requesting_origin, |
| + Profile* profile); |
| static void PermissionDenied(content::PermissionType permission, |
| - const GURL& requesting_origin); |
| + const GURL& requesting_origin, |
| + Profile* profile); |
| static void PermissionDismissed(content::PermissionType permission, |
| - const GURL& requesting_origin); |
| + const GURL& requesting_origin, |
| + Profile* profile); |
| static void PermissionIgnored(content::PermissionType permission, |
| - const GURL& requesting_origin); |
| + const GURL& requesting_origin, |
| + Profile* profile); |
| static void PermissionRevoked(content::PermissionType permission, |
| - const GURL& revoked_origin); |
| + const GURL& revoked_origin, |
| + Profile* profile); |
| // UMA specifically for when permission prompts are shown. This should be |
| // roughly equivalent to the metrics above, however it is |
| @@ -86,7 +91,16 @@ class PermissionUmaUtil { |
| const std::vector<PermissionBubbleRequest*>& requests); |
| private: |
| + friend class PermissionUmaUtilTest; |
| + |
| DISALLOW_IMPLICIT_CONSTRUCTORS(PermissionUmaUtil); |
| + |
| + static bool IsOptedInPermissionActionReporting(Profile* profile); |
|
kcarattini
2016/07/06 01:44:34
nit:IsOptedInPermissionActionReporting -> IsOptedI
stefanocs
2016/07/06 04:25:45
Done.
|
| + |
| + static void RecordPermissionAction(content::PermissionType permission, |
| + PermissionAction action, |
| + const GURL& requesting_origin, |
| + Profile* profile); |
| }; |
| #endif // CHROME_BROWSER_PERMISSIONS_PERMISSION_UMA_UTIL_H_ |