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

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

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.cc
diff --git a/content/public/test/test_file_error_injector.cc b/content/public/test/test_file_error_injector.cc
index be02cc05876606627143bb5f83f7185b6e81d6c3..c2a6fc3b7ee306fed1a8bf17f502c87b200fd6a4 100644
--- a/content/public/test/test_file_error_injector.cc
+++ b/content/public/test/test_file_error_injector.cc
@@ -338,12 +338,11 @@ void DownloadFileWithErrorsFactory::ClearErrors() {
}
TestFileErrorInjector::TestFileErrorInjector(
- scoped_refptr<DownloadManager> download_manager)
+ DownloadManager* download_manager)
: created_factory_(NULL),
// This code is only used for browser_tests, so a
// DownloadManager is always a DownloadManagerImpl.
- download_manager_(
- static_cast<DownloadManagerImpl*>(download_manager.get())) {
+ download_manager_(static_cast<DownloadManagerImpl*>(download_manager)) {
// Record the value of the pointer, for later validation.
created_factory_ =
new DownloadFileWithErrorsFactory(
@@ -446,7 +445,7 @@ void TestFileErrorInjector::RecordDownloadFileDestruction(const GURL& url) {
// static
scoped_refptr<TestFileErrorInjector> TestFileErrorInjector::Create(
- scoped_refptr<DownloadManager> download_manager) {
+ DownloadManager* download_manager) {
static bool visited = false;
DCHECK(!visited); // Only allowed to be called once.
visited = true;

Powered by Google App Engine
This is Rietveld 408576698