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

Unified Diff: content/public/test/test_file_error_injector.h

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 | « content/public/test/mock_download_manager.h ('k') | content/public/test/test_file_error_injector.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/public/test/test_file_error_injector.h
diff --git a/content/public/test/test_file_error_injector.h b/content/public/test/test_file_error_injector.h
index 38ebf6368e58a829f6a2bbacea4f9b5cb58eb133..c05678084835456bc8f4c04d911ab9a8f1a4c8b0 100644
--- a/content/public/test/test_file_error_injector.h
+++ b/content/public/test/test_file_error_injector.h
@@ -74,7 +74,7 @@ class TestFileErrorInjector
// creator goes out of scope.
// TODO(rdsmith): Allow multiple calls for different download managers.
static scoped_refptr<TestFileErrorInjector> Create(
- scoped_refptr<DownloadManager> download_manager);
+ DownloadManager* download_manager);
// Adds an error.
// Must be called before |InjectErrors()| for a particular download file.
@@ -112,8 +112,7 @@ class TestFileErrorInjector
typedef std::set<GURL> FileSet;
- TestFileErrorInjector(
- scoped_refptr<DownloadManager> download_manager);
+ explicit TestFileErrorInjector(DownloadManager* download_manager);
virtual ~TestFileErrorInjector();
@@ -140,7 +139,7 @@ class TestFileErrorInjector
DownloadFileWithErrorsFactory* created_factory_;
// The download manager we set the factory on.
- scoped_refptr<DownloadManagerImpl> download_manager_;
+ DownloadManagerImpl* download_manager_;
DISALLOW_COPY_AND_ASSIGN(TestFileErrorInjector);
};
« no previous file with comments | « content/public/test/mock_download_manager.h ('k') | content/public/test/test_file_error_injector.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698