| Index: components/arc/bluetooth/arc_bluetooth_bridge.cc
|
| diff --git a/components/arc/bluetooth/arc_bluetooth_bridge.cc b/components/arc/bluetooth/arc_bluetooth_bridge.cc
|
| index 29b92d8ec94873772774a9f6a54966bd295babc2..fb716aca60ea93b031c0f2f2ad7cf2d99bb6217c 100644
|
| --- a/components/arc/bluetooth/arc_bluetooth_bridge.cc
|
| +++ b/components/arc/bluetooth/arc_bluetooth_bridge.cc
|
| @@ -1099,11 +1099,6 @@ void ArcBluetoothBridge::RegisterForGattNotification(
|
| return;
|
| }
|
|
|
| - if (characteristic->IsNotifying()) {
|
| - callback.Run(mojom::BluetoothGattStatus::GATT_SUCCESS);
|
| - return;
|
| - }
|
| -
|
| characteristic->StartNotifySession(
|
| base::Bind(&ArcBluetoothBridge::OnGattNotifyStartDone,
|
| weak_factory_.GetWeakPtr(), callback,
|
| @@ -1126,11 +1121,6 @@ void ArcBluetoothBridge::DeregisterForGattNotification(
|
| return;
|
| }
|
|
|
| - if (!characteristic->IsNotifying()) {
|
| - callback.Run(mojom::BluetoothGattStatus::GATT_SUCCESS);
|
| - return;
|
| - }
|
| -
|
| std::string char_id_str = characteristic->GetIdentifier();
|
| std::unique_ptr<BluetoothGattNotifySession> notify =
|
| std::move(notification_session_[char_id_str]);
|
|
|