| Index: device/bluetooth/bluetooth_device_android.cc
|
| diff --git a/device/bluetooth/bluetooth_device_android.cc b/device/bluetooth/bluetooth_device_android.cc
|
| index fb0ea7f06fdb4789d8cb31b41ddbaefc316f09d5..483d95e05a0e4a3d46088439e5df7656f2ed9ffa 100644
|
| --- a/device/bluetooth/bluetooth_device_android.cc
|
| +++ b/device/bluetooth/bluetooth_device_android.cc
|
| @@ -76,8 +76,11 @@ bool BluetoothDeviceAndroid::IsPaired() const {
|
| }
|
|
|
| bool BluetoothDeviceAndroid::IsConnected() const {
|
| - NOTIMPLEMENTED();
|
| - return false;
|
| + return IsGattConnected();
|
| +}
|
| +
|
| +bool BluetoothDeviceAndroid::IsGattConnected() const {
|
| + return gatt_connected_;
|
| }
|
|
|
| bool BluetoothDeviceAndroid::IsConnectable() const {
|
| @@ -185,12 +188,6 @@ void BluetoothDeviceAndroid::ConnectToServiceInsecurely(
|
| NOTIMPLEMENTED();
|
| }
|
|
|
| -void BluetoothDeviceAndroid::CreateGattConnection(
|
| - const GattConnectionCallback& callback,
|
| - const ConnectErrorCallback& error_callback) {
|
| - NOTIMPLEMENTED();
|
| -}
|
| -
|
| BluetoothDeviceAndroid::BluetoothDeviceAndroid(BluetoothAdapterAndroid* adapter)
|
| : BluetoothDevice(adapter) {}
|
|
|
| @@ -199,4 +196,15 @@ std::string BluetoothDeviceAndroid::GetDeviceName() const {
|
| AttachCurrentThread(), j_device_.obj()));
|
| }
|
|
|
| +void BluetoothDeviceAndroid::CreateGattConnectionImpl() {
|
| + // Implemented in following patch https://codereview.chromium.org/1256313002
|
| + NOTIMPLEMENTED();
|
| + DidFailToConnectGatt(ERROR_UNKNOWN);
|
| +}
|
| +
|
| +void BluetoothDeviceAndroid::DisconnectGatt() {
|
| + // Implemented in following patch https://codereview.chromium.org/1256313002
|
| + NOTIMPLEMENTED();
|
| +}
|
| +
|
| } // namespace device
|
|
|