| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 "components/proximity_auth/cryptauth/cryptauth_client_impl.h" | 5 #include "components/proximity_auth/cryptauth/cryptauth_client_impl.h" |
| 6 | 6 |
| 7 #include <utility> | 7 #include <utility> |
| 8 | 8 |
| 9 #include "base/bind.h" | 9 #include "base/bind.h" |
| 10 #include "base/command_line.h" | 10 #include "base/command_line.h" |
| (...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 186 : token_service_(token_service), | 186 : token_service_(token_service), |
| 187 account_id_(account_id), | 187 account_id_(account_id), |
| 188 url_request_context_(url_request_context), | 188 url_request_context_(url_request_context), |
| 189 device_classifier_(device_classifier) { | 189 device_classifier_(device_classifier) { |
| 190 } | 190 } |
| 191 | 191 |
| 192 CryptAuthClientFactoryImpl::~CryptAuthClientFactoryImpl() { | 192 CryptAuthClientFactoryImpl::~CryptAuthClientFactoryImpl() { |
| 193 } | 193 } |
| 194 | 194 |
| 195 std::unique_ptr<CryptAuthClient> CryptAuthClientFactoryImpl::CreateInstance() { | 195 std::unique_ptr<CryptAuthClient> CryptAuthClientFactoryImpl::CreateInstance() { |
| 196 return base::WrapUnique(new CryptAuthClientImpl( | 196 return base::MakeUnique<CryptAuthClientImpl>( |
| 197 base::WrapUnique(new CryptAuthApiCallFlow()), | 197 base::WrapUnique(new CryptAuthApiCallFlow()), |
| 198 base::WrapUnique( | 198 base::WrapUnique( |
| 199 new CryptAuthAccessTokenFetcherImpl(token_service_, account_id_)), | 199 new CryptAuthAccessTokenFetcherImpl(token_service_, account_id_)), |
| 200 url_request_context_, device_classifier_)); | 200 url_request_context_, device_classifier_); |
| 201 } | 201 } |
| 202 | 202 |
| 203 } // proximity_auth | 203 } // proximity_auth |
| OLD | NEW |