| Index: chrome/browser/extensions/api/easy_unlock_private/easy_unlock_private_bluetooth_util_chromeos.cc
|
| diff --git a/chrome/browser/extensions/api/easy_unlock_private/easy_unlock_private_bluetooth_util_chromeos.cc b/chrome/browser/extensions/api/easy_unlock_private/easy_unlock_private_bluetooth_util_chromeos.cc
|
| index 83d1ed7c131d6d79e3a6b84955e507f60a78b3f1..f32494293585ef2af4d4de3d2469b94149413d22 100644
|
| --- a/chrome/browser/extensions/api/easy_unlock_private/easy_unlock_private_bluetooth_util_chromeos.cc
|
| +++ b/chrome/browser/extensions/api/easy_unlock_private/easy_unlock_private_bluetooth_util_chromeos.cc
|
| @@ -20,6 +20,7 @@
|
| #include "base/time/time.h"
|
| #include "content/public/browser/browser_thread.h"
|
| #include "device/bluetooth/bluetooth_device.h"
|
| +#include "device/bluetooth/bluetooth_device_chromeos.h"
|
| #include "net/socket/socket_descriptor.h"
|
|
|
| // The bluez headers are (intentionally) not available within the Chromium
|
| @@ -137,6 +138,15 @@ void SeekBluetoothDeviceByAddress(const std::string& device_address,
|
| callback);
|
| }
|
|
|
| +void ConnectToBluetoothServiceInsecurely(
|
| + device::BluetoothDevice* device,
|
| + const device::BluetoothUUID& uuid,
|
| + const BluetoothDevice::ConnectToServiceCallback& callback,
|
| + const BluetoothDevice::ConnectToServiceErrorCallback& error_callback) {
|
| + static_cast<chromeos::BluetoothDeviceChromeOS*>(device)
|
| + ->ConnectToServiceInsecurely(uuid, callback, error_callback);
|
| +}
|
| +
|
| } // namespace easy_unlock
|
| } // namespace api
|
| } // namespace extensions
|
|
|