Index: content/browser/download/download_resource_handler.cc |
diff --git a/content/browser/download/download_resource_handler.cc b/content/browser/download/download_resource_handler.cc |
index ee610e4bba7faf4b9417b202fe6f8580f2a7a7cf..99a57b197f35c210d682858339e4417dc8fbcdd7 100644 |
--- a/content/browser/download/download_resource_handler.cc |
+++ b/content/browser/download/download_resource_handler.cc |
@@ -7,11 +7,13 @@ |
#include <string> |
#include "base/bind.h" |
+#include "base/location.h" |
#include "base/logging.h" |
-#include "base/message_loop/message_loop_proxy.h" |
#include "base/metrics/histogram_macros.h" |
#include "base/metrics/sparse_histogram.h" |
+#include "base/single_thread_task_runner.h" |
#include "base/strings/stringprintf.h" |
+#include "base/thread_task_runner_handle.h" |
#include "content/browser/byte_stream.h" |
#include "content/browser/download/download_create_info.h" |
#include "content/browser/download/download_interrupt_reasons_impl.h" |
@@ -191,7 +193,7 @@ bool DownloadResourceHandler::OnResponseStarted( |
// Create the ByteStream for sending data to the download sink. |
scoped_ptr<ByteStreamReader> stream_reader; |
CreateByteStream( |
- base::MessageLoopProxy::current(), |
+ base::ThreadTaskRunnerHandle::Get(), |
BrowserThread::GetMessageLoopProxyForThread(BrowserThread::FILE), |
kDownloadByteStreamSize, &stream_writer_, &stream_reader); |
stream_writer_->RegisterCallback( |