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

Unified Diff: device/bluetooth/bluez/bluetooth_advertisement_bluez.cc

Issue 2907913002: Fix ManufacturerData and ServiceData DBus data type to match with bluez. (Closed)
Patch Set: Fix ManufacturerData and ServiceData DBus data type to match with bluez. Created 3 years, 7 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
Index: device/bluetooth/bluez/bluetooth_advertisement_bluez.cc
diff --git a/device/bluetooth/bluez/bluetooth_advertisement_bluez.cc b/device/bluetooth/bluez/bluetooth_advertisement_bluez.cc
index e3bbcbdb6296d77be75611488292eeb6fac6b93d..dff8b96ca09ba25125ca50bcdec796d328d969e8 100644
--- a/device/bluetooth/bluez/bluetooth_advertisement_bluez.cc
+++ b/device/bluetooth/bluez/bluetooth_advertisement_bluez.cc
@@ -29,10 +29,12 @@ void UnregisterFailure(device::BluetoothAdvertisement::ErrorCode error) {
device::BluetoothAdvertisement::ErrorCode GetErrorCodeFromErrorStrings(
const std::string& error_name,
const std::string& error_message) {
- if (error_name == bluetooth_advertising_manager::kErrorFailed ||
- error_name == bluetooth_advertising_manager::kErrorAlreadyExists) {
+ if (error_name == bluetooth_advertising_manager::kErrorAlreadyExists) {
return device::BluetoothAdvertisement::ErrorCode::
ERROR_ADVERTISEMENT_ALREADY_EXISTS;
+ } else if (error_name == bluetooth_advertising_manager::kErrorFailed) {
+ return device::BluetoothAdvertisement::ErrorCode::
+ ERROR_ADVERTISEMENT_FAILED;
} else if (error_name ==
bluetooth_advertising_manager::kErrorInvalidArguments) {
return device::BluetoothAdvertisement::ErrorCode::

Powered by Google App Engine
This is Rietveld 408576698