| 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 c28db786fe6d673e7c365c0d6737af98b8e6f5ef..12391a62a7e48d0ae0d1395aafa4faea7a2bda69 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(
|
|
|