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

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

Issue 2790493002: Implement permissions embargo for prompts which are repeatedly ignored. (Closed)
Patch Set: Not for plugins Created 3 years, 9 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_result.h
diff --git a/chrome/browser/permissions/permission_result.h b/chrome/browser/permissions/permission_result.h
index 04d2fdaedb42b3d37a72aa028cf0d6ab76015195..1173c4aeb5397b4807604acbf713c91f764b4879 100644
--- a/chrome/browser/permissions/permission_result.h
+++ b/chrome/browser/permissions/permission_result.h
@@ -7,22 +7,25 @@
#include "components/content_settings/core/common/content_settings.h"
-// Identifies the source or reason for a permission status being returned. This
-// enum backs an UMA histogram and must be treated as append-only.
+// Identifies the source or reason for a permission status being returned.
enum class PermissionStatusSource {
// The reason for the status is not specified.
UNSPECIFIED,
- // The status is the result of being blocked due to the user dismissing a
- // permission prompt multiple times.
- MULTIPLE_DISMISSALS,
-
// The status is the result of being blocked because the permission is on the
// safe browsing blacklist.
SAFE_BROWSING_BLACKLIST,
// The status is the result of being blocked by the permissions kill switch.
KILL_SWITCH,
+
+ // The status is the result of being blocked due to the user dismissing a
+ // permission prompt multiple times.
+ MULTIPLE_DISMISSALS,
+
+ // The status is the result of being blocked due to the user ignoring a
+ // permission prompt multiple times.
+ MULTIPLE_IGNORES,
};
struct PermissionResult {
« no previous file with comments | « chrome/browser/permissions/permission_request_impl.cc ('k') | chrome/browser/permissions/permission_uma_util.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698