Index: Source/modules/bluetooth/BluetoothGATTRemoteServer.cpp |
diff --git a/Source/modules/bluetooth/BluetoothGATTRemoteServer.cpp b/Source/modules/bluetooth/BluetoothGATTRemoteServer.cpp |
index 1c4da6faaa3a3fac137ebeeb7d3b16fe89db6a0c..07dc5c6b54e0078d2d759bc2d024e2dedf280f13 100644 |
--- a/Source/modules/bluetooth/BluetoothGATTRemoteServer.cpp |
+++ b/Source/modules/bluetooth/BluetoothGATTRemoteServer.cpp |
@@ -12,8 +12,8 @@ |
#include "core/dom/ExceptionCode.h" |
#include "modules/bluetooth/BluetoothError.h" |
#include "modules/bluetooth/BluetoothGATTService.h" |
+#include "modules/bluetooth/BluetoothSupplement.h" |
#include "modules/bluetooth/BluetoothUUID.h" |
-#include "public/platform/Platform.h" |
#include "public/platform/modules/bluetooth/WebBluetooth.h" |
#include "wtf/OwnPtr.h" |
@@ -31,7 +31,7 @@ BluetoothGATTRemoteServer* BluetoothGATTRemoteServer::take(ScriptPromiseResolver |
ScriptPromise BluetoothGATTRemoteServer::getPrimaryService(ScriptState* scriptState, const StringOrUnsignedLong& service, ExceptionState& exceptionState) |
{ |
- WebBluetooth* webbluetooth = Platform::current()->bluetooth(); |
+ WebBluetooth* webbluetooth = BluetoothSupplement::from(scriptState); |
String serviceUUID = BluetoothUUID::getService(service, exceptionState); |
if (exceptionState.hadException()) |