Index: chrome/browser/download/download_shelf_unittest.cc |
diff --git a/chrome/browser/download/download_shelf_unittest.cc b/chrome/browser/download/download_shelf_unittest.cc |
index 21ca39813ead1900252c1da97ddb8c4a73997495..3b53c849161a299e2b1389c7ad9b852937453626 100644 |
--- a/chrome/browser/download/download_shelf_unittest.cc |
+++ b/chrome/browser/download/download_shelf_unittest.cc |
@@ -43,7 +43,7 @@ class DownloadShelfTest : public testing::Test { |
MessageLoopForUI message_loop_; |
content::TestBrowserThread ui_thread_; |
scoped_ptr<content::MockDownloadItem> download_item_; |
- scoped_refptr<content::MockDownloadManager> download_manager_; |
+ scoped_ptr<content::MockDownloadManager> download_manager_; |
TestDownloadShelf shelf_; |
}; |
@@ -63,7 +63,8 @@ DownloadShelfTest::DownloadShelfTest() |
ON_CALL(*download_item_, ShouldOpenFileBasedOnExtension()) |
.WillByDefault(Return(false)); |
- download_manager_ = new ::testing::NiceMock<content::MockDownloadManager>(); |
+ download_manager_.reset( |
+ new ::testing::NiceMock<content::MockDownloadManager>()); |
ON_CALL(*download_manager_, GetDownload(_)) |
.WillByDefault(Return(download_item_.get())); |