Index: components/proximity_auth/ble/bluetooth_low_energy_connection_unittest.cc |
diff --git a/components/proximity_auth/ble/bluetooth_low_energy_connection_unittest.cc b/components/proximity_auth/ble/bluetooth_low_energy_connection_unittest.cc |
index 241595fc76cde487463bd4d4f159fc7ce4ea472f..91b64a059d45317a176de6e49b7f2be661f2b89d 100644 |
--- a/components/proximity_auth/ble/bluetooth_low_energy_connection_unittest.cc |
+++ b/components/proximity_auth/ble/bluetooth_low_energy_connection_unittest.cc |
@@ -261,7 +261,7 @@ class ProximityAuthBluetoothLowEnergyConnectionTest : public testing::Test { |
// Store an alias for the notify session passed |connection|. |
std::unique_ptr<device::MockBluetoothGattNotifySession> notify_session( |
new NiceMock<device::MockBluetoothGattNotifySession>( |
- kToPeripheralCharID)); |
+ to_peripheral_char_->GetWeakPtr())); |
notify_session_alias_ = notify_session.get(); |
notify_session_success_callback_.Run(std::move(notify_session)); |