Index: remoting/protocol/connection_to_host.cc |
diff --git a/remoting/protocol/connection_to_host.cc b/remoting/protocol/connection_to_host.cc |
index e2fe74a442d950949eaae96801a2f804fe8fdeb7..fd5463c6589bf39fb6e8568cdaf8010304f75bf5 100644 |
--- a/remoting/protocol/connection_to_host.cc |
+++ b/remoting/protocol/connection_to_host.cc |
@@ -140,7 +140,8 @@ void ConnectionToHost::OnSessionManagerInitialized() { |
protocol::GenerateSupportAuthToken(local_jid_, access_code_); |
session_.reset(session_manager_->Connect( |
host_jid_, host_public_key_, client_token, candidate_config, |
- NewCallback(this, &ConnectionToHost::OnSessionStateChange))); |
+ base::Bind(&ConnectionToHost::OnSessionStateChange, |
+ base::Unretained(this)))); |
// Set the shared-secret for securing SSL channels. |
session_->set_shared_secret(access_code_); |