diff options
Diffstat (limited to 'remoting/host/remoting_me2me_host.cc')
-rw-r--r-- | remoting/host/remoting_me2me_host.cc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/remoting/host/remoting_me2me_host.cc b/remoting/host/remoting_me2me_host.cc index bb7a7ea..195d91c 100644 --- a/remoting/host/remoting_me2me_host.cc +++ b/remoting/host/remoting_me2me_host.cc @@ -335,8 +335,9 @@ class HostProcess new XmppSignalStrategy(context_->jingle_thread(), xmpp_login_, xmpp_auth_token_, xmpp_auth_service_)); - signaling_connector_.reset( - new SignalingConnector(signal_strategy_.get())); + signaling_connector_.reset(new SignalingConnector( + signal_strategy_.get(), + base::Bind(&HostProcess::OnAuthFailed, base::Unretained(this)))); if (!oauth_refresh_token_.empty()) { OAuthClientInfo client_info = { @@ -360,7 +361,6 @@ class HostProcess xmpp_login_, oauth_refresh_token_, client_info)); signaling_connector_->EnableOAuth( oauth_credentials.Pass(), - base::Bind(&HostProcess::OnOAuthFailed, base::Unretained(this)), context_->url_request_context_getter()); } } @@ -401,7 +401,7 @@ class HostProcess CreateAuthenticatorFactory(); } - void OnOAuthFailed() { + void OnAuthFailed() { Shutdown(kInvalidOauthCredentialsExitCode); } |