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

Unified Diff: components/proximity_auth/bluetooth_low_energy_connection_finder.cc

Issue 2849493002: [EasyUnlock] Fixing the setup connection finder and message format. (Closed)
Patch Set: date Created 3 years, 8 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/bluetooth_low_energy_connection_finder.cc
diff --git a/components/proximity_auth/bluetooth_low_energy_connection_finder.cc b/components/proximity_auth/bluetooth_low_energy_connection_finder.cc
index 0edf2a391d9590ea5ccb4c608e55c6ffa01766a5..8069b2dbda25695afffaf149eba63a24b3d4c1ae 100644
--- a/components/proximity_auth/bluetooth_low_energy_connection_finder.cc
+++ b/components/proximity_auth/bluetooth_low_energy_connection_finder.cc
@@ -43,16 +43,19 @@ BluetoothLowEnergyConnectionFinder::BluetoothLowEnergyConnectionFinder(
cryptauth::BluetoothThrottler* bluetooth_throttler)
: BluetoothLowEnergyConnectionFinder(
remote_device,
+ kBLEGattServiceUUID,
beacon_seeds,
base::MakeUnique<cryptauth::BackgroundEidGenerator>(),
bluetooth_throttler) {}
BluetoothLowEnergyConnectionFinder::BluetoothLowEnergyConnectionFinder(
const cryptauth::RemoteDevice remote_device,
+ const std::string& service_uuid,
const std::vector<cryptauth::BeaconSeed>& beacon_seeds,
std::unique_ptr<cryptauth::BackgroundEidGenerator> eid_generator,
cryptauth::BluetoothThrottler* bluetooth_throttler)
: remote_device_(remote_device),
+ service_uuid_(service_uuid),
beacon_seeds_(beacon_seeds),
eid_generator_(std::move(eid_generator)),
bluetooth_throttler_(bluetooth_throttler),
@@ -231,8 +234,7 @@ BluetoothLowEnergyConnectionFinder::CreateConnection(
const std::string& device_address) {
return cryptauth::weave::BluetoothLowEnergyWeaveClientConnection::Factory::
NewInstance(remote_device_, device_address, adapter_,
- device::BluetoothUUID(kBLEGattServiceUUID),
- bluetooth_throttler_);
+ device::BluetoothUUID(service_uuid_), bluetooth_throttler_);
}
void BluetoothLowEnergyConnectionFinder::OnConnectionStatusChanged(

Powered by Google App Engine
This is Rietveld 408576698