| Index: device/bluetooth/test/bluetooth_test_mac.mm
|
| diff --git a/device/bluetooth/test/bluetooth_test_mac.mm b/device/bluetooth/test/bluetooth_test_mac.mm
|
| index 230a48f3bd09efffd12d0786e5066a3678194f31..24dbe1c62304f1d37878bd8f4a7135910ead93cc 100644
|
| --- a/device/bluetooth/test/bluetooth_test_mac.mm
|
| +++ b/device/bluetooth/test/bluetooth_test_mac.mm
|
| @@ -225,11 +225,8 @@ void BluetoothTestMac::SimulateGattConnectionError(
|
| [mockPeripheral setStateForTesting:CBPeripheralStateDisconnected];
|
| CBCentralManager* centralManager =
|
| static_cast<CBCentralManager*>(mock_central_manager_);
|
| - // TODO(http://crbug.com/585894): Need to convert the connect error code into
|
| - // NSError
|
| - NSError* error = [NSError errorWithDomain:@"BluetoothDevice::ConnectErrorCode"
|
| - code:-1
|
| - userInfo:nil];
|
| + NSError* error =
|
| + BluetoothAdapterMac::GetNSErrorFromConnectErrorCode(errorCode);
|
| [centralManager.delegate centralManager:centralManager
|
| didFailToConnectPeripheral:peripheral
|
| error:error];
|
|
|