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

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

Issue 2652163002: bluetooth: Improve GATT disconnected error message. (Closed)
Patch Set: Merge TOT Created 3 years, 11 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/LayoutTests/bluetooth/server/getPrimaryServices/reconnect-during-success-with-uuid.html ('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/BluetoothRemoteGATTServer.cpp
diff --git a/third_party/WebKit/Source/modules/bluetooth/BluetoothRemoteGATTServer.cpp b/third_party/WebKit/Source/modules/bluetooth/BluetoothRemoteGATTServer.cpp
index 8697c84e5df8796412672f69a15431ab80912994..384c5cedd4a342e75c8d0c43d5a51a4a54f16866 100644
--- a/third_party/WebKit/Source/modules/bluetooth/BluetoothRemoteGATTServer.cpp
+++ b/third_party/WebKit/Source/modules/bluetooth/BluetoothRemoteGATTServer.cpp
@@ -21,10 +21,9 @@ namespace blink {
namespace {
-const char kGATTServerDisconnected[] =
- "GATT Server disconnected while retrieving services.";
const char kGATTServerNotConnected[] =
- "GATT Server is disconnected. Cannot retrieve services.";
+ "GATT Server is disconnected. Cannot retrieve services. (Re)connect first "
+ "with `device.gatt.connect`.";
} // namespace
@@ -108,7 +107,7 @@ void BluetoothRemoteGATTServer::GetPrimaryServicesCallback(
// If the device is disconnected, reject.
if (!RemoveFromActiveAlgorithms(resolver)) {
resolver->reject(
- DOMException::create(NetworkError, kGATTServerDisconnected));
+ DOMException::create(NetworkError, kGATTServerNotConnected));
return;
}
« no previous file with comments | « third_party/WebKit/LayoutTests/bluetooth/server/getPrimaryServices/reconnect-during-success-with-uuid.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698