summaryrefslogtreecommitdiffstats
path: root/remoting/protocol/connection_to_client.cc
diff options
context:
space:
mode:
Diffstat (limited to 'remoting/protocol/connection_to_client.cc')
-rw-r--r--remoting/protocol/connection_to_client.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/remoting/protocol/connection_to_client.cc b/remoting/protocol/connection_to_client.cc
index c83e161..4f8a46b 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() {