Chromium Code Reviews| Index: chromeos/components/tether/tether_host_fetcher.cc |
| diff --git a/chromeos/components/tether/tether_host_fetcher.cc b/chromeos/components/tether/tether_host_fetcher.cc |
| index 4f13a3c80e7ca842459f2a379204cb815d2a555b..86f408545b33c5654f5357d096cf68166e49a0ce 100644 |
| --- a/chromeos/components/tether/tether_host_fetcher.cc |
| +++ b/chromeos/components/tether/tether_host_fetcher.cc |
| @@ -7,6 +7,7 @@ |
| #include "base/bind.h" |
| #include "base/memory/ptr_util.h" |
| #include "components/cryptauth/cryptauth_device_manager.h" |
| +#include "components/cryptauth/cryptauth_enrollment_manager.h" |
| #include "components/cryptauth/cryptauth_service.h" |
| #include "components/cryptauth/remote_device_loader.h" |
| #include "components/cryptauth/secure_message_delegate.h" |
| @@ -33,6 +34,14 @@ TetherHostFetcher::TetherHostFetchRequest::TetherHostFetchRequest( |
| TetherHostFetcher::TetherHostFetchRequest::~TetherHostFetchRequest() {} |
| TetherHostFetcher::TetherHostFetcher( |
| + cryptauth::CryptAuthService* cryptauth_service) |
| + : TetherHostFetcher(cryptauth_service->GetAccountId(), |
| + cryptauth_service_->GetCryptAuthEnrollmentManager() |
| + ->GetUserPrivateKey(), |
| + cryptauth_service, |
| + cryptauth_service->GetCryptAuthDeviceManager()) {} |
| + |
| +TetherHostFetcher::TetherHostFetcher( |
| const std::string& user_id, |
|
Ryan Hansberry
2017/04/07 18:53:40
Can you instead use a FakeCryptAuthService and the
Kyle Horimoto
2017/04/07 23:33:10
I'd like to keep it as-is because it makes the tes
|
| const std::string& user_private_key, |
| cryptauth::CryptAuthService* cryptauth_service, |