Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(271)

Unified Diff: third_party/WebKit/Source/modules/bluetooth/BluetoothRemoteGATTDescriptor.cpp

Issue 2831783002: bluetooth: Clean up better 'not connected' errors (Closed)
Patch Set: Fix enum Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « third_party/WebKit/Source/modules/bluetooth/BluetoothRemoteGATTCharacteristic.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/modules/bluetooth/BluetoothRemoteGATTDescriptor.cpp
diff --git a/third_party/WebKit/Source/modules/bluetooth/BluetoothRemoteGATTDescriptor.cpp b/third_party/WebKit/Source/modules/bluetooth/BluetoothRemoteGATTDescriptor.cpp
index a955399d1c1048e625baa064c0b43e22b550746d..0fda52c447c69b234a7a34d26dc4c31e068d373f 100644
--- a/third_party/WebKit/Source/modules/bluetooth/BluetoothRemoteGATTDescriptor.cpp
+++ b/third_party/WebKit/Source/modules/bluetooth/BluetoothRemoteGATTDescriptor.cpp
@@ -39,7 +39,7 @@ void BluetoothRemoteGATTDescriptor::ReadValueCallback(
// If the device is disconnected, reject.
if (!GetGatt()->RemoveFromActiveAlgorithms(resolver)) {
resolver->Reject(
- BluetoothError::CreateNotConnectedException(BluetoothOperation::GATT));
+ BluetoothError::CreateNotConnectedException(BluetoothOperation::kGATT));
return;
}
@@ -59,7 +59,7 @@ ScriptPromise BluetoothRemoteGATTDescriptor::readValue(
if (!GetGatt()->connected()) {
return ScriptPromise::RejectWithDOMException(
script_state,
- BluetoothError::CreateNotConnectedException(BluetoothOperation::GATT));
+ BluetoothError::CreateNotConnectedException(BluetoothOperation::kGATT));
}
if (!GetGatt()->device()->IsValidDescriptor(descriptor_->instance_id)) {
@@ -91,7 +91,7 @@ void BluetoothRemoteGATTDescriptor::WriteValueCallback(
// disconnected so we reject.
if (!GetGatt()->RemoveFromActiveAlgorithms(resolver)) {
resolver->Reject(
- BluetoothError::CreateNotConnectedException(BluetoothOperation::GATT));
+ BluetoothError::CreateNotConnectedException(BluetoothOperation::kGATT));
return;
}
@@ -109,7 +109,7 @@ ScriptPromise BluetoothRemoteGATTDescriptor::writeValue(
if (!GetGatt()->connected()) {
return ScriptPromise::RejectWithDOMException(
script_state,
- BluetoothError::CreateNotConnectedException(BluetoothOperation::GATT));
+ BluetoothError::CreateNotConnectedException(BluetoothOperation::kGATT));
}
if (!GetGatt()->device()->IsValidDescriptor(descriptor_->instance_id)) {
« no previous file with comments | « third_party/WebKit/Source/modules/bluetooth/BluetoothRemoteGATTCharacteristic.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698