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