| 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 95a9f481e0f2541367c0f368ada188c8d8ca5014..3bc0d3092fdf3fd517879475d79e6276c6878fc8 100644
|
| --- a/components/arc/bluetooth/arc_bluetooth_bridge.cc
|
| +++ b/components/arc/bluetooth/arc_bluetooth_bridge.cc
|
| @@ -1003,11 +1003,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,
|
| @@ -1030,11 +1025,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]);
|
|
|