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

Unified Diff: remoting/protocol/protocol_test_client.cc

Issue 8493020: Move code in src/remoting to the new callbacks. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: - Created 9 years, 1 month 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 | « remoting/protocol/jingle_session_unittest.cc ('k') | remoting/protocol/util.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/protocol/protocol_test_client.cc
diff --git a/remoting/protocol/protocol_test_client.cc b/remoting/protocol/protocol_test_client.cc
index 49fd2bca5d43c5bee969ecc96d1ac4ab221fc922..aa35ba572736ba78dddc0b35e12de56823cdd499 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() {
« no previous file with comments | « remoting/protocol/jingle_session_unittest.cc ('k') | remoting/protocol/util.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698