diff options
Diffstat (limited to 'remoting/host/remoting_me2me_host.cc')
-rw-r--r-- | remoting/host/remoting_me2me_host.cc | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/remoting/host/remoting_me2me_host.cc b/remoting/host/remoting_me2me_host.cc index 5018c13..e9245cf 100644 --- a/remoting/host/remoting_me2me_host.cc +++ b/remoting/host/remoting_me2me_host.cc @@ -806,13 +806,12 @@ void HostProcess::CreateAuthenticatorFactory() { DCHECK(third_party_auth_config_.token_url.is_valid()); DCHECK(third_party_auth_config_.token_validation_url.is_valid()); - scoped_ptr<protocol::TokenValidatorFactory> token_validator_factory( - new TokenValidatorFactoryImpl( - third_party_auth_config_, - key_pair_, context_->url_request_context_getter())); + scoped_refptr<protocol::TokenValidatorFactory> token_validator_factory = + new TokenValidatorFactoryImpl(third_party_auth_config_, key_pair_, + context_->url_request_context_getter()); factory = protocol::Me2MeHostAuthenticatorFactory::CreateWithThirdPartyAuth( use_service_account_, host_owner_, local_certificate, key_pair_, - client_domain_, std::move(token_validator_factory)); + client_domain_, token_validator_factory); } #if defined(OS_POSIX) |