Index: device/bluetooth/bluetooth_classic_device_mac.mm |
diff --git a/device/bluetooth/bluetooth_classic_device_mac.mm b/device/bluetooth/bluetooth_classic_device_mac.mm |
index f7743e0dca26c6167ea07c3f4a00f6aa5378d4eb..e524e8123db2493213c76c6c6977c74d03b97788 100644 |
--- a/device/bluetooth/bluetooth_classic_device_mac.mm |
+++ b/device/bluetooth/bluetooth_classic_device_mac.mm |
@@ -74,6 +74,13 @@ std::string BluetoothClassicDeviceMac::GetDeviceName() const { |
return base::SysNSStringToUTF8([device_ name]); |
} |
+void BluetoothClassicDeviceMac::CreateGattConnectionImpl() { |
+ // Classic devices do not support GATT connection. |
+ DidFailToConnectGatt(ERROR_UNSUPPORTED_DEVICE); |
+} |
+ |
+void BluetoothClassicDeviceMac::DisconnectGatt() {} |
+ |
std::string BluetoothClassicDeviceMac::GetAddress() const { |
return GetDeviceAddress(device_); |
} |
@@ -103,6 +110,10 @@ bool BluetoothClassicDeviceMac::IsConnected() const { |
return [device_ isConnected]; |
} |
+bool BluetoothClassicDeviceMac::IsGattConnected() const { |
+ return false; // Classic devices do not support GATT connection. |
+} |
+ |
bool BluetoothClassicDeviceMac::IsConnectable() const { |
return false; |
} |