| Index: third_party/WebKit/Source/modules/bluetooth/BluetoothSupplement.cpp
|
| diff --git a/third_party/WebKit/Source/modules/bluetooth/BluetoothSupplement.cpp b/third_party/WebKit/Source/modules/bluetooth/BluetoothSupplement.cpp
|
| index 4f445c117e729c9d62f51ff6398c3ae43c6d3b5d..c036489b43f60c4650ac857044995feca6a38c8d 100644
|
| --- a/third_party/WebKit/Source/modules/bluetooth/BluetoothSupplement.cpp
|
| +++ b/third_party/WebKit/Source/modules/bluetooth/BluetoothSupplement.cpp
|
| @@ -28,7 +28,16 @@ void BluetoothSupplement::provideTo(LocalFrame& frame, WebBluetooth* bluetooth)
|
|
|
| WebBluetooth* BluetoothSupplement::from(ScriptState* scriptState)
|
| {
|
| - LocalDOMWindow* window = scriptState->domWindow();
|
| + return BluetoothSupplement::from(scriptState->domWindow());
|
| +}
|
| +
|
| +WebBluetooth* BluetoothSupplement::from(ExecutionContext* executionContext)
|
| +{
|
| + return BluetoothSupplement::from(executionContext->executingWindow());
|
| +}
|
| +
|
| +WebBluetooth* BluetoothSupplement::from(LocalDOMWindow* window)
|
| +{
|
| if (window && window->frame()) {
|
| BluetoothSupplement* supplement = static_cast<BluetoothSupplement*>(WillBeHeapSupplement<LocalFrame>::from(window->frame(), supplementName()));
|
| if (supplement && supplement->m_bluetooth)
|
|
|