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

Unified Diff: device/bluetooth/bluez/bluetooth_adapter_bluez.cc

Issue 2098653002: device/bluetooth/bluez: add discoverable timeout adapter property (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fixing nits Created 4 years, 6 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/bluez/bluetooth_adapter_bluez.cc
diff --git a/device/bluetooth/bluez/bluetooth_adapter_bluez.cc b/device/bluetooth/bluez/bluetooth_adapter_bluez.cc
index 6e304ad42ac1545cd19750f9e796cf9560f5fe1c..fdaefe32636c1ab0dcc763650364bb188c0ed41d 100644
--- a/device/bluetooth/bluez/bluetooth_adapter_bluez.cc
+++ b/device/bluetooth/bluez/bluetooth_adapter_bluez.cc
@@ -353,6 +353,18 @@ void BluetoothAdapterBlueZ::SetDiscoverable(
weak_ptr_factory_.GetWeakPtr(), callback, error_callback));
}
+uint32_t BluetoothAdapterBlueZ::GetDiscoverableTimeout() const {
+ if (!IsPresent())
+ return 0;
+
+ bluez::BluetoothAdapterClient::Properties* properties =
+ bluez::BluezDBusManager::Get()
+ ->GetBluetoothAdapterClient()
+ ->GetProperties(object_path_);
+
+ return properties->discoverable_timeout.value();
+}
+
bool BluetoothAdapterBlueZ::IsDiscovering() const {
if (!IsPresent())
return false;
« no previous file with comments | « device/bluetooth/bluez/bluetooth_adapter_bluez.h ('k') | device/bluetooth/bluez/bluetooth_bluez_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698