diff options
Diffstat (limited to 'chrome/browser/download/chrome_download_manager_delegate_unittest.cc')
-rw-r--r-- | chrome/browser/download/chrome_download_manager_delegate_unittest.cc | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/chrome/browser/download/chrome_download_manager_delegate_unittest.cc b/chrome/browser/download/chrome_download_manager_delegate_unittest.cc index 1e96837..7ef30fc 100644 --- a/chrome/browser/download/chrome_download_manager_delegate_unittest.cc +++ b/chrome/browser/download/chrome_download_manager_delegate_unittest.cc @@ -75,6 +75,8 @@ class TestChromeDownloadManagerDelegate : public ChromeDownloadManagerDelegate { : ChromeDownloadManagerDelegate(profile) { } + virtual ~TestChromeDownloadManagerDelegate() {} + virtual safe_browsing::DownloadProtectionService* GetDownloadProtectionService() OVERRIDE { return NULL; @@ -118,9 +120,6 @@ class TestChromeDownloadManagerDelegate : public ChromeDownloadManagerDelegate { content::DownloadItem*, const base::FilePath&, const DownloadTargetDeterminerDelegate::FileSelectedCallback&)); - - private: - ~TestChromeDownloadManagerDelegate() {} }; class ChromeDownloadManagerDelegateTest : @@ -164,7 +163,7 @@ class ChromeDownloadManagerDelegateTest : TestingPrefServiceSyncable* pref_service_; base::ScopedTempDir test_download_dir_; scoped_ptr<content::MockDownloadManager> download_manager_; - scoped_refptr<TestChromeDownloadManagerDelegate> delegate_; + scoped_ptr<TestChromeDownloadManagerDelegate> delegate_; MockWebContentsDelegate web_contents_delegate_; }; @@ -176,7 +175,7 @@ void ChromeDownloadManagerDelegateTest::SetUp() { ChromeRenderViewHostTestHarness::SetUp(); CHECK(profile()); - delegate_ = new TestChromeDownloadManagerDelegate(profile()); + delegate_.reset(new TestChromeDownloadManagerDelegate(profile())); delegate_->SetDownloadManager(download_manager_.get()); pref_service_ = profile()->GetTestingPrefService(); web_contents()->SetDelegate(&web_contents_delegate_); |