OLD | NEW |
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 Loading... |
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 |
OLD | NEW |