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

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

Issue 2302963002: device/bluetooth: Add a helper function to BluetoothServiceRecordBlueZ (Closed)
Patch Set: Rebase on ToT. Created 4 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
« no previous file with comments | « device/bluetooth/bluez/bluetooth_service_record_bluez.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: device/bluetooth/bluez/bluetooth_service_record_bluez.cc
diff --git a/device/bluetooth/bluez/bluetooth_service_record_bluez.cc b/device/bluetooth/bluez/bluetooth_service_record_bluez.cc
index 262e4e1c3254c2305397df6c91e110adee555ab2..e039d25520a0c0f0b008807eb489e379398cfbd8 100644
--- a/device/bluetooth/bluez/bluetooth_service_record_bluez.cc
+++ b/device/bluetooth/bluez/bluetooth_service_record_bluez.cc
@@ -45,4 +45,8 @@ void BluetoothServiceRecordBlueZ::AddRecordEntry(
std::pair<uint16_t, BluetoothServiceAttributeValueBlueZ>(id, value));
}
+bool BluetoothServiceRecordBlueZ::IsAttributePresented(uint16_t id) {
+ return attributes_.find(id) != attributes_.end();
+}
+
} // namespace bluez
« no previous file with comments | « device/bluetooth/bluez/bluetooth_service_record_bluez.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698