Index: jingle/glue/fake_socket_factory.cc |
diff --git a/jingle/glue/fake_socket_factory.cc b/jingle/glue/fake_socket_factory.cc |
index 95a0fa2488120112715007e9d14946b60ba5c3b0..f6812b3a75d57137c1f8709c24346e541c5a0c0f 100644 |
--- a/jingle/glue/fake_socket_factory.cc |
+++ b/jingle/glue/fake_socket_factory.cc |
@@ -4,6 +4,7 @@ |
#include "jingle/glue/fake_socket_factory.h" |
+#include "base/bind.h" |
#include "base/message_loop.h" |
#include "jingle/glue/utils.h" |
#include "third_party/libjingle/source/talk/base/asyncsocket.h" |
@@ -125,8 +126,8 @@ void FakeSocketManager::SendPacket(const net::IPEndPoint& from, |
DCHECK_EQ(MessageLoop::current(), message_loop_); |
message_loop_->PostTask( |
- FROM_HERE, NewRunnableMethod(this, &FakeSocketManager::DeliverPacket, |
- from, to, data)); |
+ FROM_HERE, |
+ base::Bind(&FakeSocketManager::DeliverPacket, this, from, to, data)); |
} |
void FakeSocketManager::DeliverPacket(const net::IPEndPoint& from, |