Index: device/bluetooth/bluetooth_device.h |
diff --git a/device/bluetooth/bluetooth_device.h b/device/bluetooth/bluetooth_device.h |
index 17c5fdab72bba51cbccb6a34b64b7332f2551d67..2bf6f35b83fdbd9cce831026351cdfc1b3276cfc 100644 |
--- a/device/bluetooth/bluetooth_device.h |
+++ b/device/bluetooth/bluetooth_device.h |
@@ -457,6 +457,9 @@ class DEVICE_BLUETOOTH_EXPORT BluetoothDevice { |
// empty string. |
static std::string CanonicalizeAddress(const std::string& address); |
+ // Return associated BluetoothAdapter. |
+ BluetoothAdapter* GetAdapter() { return adapter_; } |
+ |
protected: |
// BluetoothGattConnection is a friend to call Add/RemoveGattConnection. |
friend BluetoothGattConnection; |