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

Unified Diff: remoting/host/token_validator_factory_impl.cc

Issue 2253233004: Re-write many calls to WrapUnique() with MakeUnique() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 4 years, 4 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
Index: remoting/host/token_validator_factory_impl.cc
diff --git a/remoting/host/token_validator_factory_impl.cc b/remoting/host/token_validator_factory_impl.cc
index a99b1d89906d83fec38e1017fec6b56e6adc5a0d..22995b367ea06438754f8e1985015b36ded103c2 100644
--- a/remoting/host/token_validator_factory_impl.cc
+++ b/remoting/host/token_validator_factory_impl.cc
@@ -141,9 +141,9 @@ TokenValidatorFactoryImpl::~TokenValidatorFactoryImpl() {
std::unique_ptr<protocol::TokenValidator>
TokenValidatorFactoryImpl::CreateTokenValidator(const std::string& local_jid,
const std::string& remote_jid) {
- return base::WrapUnique(
- new TokenValidatorImpl(third_party_auth_config_, key_pair_, local_jid,
- remote_jid, request_context_getter_));
+ return base::MakeUnique<TokenValidatorImpl>(third_party_auth_config_,
+ key_pair_, local_jid, remote_jid,
+ request_context_getter_);
}
} // namespace remoting
« no previous file with comments | « remoting/host/setup/me2me_native_messaging_host_unittest.cc ('k') | remoting/host/token_validator_factory_impl_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698