Index: components/proximity_auth/remote_device_life_cycle_impl.cc |
diff --git a/components/proximity_auth/remote_device_life_cycle_impl.cc b/components/proximity_auth/remote_device_life_cycle_impl.cc |
index 011786fc1109b2f3de3d20d62f263e3e0725d2ea..54e4b71f1eee943b7e4e9607fb24a67d2e93634c 100644 |
--- a/components/proximity_auth/remote_device_life_cycle_impl.cc |
+++ b/components/proximity_auth/remote_device_life_cycle_impl.cc |
@@ -90,8 +90,17 @@ |
RemoteDeviceLifeCycleImpl::CreateConnectionFinder() { |
if (base::CommandLine::ForCurrentProcess()->HasSwitch( |
proximity_auth::switches::kEnableBluetoothLowEnergyDiscovery)) { |
+ cryptauth::RemoteBeaconSeedFetcher fetcher( |
+ proximity_auth_client_->GetCryptAuthDeviceManager()); |
+ std::vector<cryptauth::BeaconSeed> beacon_seeds; |
+ if (!fetcher.FetchSeedsForDevice(remote_device_, &beacon_seeds)) { |
+ PA_LOG(ERROR) << "Unable to fetch BeaconSeeds for " |
+ << remote_device_.name; |
+ return nullptr; |
+ } |
+ |
return base::MakeUnique<BluetoothLowEnergyConnectionFinder>( |
- remote_device_, bluetooth_throttler_); |
+ remote_device_, beacon_seeds, bluetooth_throttler_); |
} else { |
return base::MakeUnique<BluetoothConnectionFinder>( |
remote_device_, device::BluetoothUUID(kClassicBluetoothServiceUUID), |