summaryrefslogtreecommitdiffstats
path: root/remoting/protocol/protocol_test_client.cc
diff options
context:
space:
mode:
Diffstat (limited to 'remoting/protocol/protocol_test_client.cc')
-rw-r--r--remoting/protocol/protocol_test_client.cc7
1 files changed, 3 insertions, 4 deletions
diff --git a/remoting/protocol/protocol_test_client.cc b/remoting/protocol/protocol_test_client.cc
index 49fd2bc..aa35ba5 100644
--- a/remoting/protocol/protocol_test_client.cc
+++ b/remoting/protocol/protocol_test_client.cc
@@ -129,8 +129,8 @@ void ProtocolTestConnection::Write(const std::string& str) {
scoped_refptr<net::IOBuffer> buf(new net::IOBuffer(str.length()));
memcpy(buf->data(), str.c_str(), str.length());
message_loop_->PostTask(
- FROM_HERE, NewRunnableMethod(
- this, &ProtocolTestConnection::DoWrite, buf, str.length()));
+ FROM_HERE, base::Bind(&ProtocolTestConnection::DoWrite,
+ this, buf, str.length()));
}
void ProtocolTestConnection::DoWrite(
@@ -156,8 +156,7 @@ void ProtocolTestConnection::DoWrite(
void ProtocolTestConnection::Read() {
message_loop_->PostTask(
- FROM_HERE, NewRunnableMethod(
- this, &ProtocolTestConnection::DoRead));
+ FROM_HERE, base::Bind(&ProtocolTestConnection::DoRead, this));
}
void ProtocolTestConnection::DoRead() {