| 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:
|
|
|