Index: content/browser/browser_main_loop.cc |
diff --git a/content/browser/browser_main_loop.cc b/content/browser/browser_main_loop.cc |
index 1f70a7aa1d490d734b1e5c508cf40ab7596415cd..39486a71aebdf7187d05e9c1ff5def4f1806c5fa 100644 |
--- a/content/browser/browser_main_loop.cc |
+++ b/content/browser/browser_main_loop.cc |
@@ -1504,8 +1504,13 @@ int BrowserMainLoop::BrowserThreadsStarted() { |
// intercept requests to create handlers for download requests. We need to |
// find a better way to achieve this. Ideally we don't want knowledge of |
// downloads in ResourceDispatcherHostImpl. |
+ // We pass the task runners for the UI and IO threads as a stopgap approach |
+ // for now. Eventually variants of these runners would be available in the |
+ // network service. |
resource_dispatcher_host_.reset(new ResourceDispatcherHostImpl( |
- base::Bind(&DownloadResourceHandler::Create))); |
+ base::Bind(&DownloadResourceHandler::Create), |
+ BrowserThread::GetTaskRunnerForThread(BrowserThread::UI), |
+ BrowserThread::GetTaskRunnerForThread(BrowserThread::IO))); |
GetContentClient()->browser()->ResourceDispatcherHostCreated(); |
loader_delegate_.reset(new LoaderDelegateImpl()); |