| Index: third_party/WebKit/Source/modules/bluetooth/Bluetooth.cpp
|
| diff --git a/third_party/WebKit/Source/modules/bluetooth/Bluetooth.cpp b/third_party/WebKit/Source/modules/bluetooth/Bluetooth.cpp
|
| index 8bfe3025b4e56008e9019fbf27383cb8395623c6..421002cb8a190ab1c7ddbe93a67719a68955cc66 100644
|
| --- a/third_party/WebKit/Source/modules/bluetooth/Bluetooth.cpp
|
| +++ b/third_party/WebKit/Source/modules/bluetooth/Bluetooth.cpp
|
| @@ -55,7 +55,7 @@ ScriptPromise Bluetooth::requestDevice(ScriptState* scriptState, const RequestDe
|
| {
|
| // 1. If the incumbent settings object is not a secure context, reject promise with a SecurityError and abort these steps.
|
| String errorMessage;
|
| - if (!scriptState->executionContext()->isPrivilegedContext(errorMessage)) {
|
| + if (!scriptState->executionContext()->isSecureContext(errorMessage)) {
|
| return ScriptPromise::rejectWithDOMException(scriptState, DOMException::create(SecurityError, errorMessage));
|
| }
|
|
|
|
|