| Index: extensions/browser/api/bluetooth_low_energy/bluetooth_low_energy_event_router.cc
|
| diff --git a/extensions/browser/api/bluetooth_low_energy/bluetooth_low_energy_event_router.cc b/extensions/browser/api/bluetooth_low_energy/bluetooth_low_energy_event_router.cc
|
| index a0c539ee763effb24a805ff9d76ebf68ad0a8dff..01ada5dc7a380e3bf9373d77046c2beac0b21ef7 100644
|
| --- a/extensions/browser/api/bluetooth_low_energy/bluetooth_low_energy_event_router.cc
|
| +++ b/extensions/browser/api/bluetooth_low_energy/bluetooth_low_energy_event_router.cc
|
| @@ -1669,9 +1669,6 @@ void BluetoothLowEnergyEventRouter::OnConnectError(
|
| connecting_devices_.erase(connect_id);
|
| Status error_status = kStatusErrorFailed;
|
| switch (error_code) {
|
| - case BluetoothDevice::ERROR_ATTRIBUTE_LENGTH_INVALID:
|
| - error_status = kStatusErrorAttributeLengthInvalid;
|
| - break;
|
| case BluetoothDevice::ERROR_AUTH_CANCELED:
|
| error_status = kStatusErrorCanceled;
|
| break;
|
| @@ -1684,36 +1681,18 @@ void BluetoothLowEnergyEventRouter::OnConnectError(
|
| case BluetoothDevice::ERROR_AUTH_TIMEOUT:
|
| error_status = kStatusErrorTimeout;
|
| break;
|
| - case BluetoothDevice::ERROR_CONNECTION_CONGESTED:
|
| - error_status = kStatusErrorConnectionCongested;
|
| - break;
|
| case BluetoothDevice::ERROR_FAILED:
|
| error_status = kStatusErrorFailed;
|
| break;
|
| case BluetoothDevice::ERROR_INPROGRESS:
|
| error_status = kStatusErrorInProgress;
|
| break;
|
| - case BluetoothDevice::ERROR_INSUFFICIENT_ENCRYPTION:
|
| - error_status = kStatusErrorInsufficientEncryption;
|
| - break;
|
| - case BluetoothDevice::ERROR_OFFSET_INVALID:
|
| - error_status = kStatusErrorOffsetInvalid;
|
| - break;
|
| - case BluetoothDevice::ERROR_READ_NOT_PERMITTED:
|
| - error_status = kStatusErrorPermissionDenied;
|
| - break;
|
| - case BluetoothDevice::ERROR_REQUEST_NOT_SUPPORTED:
|
| - error_status = kStatusErrorRequestNotSupported;
|
| - break;
|
| case BluetoothDevice::ERROR_UNKNOWN:
|
| error_status = kStatusErrorFailed;
|
| break;
|
| case BluetoothDevice::ERROR_UNSUPPORTED_DEVICE:
|
| error_status = kStatusErrorUnsupportedDevice;
|
| break;
|
| - case BluetoothDevice::ERROR_WRITE_NOT_PERMITTED:
|
| - error_status = kStatusErrorPermissionDenied;
|
| - break;
|
| case BluetoothDevice::NUM_CONNECT_ERROR_CODES:
|
| NOTREACHED();
|
| error_status = kStatusErrorInvalidArguments;
|
|
|