| 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);
|
|
|