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

Unified Diff: tools/android/forwarder2/device_forwarder_main.cc

Issue 2211473003: Remove calls to deprecated MessageLoop methods on Windows and Linux. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: CR Created 4 years, 4 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
Index: tools/android/forwarder2/device_forwarder_main.cc
diff --git a/tools/android/forwarder2/device_forwarder_main.cc b/tools/android/forwarder2/device_forwarder_main.cc
index af796b3df67a52ce408c5d91b8eaf1d21296cf68..0efd61b0cf1c7b2117a2b722871388aeb1b27de4 100644
--- a/tools/android/forwarder2/device_forwarder_main.cc
+++ b/tools/android/forwarder2/device_forwarder_main.cc
@@ -13,6 +13,7 @@
#include "base/command_line.h"
#include "base/compiler_specific.h"
#include "base/logging.h"
+#include "base/single_thread_task_runner.h"
#include "base/strings/string_piece.h"
#include "base/strings/stringprintf.h"
#include "base/threading/thread.h"
@@ -72,7 +73,7 @@ class ServerDelegate : public Daemon::ServerDelegate {
client_socket->WriteString("OK");
return;
}
- controller_thread_->message_loop()->PostTask(
+ controller_thread_->task_runner()->PostTask(
FROM_HERE,
base::Bind(&ServerDelegate::StartController, base::Unretained(this),
GetExitNotifierFD(), base::Passed(&client_socket)));

Powered by Google App Engine
This is Rietveld 408576698