Update To 11.40.268.0
[platform/framework/web/crosswalk.git] / src / device / bluetooth / bluetooth_device_mac.mm
index 888ae69..4aad7cf 100644 (file)
@@ -29,6 +29,8 @@
 namespace device {
 namespace {
 
+const char kApiUnavailable[] = "This API is not implemented on this platform.";
+
 // Returns the first (should be, only) UUID contained within the
 // |service_class_data|. Returns an invalid (empty) UUID if none is found.
 BluetoothUUID ExtractUuid(IOBluetoothSDPDataElement* service_class_data) {
@@ -207,6 +209,13 @@ void BluetoothDeviceMac::ConnectToService(
       device_.get(), uuid, base::Bind(callback, socket), error_callback);
 }
 
+void BluetoothDeviceMac::ConnectToServiceInsecurely(
+      const BluetoothUUID& uuid,
+      const ConnectToServiceCallback& callback,
+      const ConnectToServiceErrorCallback& error_callback) {
+  error_callback.Run(kApiUnavailable);
+}
+
 void BluetoothDeviceMac::CreateGattConnection(
       const GattConnectionCallback& callback,
       const ConnectErrorCallback& error_callback) {