| Index: device/bluetooth/bluetooth_device_chromeos.cc
|
| diff --git a/device/bluetooth/bluetooth_device_chromeos.cc b/device/bluetooth/bluetooth_device_chromeos.cc
|
| index 0f1f273cb54b9b0e5f9e7a69781fcf28e63169af..0fe723ea51a038268b3cca99799a50253cb6414a 100644
|
| --- a/device/bluetooth/bluetooth_device_chromeos.cc
|
| +++ b/device/bluetooth/bluetooth_device_chromeos.cc
|
| @@ -432,7 +432,21 @@ void BluetoothDeviceChromeOS::ConnectToService(
|
| scoped_refptr<BluetoothSocketChromeOS> socket =
|
| BluetoothSocketChromeOS::CreateBluetoothSocket(
|
| ui_task_runner_, socket_thread_);
|
| - socket->Connect(this, uuid, base::Bind(callback, socket), error_callback);
|
| + socket->Connect(this, uuid, BluetoothSocketChromeOS::SECURITY_LEVEL_MEDIUM,
|
| + base::Bind(callback, socket), error_callback);
|
| +}
|
| +
|
| +void BluetoothDeviceChromeOS::ConnectToServiceInsecurely(
|
| + const BluetoothUUID& uuid,
|
| + const ConnectToServiceCallback& callback,
|
| + const ConnectToServiceErrorCallback& error_callback) {
|
| + VLOG(1) << object_path_.value() << ": Connecting insecurely to service: "
|
| + << uuid.canonical_value();
|
| + scoped_refptr<BluetoothSocketChromeOS> socket =
|
| + BluetoothSocketChromeOS::CreateBluetoothSocket(
|
| + ui_task_runner_, socket_thread_);
|
| + socket->Connect(this, uuid, BluetoothSocketChromeOS::SECURITY_LEVEL_LOW,
|
| + base::Bind(callback, socket), error_callback);
|
| }
|
|
|
| void BluetoothDeviceChromeOS::CreateGattConnection(
|
|
|