| 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 8069b2dbda25695afffaf149eba63a24b3d4c1ae..b3f160bf908c60528c9d3e99c5947ab25d7f86ff 100644
|
| --- a/components/proximity_auth/bluetooth_low_energy_connection_finder.cc
|
| +++ b/components/proximity_auth/bluetooth_low_energy_connection_finder.cc
|
| @@ -15,9 +15,11 @@
|
| #include "base/memory/ptr_util.h"
|
| #include "base/strings/utf_string_conversions.h"
|
| #include "base/threading/thread_task_runner_handle.h"
|
| +#include "components/cryptauth/background_eid_generator.h"
|
| #include "components/cryptauth/ble/bluetooth_low_energy_weave_client_connection.h"
|
| #include "components/cryptauth/bluetooth_throttler.h"
|
| #include "components/cryptauth/connection.h"
|
| +#include "components/cryptauth/raw_eid_generator.h"
|
| #include "components/proximity_auth/logging/logging.h"
|
| #include "device/bluetooth/bluetooth_adapter_factory.h"
|
| #include "device/bluetooth/bluetooth_common.h"
|
| @@ -167,11 +169,11 @@ bool BluetoothLowEnergyConnectionFinder::IsRightDevice(
|
| return false;
|
|
|
| std::string service_data_string(service_data->begin(), service_data->end());
|
| - std::vector<std::string> nearest_eids =
|
| + std::vector<cryptauth::EidDataWithTimestamp> nearest_eids =
|
| eid_generator_->GenerateNearestEids(beacon_seeds_);
|
| - for (const std::string& eid : nearest_eids) {
|
| - if (eid == service_data_string) {
|
| - PA_LOG(INFO) << "Found a matching EID: " << eid;
|
| + for (const cryptauth::EidDataWithTimestamp& eid : nearest_eids) {
|
| + if (eid.data == service_data_string) {
|
| + PA_LOG(INFO) << "Found a matching EID: " << eid.DataInHex();
|
| return true;
|
| }
|
| }
|
|
|