| 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 fc91244aa30c1c3f55537c5e7dffe7ad0914a842..c256c997d5014a733c6dad24f3962aa9e9688aa7 100644
|
| --- a/chrome/browser/permissions/permission_uma_util.h
|
| +++ b/chrome/browser/permissions/permission_uma_util.h
|
| @@ -35,6 +35,18 @@ enum PermissionAction {
|
| PERMISSION_ACTION_NUM,
|
| };
|
|
|
| +// This should stay in sync with the SourceUI enum in the permission report
|
| +// protobuf (src/chrome/common/safe_browsing/permission_report.proto).
|
| +enum class PermissionSourceUI {
|
| + PROMPT = 0,
|
| + OIB = 1,
|
| + SITE_SETTINGS = 2,
|
| + PAGE_ACTION = 3,
|
| +
|
| + // Always keep this at the end.
|
| + SOURCE_UI_NUM,
|
| +};
|
| +
|
| // Provides a convenient way of logging UMA for permission related operations.
|
| class PermissionUmaUtil {
|
| public:
|
| @@ -63,6 +75,7 @@ class PermissionUmaUtil {
|
| const GURL& requesting_origin,
|
| Profile* profile);
|
| static void PermissionRevoked(content::PermissionType permission,
|
| + PermissionSourceUI source_ui,
|
| const GURL& revoked_origin,
|
| Profile* profile);
|
|
|
| @@ -97,6 +110,7 @@ class PermissionUmaUtil {
|
|
|
| static void RecordPermissionAction(content::PermissionType permission,
|
| PermissionAction action,
|
| + PermissionSourceUI source_ui,
|
| const GURL& requesting_origin,
|
| Profile* profile);
|
|
|
|
|