diff options
author | skyostil <skyostil@chromium.org> | 2015-06-05 10:23:57 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-06-05 17:24:40 +0000 |
commit | 422456f9d53f0bf936a64f21a1463fd0abd3df84 (patch) | |
tree | afa337c4e76bfb38d0bcf606d5272a7a4b6f5ba0 /content/browser/streams/stream_url_request_job.cc | |
parent | 9c8e5d7259661cda32b698ee88254491e6984900 (diff) | |
download | chromium_src-422456f9d53f0bf936a64f21a1463fd0abd3df84.zip chromium_src-422456f9d53f0bf936a64f21a1463fd0abd3df84.tar.gz chromium_src-422456f9d53f0bf936a64f21a1463fd0abd3df84.tar.bz2 |
content: Remove use of MessageLoopProxy and deprecated MessageLoop APIs
This patch was mostly autogenerated with
https://codereview.chromium.org/1010073002/.
BUG=465354
TBR=nick@chromium.org
Review URL: https://codereview.chromium.org/1159623009
Cr-Commit-Position: refs/heads/master@{#333081}
Diffstat (limited to 'content/browser/streams/stream_url_request_job.cc')
-rw-r--r-- | content/browser/streams/stream_url_request_job.cc | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/content/browser/streams/stream_url_request_job.cc b/content/browser/streams/stream_url_request_job.cc index 3d4ac7f..d2bce89 100644 --- a/content/browser/streams/stream_url_request_job.cc +++ b/content/browser/streams/stream_url_request_job.cc @@ -4,7 +4,10 @@ #include "content/browser/streams/stream_url_request_job.h" +#include "base/location.h" +#include "base/single_thread_task_runner.h" #include "base/strings/string_number_conversions.h" +#include "base/thread_task_runner_handle.h" #include "content/browser/streams/stream.h" #include "net/base/io_buffer.h" #include "net/base/net_errors.h" @@ -80,7 +83,7 @@ void StreamURLRequestJob::OnDataAvailable(Stream* stream) { // net::URLRequestJob methods. void StreamURLRequestJob::Start() { // Continue asynchronously. - base::MessageLoop::current()->PostTask( + base::ThreadTaskRunnerHandle::Get()->PostTask( FROM_HERE, base::Bind(&StreamURLRequestJob::DidStart, weak_factory_.GetWeakPtr())); } |