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 d69a43124645582574386649645288a752d2a271..22b612498d33d4063d41126f5a64648fecb40a3b 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" |
@@ -362,8 +363,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(); |