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

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

Issue 2184823007: Add a feature which, when enabled, blocks permissions after X prompt dismissals. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Improve test Created 4 years, 5 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_util.h
diff --git a/chrome/browser/permissions/permission_util.h b/chrome/browser/permissions/permission_util.h
index b0bf557b01e8930ca43e87c44250f4e530bf2f46..4b0f666c31630823b8c3ca6ff68b6822f7f44a11 100644
--- a/chrome/browser/permissions/permission_util.h
+++ b/chrome/browser/permissions/permission_util.h
@@ -7,7 +7,9 @@
#include <string>
+#include "base/feature_list.h"
#include "base/macros.h"
+#include "chrome/common/chrome_features.h"
#include "components/content_settings/core/common/content_settings.h"
#include "components/content_settings/core/common/content_settings_types.h"
#include "url/gurl.h"
@@ -67,6 +69,10 @@ class PermissionUtil {
bool is_initially_allowed_;
};
+ static bool ShouldChangeDismissalToBlock(Profile* profile,
+ const GURL& url,
+ content::PermissionType permission);
+
private:
DISALLOW_IMPLICIT_CONSTRUCTORS(PermissionUtil);
};

Powered by Google App Engine
This is Rietveld 408576698