Index: device/bluetooth/bluetooth_device.cc |
diff --git a/device/bluetooth/bluetooth_device.cc b/device/bluetooth/bluetooth_device.cc |
index a2249c50709db713510a7caab4ed1fb546269bb7..af985f2f4c63a0b7f1cae882e666f72b4310e07c 100644 |
--- a/device/bluetooth/bluetooth_device.cc |
+++ b/device/bluetooth/bluetooth_device.cc |
@@ -18,11 +18,17 @@ bool BluetoothDevice::IsUUIDValid(const std::string& uuid) { |
return !bluetooth_utils::CanonicalUuid(uuid).empty(); |
} |
-BluetoothDevice::BluetoothDevice() |
- : bluetooth_class_(0), |
+BluetoothDevice::BluetoothDevice(const std::string& name, |
+ const std::string& address, |
+ uint32 bluetooth_class, |
+ bool connected, |
+ bool bonded) |
+ : bluetooth_class_(bluetooth_class), |
+ name_(name), |
+ address_(address), |
visible_(false), |
- bonded_(false), |
- connected_(false), |
+ bonded_(bonded), |
+ connected_(connected), |
connectable_(true), |
connecting_(false) { |
} |