| Index: device/bluetooth/bluetooth_device.cc
|
| diff --git a/device/bluetooth/bluetooth_device.cc b/device/bluetooth/bluetooth_device.cc
|
| index e666aa5c870785788f24031163407101a6ef8146..05532cc2b071b831cbc744c2d107cf6c07da519f 100644
|
| --- a/device/bluetooth/bluetooth_device.cc
|
| +++ b/device/bluetooth/bluetooth_device.cc
|
| @@ -19,7 +19,9 @@
|
| namespace device {
|
|
|
| BluetoothDevice::BluetoothDevice(BluetoothAdapter* adapter)
|
| - : adapter_(adapter), services_data_(new base::DictionaryValue()) {}
|
| + : adapter_(adapter),
|
| + gatt_services_discovery_complete_(false),
|
| + services_data_(new base::DictionaryValue()) {}
|
|
|
| BluetoothDevice::~BluetoothDevice() {
|
| DidDisconnectGatt();
|
| @@ -214,6 +216,14 @@ void BluetoothDevice::CreateGattConnection(
|
| CreateGattConnectionImpl();
|
| }
|
|
|
| +void BluetoothDevice::SetGattServicesDiscoveryComplete(bool complete) {
|
| + gatt_services_discovery_complete_ = complete;
|
| +}
|
| +
|
| +bool BluetoothDevice::IsGattServicesDiscoveryComplete() const {
|
| + return gatt_services_discovery_complete_;
|
| +}
|
| +
|
| std::vector<BluetoothGattService*>
|
| BluetoothDevice::GetGattServices() const {
|
| std::vector<BluetoothGattService*> services;
|
|
|