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

Side by Side 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 unified diff | Download patch
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "remoting/host/token_validator_factory_impl.h" 5 #include "remoting/host/token_validator_factory_impl.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 8
9 #include <utility> 9 #include <utility>
10 10
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after
134 key_pair_(key_pair), 134 key_pair_(key_pair),
135 request_context_getter_(request_context_getter) { 135 request_context_getter_(request_context_getter) {
136 } 136 }
137 137
138 TokenValidatorFactoryImpl::~TokenValidatorFactoryImpl() { 138 TokenValidatorFactoryImpl::~TokenValidatorFactoryImpl() {
139 } 139 }
140 140
141 std::unique_ptr<protocol::TokenValidator> 141 std::unique_ptr<protocol::TokenValidator>
142 TokenValidatorFactoryImpl::CreateTokenValidator(const std::string& local_jid, 142 TokenValidatorFactoryImpl::CreateTokenValidator(const std::string& local_jid,
143 const std::string& remote_jid) { 143 const std::string& remote_jid) {
144 return base::WrapUnique( 144 return base::MakeUnique<TokenValidatorImpl>(third_party_auth_config_,
145 new TokenValidatorImpl(third_party_auth_config_, key_pair_, local_jid, 145 key_pair_, local_jid, remote_jid,
146 remote_jid, request_context_getter_)); 146 request_context_getter_);
147 } 147 }
148 148
149 } // namespace remoting 149 } // namespace remoting
OLDNEW
« 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