Index: chrome/browser/download/download_browsertest.cc |
diff --git a/chrome/browser/download/download_browsertest.cc b/chrome/browser/download/download_browsertest.cc |
index a0ed0df2b1999abb7d09a0eee5168dbcc3b479d2..457720b0f54481084e3a394ac68203751fd4e2da 100644 |
--- a/chrome/browser/download/download_browsertest.cc |
+++ b/chrome/browser/download/download_browsertest.cc |
@@ -803,7 +803,8 @@ class DownloadTest : public InProcessBrowserTest { |
// Set up file failures. |
scoped_refptr<content::TestFileErrorInjector> injector( |
- content::TestFileErrorInjector::Create()); |
+ content::TestFileErrorInjector::Create( |
+ DownloadManagerForBrowser(browser()))); |
for (size_t i = 0; i < count; ++i) { |
// Set up the full URL, for download file tracking. |