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

Unified Diff: ipc/ipc_channel_win.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: rebase 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
« no previous file with comments | « ipc/ipc_channel_unittest.cc ('k') | jingle/notifier/listener/xmpp_push_client_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ipc/ipc_channel_win.cc
diff --git a/ipc/ipc_channel_win.cc b/ipc/ipc_channel_win.cc
index 4321b04beef1c6cf788701ebd52d95d69f9aea0e..66c14c84eef49975bc7f6f03a5be844bad54efcd 100644
--- a/ipc/ipc_channel_win.cc
+++ b/ipc/ipc_channel_win.cc
@@ -16,6 +16,7 @@
#include "base/pickle.h"
#include "base/process/process_handle.h"
#include "base/rand_util.h"
+#include "base/single_thread_task_runner.h"
#include "base/strings/string_number_conversions.h"
#include "base/strings/utf_string_conversions.h"
#include "base/threading/thread_checker.h"
@@ -412,13 +413,10 @@ bool ChannelWin::Connect() {
// Complete setup asynchronously. By not setting input_state_.is_pending
// to true, we indicate to OnIOCompleted that this is the special
// initialization signal.
- base::MessageLoopForIO::current()->PostTask(
+ base::MessageLoopForIO::current()->task_runner()->PostTask(
FROM_HERE,
- base::Bind(&ChannelWin::OnIOCompleted,
- weak_factory_.GetWeakPtr(),
- &input_state_.context,
- 0,
- 0));
+ base::Bind(&ChannelWin::OnIOCompleted, weak_factory_.GetWeakPtr(),
+ &input_state_.context, 0, 0));
}
if (!waiting_connect_)
« no previous file with comments | « ipc/ipc_channel_unittest.cc ('k') | jingle/notifier/listener/xmpp_push_client_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698