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

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

Issue 2386193004: Make all PermissionDecisionAutoBlocker methods static. (Closed)
Patch Set: 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
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 241034dcf96a253aa0aaf4f2a6f5335599c7b11d..158fa68da02b82b8997878d516d1711e6c477266 100644
--- a/chrome/browser/browsing_data/browsing_data_remover_unittest.cc
+++ b/chrome/browser/browsing_data/browsing_data_remover_unittest.cc
@@ -1036,8 +1036,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(
@@ -1050,16 +1049,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);

Powered by Google App Engine
This is Rietveld 408576698