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

Unified Diff: remoting/protocol/connection_to_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/client_stub.h ('k') | remoting/protocol/connection_to_client_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/protocol/connection_to_client.cc
diff --git a/remoting/protocol/connection_to_client.cc b/remoting/protocol/connection_to_client.cc
index c83e161b7dd10e67cc6bbb1602249404cc8627a0..4f8a46b2b2177f787b5a6b5006e39a8726f69ea7 100644
--- a/remoting/protocol/connection_to_client.cc
+++ b/remoting/protocol/connection_to_client.cc
@@ -46,7 +46,8 @@ void ConnectionToClient::Init(protocol::Session* session) {
DCHECK(message_loop_->BelongsToCurrentThread());
session_.reset(session);
session_->SetStateChangeCallback(
- NewCallback(this, &ConnectionToClient::OnSessionStateChange));
+ base::Bind(&ConnectionToClient::OnSessionStateChange,
+ base::Unretained(this)));
}
protocol::Session* ConnectionToClient::session() {
« no previous file with comments | « remoting/protocol/client_stub.h ('k') | remoting/protocol/connection_to_client_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698