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

Unified Diff: device/bluetooth/bluetooth_device.cc

Issue 12310048: Bluetooth: Add a "connectable" property to the BluetoothDevice. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: niiiiiiiiiiits Created 7 years, 10 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
« no previous file with comments | « device/bluetooth/bluetooth_device.h ('k') | device/bluetooth/bluetooth_device_chromeos.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: device/bluetooth/bluetooth_device.cc
diff --git a/device/bluetooth/bluetooth_device.cc b/device/bluetooth/bluetooth_device.cc
index 378c6cedae797f0c8bc1c147007172cab3780f48..35b712c7f39a698eabe559293d09de675c570afa 100644
--- a/device/bluetooth/bluetooth_device.cc
+++ b/device/bluetooth/bluetooth_device.cc
@@ -14,7 +14,8 @@ BluetoothDevice::BluetoothDevice()
: bluetooth_class_(0),
visible_(false),
bonded_(false),
- connected_(false) {
+ connected_(false),
+ connectable_(true) {
}
BluetoothDevice::~BluetoothDevice() {
@@ -167,4 +168,8 @@ bool BluetoothDevice::IsConnected() const {
return connected_;
}
+bool BluetoothDevice::IsConnectable() const {
+ return connectable_;
+}
+
} // namespace device
« no previous file with comments | « device/bluetooth/bluetooth_device.h ('k') | device/bluetooth/bluetooth_device_chromeos.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698