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 48045c4d1cea9a3dccc6179a9fd1ab81521cc64b..a43204e4172eab448dec1612866283fe9f883a52 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())); |