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

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

Issue 14593012: BrowserContext should simply own DownloadManager (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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
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..37c4c8edd4e416b91b36b90735213c091faae9e6 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);
+ 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);
};

Powered by Google App Engine
This is Rietveld 408576698