| Index: device/bluetooth/public/interfaces/connect_result_type_converter.h
|
| diff --git a/device/bluetooth/public/interfaces/connect_result_type_converter.h b/device/bluetooth/public/interfaces/connect_result_type_converter.h
|
| index b06f8226da741359f90129f4caa33c40f3cc52dc..e92bff65ecba6b676b205206e36c60193f7748d0 100644
|
| --- a/device/bluetooth/public/interfaces/connect_result_type_converter.h
|
| +++ b/device/bluetooth/public/interfaces/connect_result_type_converter.h
|
| @@ -20,9 +20,6 @@ struct TypeConverter<bluetooth::mojom::ConnectResult,
|
| static bluetooth::mojom::ConnectResult Convert(
|
| const device::BluetoothDevice::ConnectErrorCode& input) {
|
| switch (input) {
|
| - case device::BluetoothDevice::ConnectErrorCode::
|
| - ERROR_ATTRIBUTE_LENGTH_INVALID:
|
| - return bluetooth::mojom::ConnectResult::ATTRIBUTE_LENGTH_INVALID;
|
| case device::BluetoothDevice::ConnectErrorCode::ERROR_AUTH_CANCELED:
|
| return bluetooth::mojom::ConnectResult::AUTH_CANCELED;
|
| case device::BluetoothDevice::ConnectErrorCode::ERROR_AUTH_FAILED:
|
| @@ -31,35 +28,20 @@ struct TypeConverter<bluetooth::mojom::ConnectResult,
|
| return bluetooth::mojom::ConnectResult::AUTH_REJECTED;
|
| case device::BluetoothDevice::ConnectErrorCode::ERROR_AUTH_TIMEOUT:
|
| return bluetooth::mojom::ConnectResult::AUTH_TIMEOUT;
|
| - case device::BluetoothDevice::ConnectErrorCode::
|
| - ERROR_CONNECTION_CONGESTED:
|
| - return bluetooth::mojom::ConnectResult::CONNECTION_CONGESTED;
|
| case device::BluetoothDevice::ConnectErrorCode::ERROR_FAILED:
|
| return bluetooth::mojom::ConnectResult::FAILED;
|
| case device::BluetoothDevice::ConnectErrorCode::ERROR_INPROGRESS:
|
| return bluetooth::mojom::ConnectResult::INPROGRESS;
|
| - case device::BluetoothDevice::ConnectErrorCode::
|
| - ERROR_INSUFFICIENT_ENCRYPTION:
|
| - return bluetooth::mojom::ConnectResult::INSUFFICIENT_ENCRYPTION;
|
| - case device::BluetoothDevice::ConnectErrorCode::ERROR_OFFSET_INVALID:
|
| - return bluetooth::mojom::ConnectResult::OFFSET_INVALID;
|
| - case device::BluetoothDevice::ConnectErrorCode::ERROR_READ_NOT_PERMITTED:
|
| - return bluetooth::mojom::ConnectResult::READ_NOT_PERMITTED;
|
| - case device::BluetoothDevice::ConnectErrorCode::
|
| - ERROR_REQUEST_NOT_SUPPORTED:
|
| - return bluetooth::mojom::ConnectResult::REQUEST_NOT_SUPPORTED;
|
| case device::BluetoothDevice::ConnectErrorCode::ERROR_UNKNOWN:
|
| return bluetooth::mojom::ConnectResult::UNKNOWN;
|
| case device::BluetoothDevice::ConnectErrorCode::ERROR_UNSUPPORTED_DEVICE:
|
| return bluetooth::mojom::ConnectResult::UNSUPPORTED_DEVICE;
|
| - case device::BluetoothDevice::ConnectErrorCode::ERROR_WRITE_NOT_PERMITTED:
|
| - return bluetooth::mojom::ConnectResult::WRITE_NOT_PERMITTED;
|
| case device::BluetoothDevice::ConnectErrorCode::NUM_CONNECT_ERROR_CODES:
|
| NOTREACHED();
|
| - return bluetooth::mojom::ConnectResult::UNTRANSLATED_CONNECT_ERROR_CODE;
|
| + return bluetooth::mojom::ConnectResult::FAILED;
|
| }
|
| NOTREACHED();
|
| - return bluetooth::mojom::ConnectResult::UNTRANSLATED_CONNECT_ERROR_CODE;
|
| + return bluetooth::mojom::ConnectResult::FAILED;
|
| }
|
| };
|
| }
|
|
|