Index: device/bluetooth/dbus/fake_bluetooth_gatt_descriptor_client.cc |
diff --git a/device/bluetooth/dbus/fake_bluetooth_gatt_descriptor_client.cc b/device/bluetooth/dbus/fake_bluetooth_gatt_descriptor_client.cc |
index c0dfc3b752c565f7d0f92ef4163a55cc4dbb5d21..434e97ff9b49a6d12ed29f326d49e5b0d8db083e 100644 |
--- a/device/bluetooth/dbus/fake_bluetooth_gatt_descriptor_client.cc |
+++ b/device/bluetooth/dbus/fake_bluetooth_gatt_descriptor_client.cc |
@@ -130,7 +130,7 @@ void FakeBluetoothGattDescriptorClient::WriteValue( |
// Since the only fake descriptor is "Client Characteristic Configuration" |
// and BlueZ doesn't allow writing to it, return failure. |
- error_callback.Run("org.bluez.Error.NotPermitted", |
+ error_callback.Run(bluetooth_gatt_service::kErrorWriteNotPermitted, |
"Writing to the Client Characteristic Configuration " |
"descriptor not allowed"); |
} |