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

Unified Diff: chrome/browser/permissions/permission_decision_auto_blocker.cc

Issue 2772513004: Disable permissions embargo for plugins. (Closed)
Patch Set: 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
« no previous file with comments | « no previous file | chrome/browser/permissions/permission_decision_auto_blocker_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/permissions/permission_decision_auto_blocker.cc
diff --git a/chrome/browser/permissions/permission_decision_auto_blocker.cc b/chrome/browser/permissions/permission_decision_auto_blocker.cc
index 4dcc5fa94e37834bcfe3a68b5c09ad93c9e9c56f..3e9db0459135eed89f624672c55b0f5cf9bcf157 100644
--- a/chrome/browser/permissions/permission_decision_auto_blocker.cc
+++ b/chrome/browser/permissions/permission_decision_auto_blocker.cc
@@ -280,6 +280,7 @@ bool PermissionDecisionAutoBlocker::RecordDismissAndEmbargo(
url, permission, kPromptDismissCountKey, profile_);
if (base::FeatureList::IsEnabled(features::kBlockPromptsIfDismissedOften) &&
+ permission != CONTENT_SETTINGS_TYPE_PLUGINS &&
benwells 2017/03/23 04:39:25 I think it would be cleaner to place this in Permi
dominickn 2017/03/23 04:45:22 That would mean also placing the logic in Permissi
current_dismissal_count >= g_prompt_dismissals_before_block) {
PlaceUnderEmbargo(url, permission, kPermissionDismissalEmbargoKey);
return true;
« no previous file with comments | « no previous file | chrome/browser/permissions/permission_decision_auto_blocker_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698