Index: third_party/WebKit/Source/modules/bluetooth/BluetoothRemoteGATTCharacteristic.cpp |
diff --git a/third_party/WebKit/Source/modules/bluetooth/BluetoothRemoteGATTCharacteristic.cpp b/third_party/WebKit/Source/modules/bluetooth/BluetoothRemoteGATTCharacteristic.cpp |
index 44d46662c83803a736b5d14599f86a61d7b0317d..03f5795f1b9787bfbee86052f8df002f87cd93b8 100644 |
--- a/third_party/WebKit/Source/modules/bluetooth/BluetoothRemoteGATTCharacteristic.cpp |
+++ b/third_party/WebKit/Source/modules/bluetooth/BluetoothRemoteGATTCharacteristic.cpp |
@@ -335,9 +335,8 @@ ScriptPromise BluetoothRemoteGATTCharacteristic::getDescriptorsImpl( |
const String& descriptorsUUID) { |
if (!getGatt()->connected()) { |
return ScriptPromise::rejectWithDOMException( |
- scriptState, |
- // TODO(crbug.com/684445): Change to DescriptorsRetrieval. |
- BluetoothError::createNotConnectedException(BluetoothOperation::GATT)); |
+ scriptState, BluetoothError::createNotConnectedException( |
+ BluetoothOperation::DescriptorsRetrieval)); |
} |
if (!getGatt()->device()->isValidCharacteristic( |
@@ -377,9 +376,8 @@ void BluetoothRemoteGATTCharacteristic::GetDescriptorsCallback( |
// If the device is disconnected, reject. |
if (!m_service->device()->gatt()->RemoveFromActiveAlgorithms(resolver)) { |
- // TODO(crbug.com/684445): Change to DescriptorsRetrieval. |
- resolver->reject( |
- BluetoothError::createNotConnectedException(BluetoothOperation::GATT)); |
+ resolver->reject(BluetoothError::createNotConnectedException( |
+ BluetoothOperation::DescriptorsRetrieval)); |
return; |
} |