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 a3ba1880f519b862b0622b1f3ee1bb55bcf9ba29..250e55cfd02dac04ebdd87db46d18d85dcedcfea 100644 |
--- a/third_party/WebKit/Source/modules/bluetooth/BluetoothRemoteGATTService.cpp |
+++ b/third_party/WebKit/Source/modules/bluetooth/BluetoothRemoteGATTService.cpp |
@@ -71,6 +71,13 @@ |
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); |
@@ -94,6 +101,13 @@ |
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(); |