Index: content/browser/renderer_host/p2p/socket_host_tcp.cc |
diff --git a/content/browser/renderer_host/p2p/socket_host_tcp.cc b/content/browser/renderer_host/p2p/socket_host_tcp.cc |
index a92e3e52df8a7cfd23392554c78c8f91fafb6add..dd49bff7b86e9cd7437c1766ce84ca16f70dfc74 100644 |
--- a/content/browser/renderer_host/p2p/socket_host_tcp.cc |
+++ b/content/browser/renderer_host/p2p/socket_host_tcp.cc |
@@ -4,6 +4,8 @@ |
#include "content/browser/renderer_host/p2p/socket_host_tcp.h" |
+#include "base/location.h" |
+#include "base/single_thread_task_runner.h" |
#include "base/sys_byteorder.h" |
#include "content/common/p2p_messages.h" |
#include "ipc/ipc_sender.h" |
@@ -117,10 +119,9 @@ bool P2PSocketHostTcpBase::Init(const net::IPEndPoint& local_address, |
// the connect always happens asynchronously. |
base::MessageLoop* message_loop = base::MessageLoop::current(); |
CHECK(message_loop); |
- message_loop->PostTask( |
- FROM_HERE, |
- base::Bind(&P2PSocketHostTcpBase::OnConnected, |
- base::Unretained(this), status)); |
+ message_loop->task_runner()->PostTask( |
+ FROM_HERE, base::Bind(&P2PSocketHostTcpBase::OnConnected, |
+ base::Unretained(this), status)); |
} |
return state_ != STATE_ERROR; |