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

Unified Diff: device/bluetooth/bluetooth_remote_gatt_service_chromeos.cc

Issue 1307153002: Fixed bluetooth read write not supported errors (Closed) Base URL: https://chromium.googlesource.com/chromium/src@master
Patch Set: Created 5 years, 4 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 | « chromeos/dbus/fake_bluetooth_gatt_descriptor_client.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: device/bluetooth/bluetooth_remote_gatt_service_chromeos.cc
diff --git a/device/bluetooth/bluetooth_remote_gatt_service_chromeos.cc b/device/bluetooth/bluetooth_remote_gatt_service_chromeos.cc
index bd243d88046e10755f18aa9fd920873526b5c8cb..cea23ec35dfdc3d5107fadf23519187542896c4f 100644
--- a/device/bluetooth/bluetooth_remote_gatt_service_chromeos.cc
+++ b/device/bluetooth/bluetooth_remote_gatt_service_chromeos.cc
@@ -24,8 +24,7 @@ const char kErrorInvalidValueLength[] = "org.bluez.Error.InvalidValueLength";
const char kErrorNotAuthorized[] = "org.bluez.Error.NotAuthorized";
const char kErrorNotPaired[] = "org.bluez.Error.NotPaired";
const char kErrorNotSupported[] = "org.bluez.Error.NotSupported";
-const char kErrorReadNotPermitted[] = "org.bluez.Error.ReadNotPermitted";
-const char kErrorWriteNotPermitted[] = "org.bluez.Error.WriteNotPermitted";
+const char kErrorNotPermitted[] = "org.bluez.Error.NotPermitted";
} // namespace
@@ -166,8 +165,7 @@ BluetoothRemoteGattServiceChromeOS::DBusErrorToServiceError(
code = GATT_ERROR_IN_PROGRESS;
} else if (error_name == kErrorInvalidValueLength) {
code = GATT_ERROR_INVALID_LENGTH;
- } else if (error_name == kErrorReadNotPermitted ||
- error_name == kErrorWriteNotPermitted) {
+ } else if (error_name == kErrorNotPermitted) {
code = GATT_ERROR_NOT_PERMITTED;
} else if (error_name == kErrorNotAuthorized) {
code = GATT_ERROR_NOT_AUTHORIZED;
« no previous file with comments | « chromeos/dbus/fake_bluetooth_gatt_descriptor_client.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698