Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1944)

Unified Diff: device/bluetooth/bluetooth_gatt_connection_chromeos.cc

Issue 1292263002: bluetooth: Create base class BluetoothDevice::CreateGattConnection impl. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@bt-adapter-
Patch Set: fix ProximityAuthBluetoothLowEnergyConnectionTest Created 5 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: device/bluetooth/bluetooth_gatt_connection_chromeos.cc
diff --git a/device/bluetooth/bluetooth_gatt_connection_chromeos.cc b/device/bluetooth/bluetooth_gatt_connection_chromeos.cc
index b0551cff1dc16295e7f991ee756e9cbd13568087..93b9747adcebc1cc8328e05be635f1f647de5158 100644
--- a/device/bluetooth/bluetooth_gatt_connection_chromeos.cc
+++ b/device/bluetooth/bluetooth_gatt_connection_chromeos.cc
@@ -16,9 +16,8 @@ BluetoothGattConnectionChromeOS::BluetoothGattConnectionChromeOS(
scoped_refptr<device::BluetoothAdapter> adapter,
const std::string& device_address,
const dbus::ObjectPath& object_path)
- : connected_(true),
- adapter_(adapter),
- device_address_(device_address),
+ : BluetoothGattConnection(adapter.get(), device_address),
+ connected_(true),
object_path_(object_path) {
DCHECK(adapter_.get());
DCHECK(!device_address_.empty());
@@ -32,10 +31,6 @@ BluetoothGattConnectionChromeOS::~BluetoothGattConnectionChromeOS() {
Disconnect();
}
-std::string BluetoothGattConnectionChromeOS::GetDeviceAddress() const {
- return device_address_;
-}
-
bool BluetoothGattConnectionChromeOS::IsConnected() {
// Lazily determine the activity state of the connection. If already
// marked as inactive, then return false. Otherwise, explicitly mark
« no previous file with comments | « device/bluetooth/bluetooth_gatt_connection_chromeos.h ('k') | device/bluetooth/bluetooth_low_energy_device_mac.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698