| Index: content/shell/browser/layout_test/layout_test_bluetooth_adapter_provider.cc
|
| diff --git a/content/shell/browser/layout_test/layout_test_bluetooth_adapter_provider.cc b/content/shell/browser/layout_test/layout_test_bluetooth_adapter_provider.cc
|
| index 3edc48ced57f9e33f668f4b89dc59f90b45b5ca9..849d791ac854312ccab6317a6b9faf7a0e227891 100644
|
| --- a/content/shell/browser/layout_test/layout_test_bluetooth_adapter_provider.cc
|
| +++ b/content/shell/browser/layout_test/layout_test_bluetooth_adapter_provider.cc
|
| @@ -1023,7 +1023,7 @@ LayoutTestBluetoothAdapterProvider::GetHeartRateService(
|
| .WillByDefault(RunCallbackWithResult<0 /* success_callback */>(
|
| [adapter, measurement_ptr]() {
|
| std::unique_ptr<NiceMockBluetoothGattNotifySession> notify_session(
|
| - GetBaseGATTNotifySession(measurement_ptr->GetIdentifier()));
|
| + GetBaseGATTNotifySession(measurement_ptr->GetWeakPtr()));
|
|
|
| std::vector<uint8_t> rate(1 /* size */);
|
| rate[0] = 60;
|
| @@ -1152,9 +1152,9 @@ LayoutTestBluetoothAdapterProvider::GetErrorCharacteristic(
|
| // static
|
| std::unique_ptr<NiceMockBluetoothGattNotifySession>
|
| LayoutTestBluetoothAdapterProvider::GetBaseGATTNotifySession(
|
| - const std::string& characteristic_identifier) {
|
| + base::WeakPtr<device::BluetoothRemoteGattCharacteristic> characteristic) {
|
| std::unique_ptr<NiceMockBluetoothGattNotifySession> session(
|
| - new NiceMockBluetoothGattNotifySession(characteristic_identifier));
|
| + new NiceMockBluetoothGattNotifySession(characteristic));
|
|
|
| ON_CALL(*session, Stop(_))
|
| .WillByDefault(testing::DoAll(
|
|
|