| Index: third_party/WebKit/Source/modules/bluetooth/BluetoothRemoteGATTServer.cpp
|
| diff --git a/third_party/WebKit/Source/modules/bluetooth/BluetoothRemoteGATTServer.cpp b/third_party/WebKit/Source/modules/bluetooth/BluetoothRemoteGATTServer.cpp
|
| index 853418168d8a1e2055ce9ec581cb9e3d331b5654..a13f4c2a7197773186e931960f4e3fec28d7116f 100644
|
| --- a/third_party/WebKit/Source/modules/bluetooth/BluetoothRemoteGATTServer.cpp
|
| +++ b/third_party/WebKit/Source/modules/bluetooth/BluetoothRemoteGATTServer.cpp
|
| @@ -106,8 +106,7 @@ void BluetoothRemoteGATTServer::GetPrimaryServicesCallback(
|
| resolver->getExecutionContext()->isContextDestroyed())
|
| return;
|
|
|
| - // If the resolver is not in the set of ActiveAlgorithms then the frame
|
| - // disconnected so we reject.
|
| + // If the device is disconnected, reject.
|
| if (!RemoveFromActiveAlgorithms(resolver)) {
|
| resolver->reject(
|
| DOMException::create(NetworkError, kGATTServerDisconnected));
|
| @@ -175,7 +174,6 @@ ScriptPromise BluetoothRemoteGATTServer::getPrimaryServicesImpl(
|
| ScriptState* scriptState,
|
| mojom::blink::WebBluetoothGATTQueryQuantity quantity,
|
| String servicesUUID) {
|
| - // We always check that the device is connected.
|
| if (!connected()) {
|
| return ScriptPromise::rejectWithDOMException(
|
| scriptState,
|
|
|