| Index: content/browser/bluetooth/bluetooth_dispatcher_host.cc
|
| diff --git a/content/browser/bluetooth/bluetooth_dispatcher_host.cc b/content/browser/bluetooth/bluetooth_dispatcher_host.cc
|
| index d655d9d017a09b735357242ecedebf4450637300..6d62ad3afa4d1784a215d19b12f16f21dc9d5b0f 100644
|
| --- a/content/browser/bluetooth/bluetooth_dispatcher_host.cc
|
| +++ b/content/browser/bluetooth/bluetooth_dispatcher_host.cc
|
| @@ -134,6 +134,27 @@ WebBluetoothError TranslateConnectError(
|
| case device::BluetoothDevice::ERROR_UNSUPPORTED_DEVICE:
|
| RecordConnectGATTOutcome(UMAConnectGATTOutcome::UNSUPPORTED_DEVICE);
|
| return WebBluetoothError::ConnectUnsupportedDevice;
|
| + case device::BluetoothDevice::ERROR_ATTRIBUTE_LENGTH_INVALID:
|
| + RecordConnectGATTOutcome(UMAConnectGATTOutcome::ATTRIBUTE_LENGTH_INVALID);
|
| + return WebBluetoothError::ConnectAttributeLengthInvalid;
|
| + case device::BluetoothDevice::ERROR_CONNECTION_CONGESTED:
|
| + RecordConnectGATTOutcome(UMAConnectGATTOutcome::CONNECTION_CONGESTED);
|
| + return WebBluetoothError::ConnectConnectionCongested;
|
| + case device::BluetoothDevice::ERROR_INSUFFICIENT_ENCRYPTION:
|
| + RecordConnectGATTOutcome(UMAConnectGATTOutcome::INSUFFICIENT_ENCRYPTION);
|
| + return WebBluetoothError::ConnectInsufficientEncryption;
|
| + case device::BluetoothDevice::ERROR_OFFSET_INVALID:
|
| + RecordConnectGATTOutcome(UMAConnectGATTOutcome::OFFSET_INVALID);
|
| + return WebBluetoothError::ConnectOffsetInvalid;
|
| + case device::BluetoothDevice::ERROR_READ_FAILED:
|
| + RecordConnectGATTOutcome(UMAConnectGATTOutcome::READ_FAILED);
|
| + return WebBluetoothError::ConnectReadFailed;
|
| + case device::BluetoothDevice::ERROR_REQUEST_NOT_SUPPORTED:
|
| + RecordConnectGATTOutcome(UMAConnectGATTOutcome::REQUEST_NOT_SUPPORTED);
|
| + return WebBluetoothError::ConnectRequestNotSupported;
|
| + case device::BluetoothDevice::ERROR_WRITE_FAILED:
|
| + RecordConnectGATTOutcome(UMAConnectGATTOutcome::WRITE_FAILED);
|
| + return WebBluetoothError::ConnectWriteFailed;
|
| }
|
| NOTREACHED();
|
| return WebBluetoothError::UntranslatedConnectErrorCode;
|
|
|