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

Unified Diff: content/child/thread_safe_sender.cc

Issue 1142063003: content/child: Remove use of MessageLoopProxy and deprecated MessageLoop APIs (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Build fix. Created 5 years, 7 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/child/thread_safe_sender.h ('k') | content/child/threaded_data_provider.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/child/thread_safe_sender.cc
diff --git a/content/child/thread_safe_sender.cc b/content/child/thread_safe_sender.cc
index 95f97132ddd47fafdb3b865ac2e3cd36b78314fc..2542f220299b5bf9efc4d3088d9b6f8a4f4fcb3c 100644
--- a/content/child/thread_safe_sender.cc
+++ b/content/child/thread_safe_sender.cc
@@ -4,7 +4,7 @@
#include "content/child/thread_safe_sender.h"
-#include "base/message_loop/message_loop_proxy.h"
+#include "base/single_thread_task_runner.h"
#include "content/child/child_thread_impl.h"
#include "ipc/ipc_sync_message_filter.h"
@@ -14,13 +14,13 @@ ThreadSafeSender::~ThreadSafeSender() {
}
ThreadSafeSender::ThreadSafeSender(
- const scoped_refptr<base::MessageLoopProxy>& main_loop,
+ const scoped_refptr<base::SingleThreadTaskRunner>& main_task_runner,
const scoped_refptr<IPC::SyncMessageFilter>& sync_filter)
- : main_loop_(main_loop), sync_filter_(sync_filter) {
+ : main_task_runner_(main_task_runner), sync_filter_(sync_filter) {
}
bool ThreadSafeSender::Send(IPC::Message* msg) {
- if (main_loop_->BelongsToCurrentThread())
+ if (main_task_runner_->BelongsToCurrentThread())
return ChildThreadImpl::current()->Send(msg);
return sync_filter_->Send(msg);
}
« no previous file with comments | « content/child/thread_safe_sender.h ('k') | content/child/threaded_data_provider.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698