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

Unified Diff: jingle/glue/task_pump.cc

Issue 2082353002: Remove calls to deprecated MessageLoop methods in jingle. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: use ThreadTaskRunnerHandle Created 4 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 | « jingle/glue/proxy_resolving_client_socket_unittest.cc ('k') | jingle/glue/thread_wrapper_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: jingle/glue/task_pump.cc
diff --git a/jingle/glue/task_pump.cc b/jingle/glue/task_pump.cc
index f2c769d34b5e2f4804569e5ef71dd39ed007eb35..58399a2d93d72fb0e8a61bdb10ef4406f4cf11af 100644
--- a/jingle/glue/task_pump.cc
+++ b/jingle/glue/task_pump.cc
@@ -5,7 +5,7 @@
#include <stdint.h>
#include "base/bind.h"
-#include "base/message_loop/message_loop.h"
+#include "base/threading/thread_task_runner_handle.h"
#include "jingle/glue/task_pump.h"
namespace jingle_glue {
@@ -23,10 +23,8 @@ TaskPump::~TaskPump() {
void TaskPump::WakeTasks() {
DCHECK(CalledOnValidThread());
if (!stopped_ && !posted_wake_) {
- base::MessageLoop* current_message_loop = base::MessageLoop::current();
- CHECK(current_message_loop);
// Do the requested wake up.
- current_message_loop->PostTask(
+ base::ThreadTaskRunnerHandle::Get()->PostTask(
FROM_HERE,
base::Bind(&TaskPump::CheckAndRunTasks, weak_factory_.GetWeakPtr()));
posted_wake_ = true;
« no previous file with comments | « jingle/glue/proxy_resolving_client_socket_unittest.cc ('k') | jingle/glue/thread_wrapper_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698