Index: device/bluetooth/bluetooth_device_win.cc |
diff --git a/device/bluetooth/bluetooth_device_win.cc b/device/bluetooth/bluetooth_device_win.cc |
index 67c2aec154c2aaaad1b89c6b3293f4f1c834572a..a9f690ae0cabf1b4860dc21e86aed9d7b2af94e0 100644 |
--- a/device/bluetooth/bluetooth_device_win.cc |
+++ b/device/bluetooth/bluetooth_device_win.cc |
@@ -22,6 +22,8 @@ namespace { |
const int kSdpBytesBufferSize = 1024; |
+const char kApiUnavailable[] = "This API is not implemented on this platform."; |
+ |
} // namespace |
namespace device { |
@@ -263,6 +265,13 @@ void BluetoothDeviceWin::ConnectToService( |
socket->Connect(this, uuid, base::Bind(callback, socket), error_callback); |
} |
+void BluetoothDeviceWin::ConnectToServiceInsecurely( |
+ const BluetoothUUID& uuid, |
+ const ConnectToServiceCallback& callback, |
+ const ConnectToServiceErrorCallback& error_callback) { |
+ error_callback.Run(kApiUnavailable); |
+} |
+ |
void BluetoothDeviceWin::CreateGattConnection( |
const GattConnectionCallback& callback, |
const ConnectErrorCallback& error_callback) { |