| Index: third_party/WebKit/Source/modules/bluetooth/BluetoothRemoteGATTService.cpp
|
| diff --git a/third_party/WebKit/Source/modules/bluetooth/BluetoothRemoteGATTService.cpp b/third_party/WebKit/Source/modules/bluetooth/BluetoothRemoteGATTService.cpp
|
| index 250e55cfd02dac04ebdd87db46d18d85dcedcfea..a3ba1880f519b862b0622b1f3ee1bb55bcf9ba29 100644
|
| --- a/third_party/WebKit/Source/modules/bluetooth/BluetoothRemoteGATTService.cpp
|
| +++ b/third_party/WebKit/Source/modules/bluetooth/BluetoothRemoteGATTService.cpp
|
| @@ -71,13 +71,6 @@ private:
|
|
|
| ScriptPromise BluetoothRemoteGATTService::getCharacteristic(ScriptState* scriptState, const StringOrUnsignedLong& characteristic, ExceptionState& exceptionState)
|
| {
|
| -#if OS(MACOSX)
|
| - // TODO(jlebel): Remove when getCharacteristic is implemented.
|
| - return ScriptPromise::rejectWithDOMException(scriptState,
|
| - DOMException::create(NotSupportedError,
|
| - "getCharacteristic is not implemented yet. See https://goo.gl/J6ASzs"));
|
| -#endif // OS(MACOSX)
|
| -
|
| String characteristicUUID = BluetoothUUID::getCharacteristic(characteristic, exceptionState);
|
| if (exceptionState.hadException())
|
| return exceptionState.reject(scriptState);
|
| @@ -101,13 +94,6 @@ ScriptPromise BluetoothRemoteGATTService::getCharacteristics(ScriptState* script
|
|
|
| ScriptPromise BluetoothRemoteGATTService::getCharacteristicsImpl(ScriptState* scriptState, mojom::WebBluetoothGATTQueryQuantity quantity, String characteristicsUUID)
|
| {
|
| -#if OS(MACOSX)
|
| - // TODO(jlebel): Remove when getCharacteristics is implemented.
|
| - return ScriptPromise::rejectWithDOMException(scriptState,
|
| - DOMException::create(NotSupportedError,
|
| - "getCharacteristics is not implemented yet. See https://goo.gl/J6ASzs"));
|
| -#endif // OS(MACOSX)
|
| -
|
| ScriptPromiseResolver* resolver = ScriptPromiseResolver::create(scriptState);
|
| ScriptPromise promise = resolver->promise();
|
|
|
|
|