| 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::
|
|
|