| Index: Source/modules/bluetooth/Bluetooth.cpp
|
| diff --git a/Source/modules/bluetooth/Bluetooth.cpp b/Source/modules/bluetooth/Bluetooth.cpp
|
| index 479c62773544f7c6e755dcba592973700d12033b..affaf61d09ef863261fe02782aef1a509334a58d 100644
|
| --- a/Source/modules/bluetooth/Bluetooth.cpp
|
| +++ b/Source/modules/bluetooth/Bluetooth.cpp
|
| @@ -12,6 +12,7 @@
|
| #include "core/dom/ExceptionCode.h"
|
| #include "modules/bluetooth/BluetoothDevice.h"
|
| #include "modules/bluetooth/BluetoothError.h"
|
| +#include "modules/bluetooth/BluetoothSupplement.h"
|
| #include "modules/bluetooth/BluetoothUUID.h"
|
| #include "modules/bluetooth/RequestDeviceOptions.h"
|
| #include "platform/UserGestureIndicator.h"
|
| @@ -58,7 +59,7 @@ ScriptPromise Bluetooth::requestDevice(ScriptState* scriptState, const RequestDe
|
| return ScriptPromise::rejectWithDOMException(scriptState, DOMException::create(SecurityError, "Must be handling a user gesture to show a permission request."));
|
| }
|
|
|
| - WebBluetooth* webbluetooth = Platform::current()->bluetooth();
|
| + WebBluetooth* webbluetooth = BluetoothSupplement::from(scriptState);
|
| if (!webbluetooth)
|
| return ScriptPromise::rejectWithDOMException(scriptState, DOMException::create(NotSupportedError));
|
|
|
|
|