| Index: chrome/browser/download/download_request_limiter_unittest.cc
|
| diff --git a/chrome/browser/download/download_request_limiter_unittest.cc b/chrome/browser/download/download_request_limiter_unittest.cc
|
| index 4cfc555899ceb4e263909a9ff1a7eee5d0938988..46c4243f54034cf88587cce85782255604597de2 100644
|
| --- a/chrome/browser/download/download_request_limiter_unittest.cc
|
| +++ b/chrome/browser/download/download_request_limiter_unittest.cc
|
| @@ -66,6 +66,7 @@ class DownloadRequestLimiterTest : public ChromeRenderViewHostTestHarness {
|
|
|
| void SetUp() override {
|
| ChromeRenderViewHostTestHarness::SetUp();
|
| + profile_.reset(new TestingProfile());
|
| InfoBarService::CreateForWebContents(web_contents());
|
|
|
| PermissionBubbleManager::CreateForWebContents(web_contents());
|
| @@ -80,7 +81,7 @@ class DownloadRequestLimiterTest : public ChromeRenderViewHostTestHarness {
|
| &DownloadRequestLimiterTest::FakeCreate, base::Unretained(this));
|
| DownloadRequestInfoBarDelegate::SetCallbackForTesting(
|
| &fake_create_callback_);
|
| - content_settings_ = new HostContentSettingsMap(profile_.GetPrefs(), false);
|
| + content_settings_ = new HostContentSettingsMap(profile_->GetPrefs(), false);
|
| DownloadRequestLimiter::SetContentSettingsForTesting(
|
| content_settings_.get());
|
| }
|
| @@ -198,7 +199,7 @@ class DownloadRequestLimiterTest : public ChromeRenderViewHostTestHarness {
|
|
|
| private:
|
| DownloadRequestInfoBarDelegate::FakeCreateCallback fake_create_callback_;
|
| - TestingProfile profile_;
|
| + scoped_ptr<TestingProfile> profile_;
|
| scoped_ptr<FakePermissionBubbleView> view_;
|
| };
|
|
|
|
|