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

Unified Diff: chrome/browser/browsing_data/browsing_data_remover.cc

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: Unify implementation in permission_context_base, make log static Created 4 years, 4 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/browsing_data/browsing_data_remover.cc
diff --git a/chrome/browser/browsing_data/browsing_data_remover.cc b/chrome/browser/browsing_data/browsing_data_remover.cc
index d92f382b086a60a8fd8146b59027aea39bef7c05..8b9774ac4737bb0335bb95e1097e761aebc2ba37 100644
--- a/chrome/browser/browsing_data/browsing_data_remover.cc
+++ b/chrome/browser/browsing_data/browsing_data_remover.cc
@@ -32,6 +32,7 @@
#include "chrome/browser/net/spdyproxy/data_reduction_proxy_chrome_settings.h"
#include "chrome/browser/net/spdyproxy/data_reduction_proxy_chrome_settings_factory.h"
#include "chrome/browser/password_manager/password_store_factory.h"
+#include "chrome/browser/permissions/permission_prompt_decision_log.h"
#include "chrome/browser/prerender/prerender_manager.h"
#include "chrome/browser/prerender/prerender_manager_factory.h"
#include "chrome/browser/profiles/profile.h"
@@ -457,6 +458,9 @@ void BrowsingDataRemover::RemoveImpl(
extension_prefs->ClearLastLaunchTimes();
#endif
+ // Clear permission dismissal counts as they are origin-keyed.
+ PermissionPromptDecisionLog::RemoveCountsByUrl(profile_, filter);
+
// The power consumption history by origin contains details of websites
// that were visited.
// TODO(dmurph): Support all backends with filter (crbug.com/113621).

Powered by Google App Engine
This is Rietveld 408576698