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

Unified Diff: remoting/protocol/protocol_test_client.cc

Issue 8116021: Switch remoting/protocol to new callbacks (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: - Created 9 years, 2 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 | « remoting/protocol/protocol_mock_objects.h ('k') | remoting/protocol/rtcp_writer.cc » ('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 bfcb496a3d7564bd1864d53a4457aaadf267f4b1..49fd2bca5d43c5bee969ecc96d1ac4ab221fc922 100644
--- a/remoting/protocol/protocol_test_client.cc
+++ b/remoting/protocol/protocol_test_client.cc
@@ -296,7 +296,7 @@ void ProtocolTestClient::OnSessionManagerInitialized() {
connection->Init(session_manager_->Connect(
host_jid_, "", kDummyAuthToken,
CandidateSessionConfig::CreateDefault(),
- NewCallback(connection, &ProtocolTestConnection::OnStateChange)));
+ base::Bind(&ProtocolTestConnection::OnStateChange, connection)));
connections_.push_back(make_scoped_refptr(connection));
}
}
@@ -311,7 +311,7 @@ void ProtocolTestClient::OnIncomingSession(
ProtocolTestConnection* test_connection = new ProtocolTestConnection(this);
session->SetStateChangeCallback(
- NewCallback(test_connection, &ProtocolTestConnection::OnStateChange));
+ base::Bind(&ProtocolTestConnection::OnStateChange, test_connection));
test_connection->Init(session);
base::AutoLock auto_lock(connections_lock_);
connections_.push_back(make_scoped_refptr(test_connection));
« no previous file with comments | « remoting/protocol/protocol_mock_objects.h ('k') | remoting/protocol/rtcp_writer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698