Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1854)

Unified Diff: content/browser/streams/stream_handle_impl.cc

Issue 1159623009: content: Remove use of MessageLoopProxy and deprecated MessageLoop APIs (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Test build fix. Created 5 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/browser/streams/stream_handle_impl.h ('k') | content/browser/streams/stream_url_request_job.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/streams/stream_handle_impl.cc
diff --git a/content/browser/streams/stream_handle_impl.cc b/content/browser/streams/stream_handle_impl.cc
index 5bc2acbf4fa8f95cebc6fb765084a460f1098382..ba4dee2a4900945af800f2429e0f8edf24d270b2 100644
--- a/content/browser/streams/stream_handle_impl.cc
+++ b/content/browser/streams/stream_handle_impl.cc
@@ -6,7 +6,7 @@
#include "base/bind.h"
#include "base/location.h"
-#include "base/message_loop/message_loop_proxy.h"
+#include "base/thread_task_runner_handle.h"
#include "content/browser/streams/stream.h"
namespace content {
@@ -23,11 +23,12 @@ void RunCloseListeners(const std::vector<base::Closure>& close_listeners) {
StreamHandleImpl::StreamHandleImpl(const base::WeakPtr<Stream>& stream)
: stream_(stream),
url_(stream->url()),
- stream_message_loop_(base::MessageLoopProxy::current().get()) {}
+ stream_task_runner_(base::ThreadTaskRunnerHandle::Get().get()) {
+}
StreamHandleImpl::~StreamHandleImpl() {
- stream_message_loop_->PostTaskAndReply(FROM_HERE,
- base::Bind(&Stream::CloseHandle, stream_),
+ stream_task_runner_->PostTaskAndReply(
+ FROM_HERE, base::Bind(&Stream::CloseHandle, stream_),
base::Bind(&RunCloseListeners, close_listeners_));
}
« no previous file with comments | « content/browser/streams/stream_handle_impl.h ('k') | content/browser/streams/stream_url_request_job.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698