Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(621)

Unified Diff: chrome/browser/chromeos/drive/download_handler_unittest.cc

Issue 15701007: BrowserContext should simply own DownloadManager (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased version of patch for win_rel Created 7 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chrome/browser/download/all_download_item_notifier_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chromeos/drive/download_handler_unittest.cc
diff --git a/chrome/browser/chromeos/drive/download_handler_unittest.cc b/chrome/browser/chromeos/drive/download_handler_unittest.cc
index 3a0db7f0586a9ae41b528cd3be56f6203bdf916c..0599d90b7d70c51387691a4d05fb1e7a5b19464d 100644
--- a/chrome/browser/chromeos/drive/download_handler_unittest.cc
+++ b/chrome/browser/chromeos/drive/download_handler_unittest.cc
@@ -60,7 +60,7 @@ class DownloadHandlerTest : public testing::Test {
file_write_helper_.reset(new FileWriteHelper(&file_system_));
download_handler_.reset(
new DownloadHandler(file_write_helper_.get(), &file_system_));
- download_handler_->Initialize(download_manager_, temp_dir_.path());
+ download_handler_->Initialize(download_manager_.get(), temp_dir_.path());
}
virtual void TearDown() OVERRIDE {
@@ -70,7 +70,7 @@ class DownloadHandlerTest : public testing::Test {
base::ScopedTempDir temp_dir_;
MessageLoopForUI message_loop_;
content::TestBrowserThread ui_thread_;
- scoped_refptr<content::MockDownloadManager> download_manager_;
+ scoped_ptr<content::MockDownloadManager> download_manager_;
MockFileSystem file_system_;
scoped_ptr<FileWriteHelper> file_write_helper_;
scoped_ptr<DownloadHandler> download_handler_;
« no previous file with comments | « no previous file | chrome/browser/download/all_download_item_notifier_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698