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

Unified Diff: remoting/host/remoting_me2me_host.cc

Issue 1788443005: Make TokenValidatorFactory ref-counted. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 9 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 | « no previous file | remoting/host/token_validator_factory_impl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/host/remoting_me2me_host.cc
diff --git a/remoting/host/remoting_me2me_host.cc b/remoting/host/remoting_me2me_host.cc
index 5018c13457f85831475d0898379e5f936e67b8fc..e9245cfe593246b431367efc718b3276c58bf470 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)
« no previous file with comments | « no previous file | remoting/host/token_validator_factory_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698