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

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

Issue 2386193004: Make all PermissionDecisionAutoBlocker methods static. (Closed)
Patch Set: Address comments Created 4 years, 2 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_context_base.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/browsing_data/browsing_data_remover_unittest.cc
diff --git a/chrome/browser/browsing_data/browsing_data_remover_unittest.cc b/chrome/browser/browsing_data/browsing_data_remover_unittest.cc
index c57e76dea6cabd79808c84fd1d3a2707e1ced516..76886a30b8c1cc43039eaa1ced582df057fd3ca9 100644
--- a/chrome/browser/browsing_data/browsing_data_remover_unittest.cc
+++ b/chrome/browser/browsing_data/browsing_data_remover_unittest.cc
@@ -1037,8 +1037,7 @@ class RemovePasswordsTester {
class RemovePermissionPromptCountsTest {
public:
explicit RemovePermissionPromptCountsTest(TestingProfile* profile)
- : blocker_(new PermissionDecisionAutoBlocker(profile)),
- profile_(profile) {}
+ : profile_(profile) {}
int GetDismissCount(const GURL& url, content::PermissionType permission) {
return PermissionDecisionAutoBlocker::GetDismissCount(
@@ -1051,16 +1050,17 @@ class RemovePermissionPromptCountsTest {
}
int RecordIgnore(const GURL& url, content::PermissionType permission) {
- return blocker_->RecordIgnore(url, permission);
+ return PermissionDecisionAutoBlocker::RecordIgnore(url, permission,
+ profile_);
}
bool ShouldChangeDismissalToBlock(const GURL& url,
content::PermissionType permission) {
- return blocker_->ShouldChangeDismissalToBlock(url, permission);
+ return PermissionDecisionAutoBlocker::ShouldChangeDismissalToBlock(
+ url, permission, profile_);
}
private:
- std::unique_ptr<PermissionDecisionAutoBlocker> blocker_;
TestingProfile* profile_;
DISALLOW_COPY_AND_ASSIGN(RemovePermissionPromptCountsTest);
« no previous file with comments | « no previous file | chrome/browser/permissions/permission_context_base.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698