| Index: device/bluetooth/bluetooth_device.cc
|
| diff --git a/device/bluetooth/bluetooth_device.cc b/device/bluetooth/bluetooth_device.cc
|
| index a2249c50709db713510a7caab4ed1fb546269bb7..7f4324bae07c01fc702a77c69259caf8f44e401c 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) {
|
| }
|
| @@ -198,4 +204,8 @@ bool BluetoothDevice::ProvidesServiceWithUUID(
|
| return false;
|
| }
|
|
|
| +void BluetoothDevice::SetVisible(bool visible) {
|
| + visible_ = visible;
|
| +}
|
| +
|
| } // namespace device
|
|
|