Index: content/browser/download/download_manager_impl.cc |
diff --git a/content/browser/download/download_manager_impl.cc b/content/browser/download/download_manager_impl.cc |
index 73c92cc3433bd5b98b42f21d5783b171fc441eea..87be1eae58da6d718b6d9dfe745bb6bf54c04330 100644 |
--- a/content/browser/download/download_manager_impl.cc |
+++ b/content/browser/download/download_manager_impl.cc |
@@ -29,6 +29,7 @@ |
#include "content/browser/download/download_item_factory.h" |
#include "content/browser/download/download_item_impl.h" |
#include "content/browser/download/download_stats.h" |
+#include "content/browser/download/download_task_runner.h" |
#include "content/browser/loader/resource_dispatcher_host_impl.h" |
#include "content/browser/loader/resource_request_info_impl.h" |
#include "content/browser/renderer_host/render_view_host_impl.h" |
@@ -351,8 +352,7 @@ void DownloadManagerImpl::StartDownloadWithId( |
on_started.Run(nullptr, DOWNLOAD_INTERRUPT_REASON_USER_CANCELED); |
// The ByteStreamReader lives and dies on the FILE thread. |
if (info->result == DOWNLOAD_INTERRUPT_REASON_NONE) |
- BrowserThread::DeleteSoon(BrowserThread::FILE, FROM_HERE, |
- stream.release()); |
+ GetDownloadTaskRunner()->DeleteSoon(FROM_HERE, stream.release()); |
return; |
} |
download = item_iterator->second.get(); |