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

Unified Diff: components/proximity_auth/remote_device_life_cycle_impl.cc

Issue 2859053003: [EasyUnlock] Add beacon_seeds to RemoteDevice. (Closed)
Patch Set: fix memory issue Created 3 years, 7 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 side-by-side diff with in-line comments
Download patch
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 54e4b71f1eee943b7e4e9607fb24a67d2e93634c..011786fc1109b2f3de3d20d62f263e3e0725d2ea 100644
--- a/components/proximity_auth/remote_device_life_cycle_impl.cc
+++ b/components/proximity_auth/remote_device_life_cycle_impl.cc
@@ -90,17 +90,8 @@ std::unique_ptr<cryptauth::ConnectionFinder>
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_, beacon_seeds, bluetooth_throttler_);
+ remote_device_, bluetooth_throttler_);
} else {
return base::MakeUnique<BluetoothConnectionFinder>(
remote_device_, device::BluetoothUUID(kClassicBluetoothServiceUUID),

Powered by Google App Engine
This is Rietveld 408576698