| Index: third_party/WebKit/Source/modules/bluetooth/BluetoothRemoteGATTCharacteristic.cpp
|
| diff --git a/third_party/WebKit/Source/modules/bluetooth/BluetoothRemoteGATTCharacteristic.cpp b/third_party/WebKit/Source/modules/bluetooth/BluetoothRemoteGATTCharacteristic.cpp
|
| index 89a1ea228b9310bb9b7cfa6293570c69c9dac058..ff47d23d5f0c6e83054a62e600d21a8af17c9c35 100644
|
| --- a/third_party/WebKit/Source/modules/bluetooth/BluetoothRemoteGATTCharacteristic.cpp
|
| +++ b/third_party/WebKit/Source/modules/bluetooth/BluetoothRemoteGATTCharacteristic.cpp
|
| @@ -122,7 +122,6 @@ void BluetoothRemoteGATTCharacteristic::ReadValueCallback(
|
|
|
| ScriptPromise BluetoothRemoteGATTCharacteristic::readValue(
|
| ScriptState* scriptState) {
|
| - // We always check that the device is connected.
|
| if (!getGatt()->connected()) {
|
| return ScriptPromise::rejectWithDOMException(
|
| scriptState,
|
| @@ -179,7 +178,6 @@ void BluetoothRemoteGATTCharacteristic::WriteValueCallback(
|
| ScriptPromise BluetoothRemoteGATTCharacteristic::writeValue(
|
| ScriptState* scriptState,
|
| const DOMArrayPiece& value) {
|
| - // We always check that the device is connected.
|
| if (!getGatt()->connected()) {
|
| return ScriptPromise::rejectWithDOMException(
|
| scriptState,
|
| @@ -248,7 +246,6 @@ void BluetoothRemoteGATTCharacteristic::NotificationsCallback(
|
|
|
| ScriptPromise BluetoothRemoteGATTCharacteristic::startNotifications(
|
| ScriptState* scriptState) {
|
| - // We always check that the device is connected.
|
| if (!getGatt()->connected()) {
|
| return ScriptPromise::rejectWithDOMException(
|
| scriptState,
|
| @@ -280,7 +277,6 @@ ScriptPromise BluetoothRemoteGATTCharacteristic::startNotifications(
|
|
|
| ScriptPromise BluetoothRemoteGATTCharacteristic::stopNotifications(
|
| ScriptState* scriptState) {
|
| - // We always check that the device is connected.
|
| if (!getGatt()->connected()) {
|
| return ScriptPromise::rejectWithDOMException(
|
| scriptState,
|
|
|