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

Unified Diff: device/bluetooth/device.cc

Issue 2404623002: bluetooth: Add DeviceChanged logging in Device service. (Closed)
Patch Set: Move devices map, simplify initialization Created 4 years, 2 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/adapter.cc ('k') | device/bluetooth/public/interfaces/adapter.mojom » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: device/bluetooth/device.cc
diff --git a/device/bluetooth/device.cc b/device/bluetooth/device.cc
index 6ebc34cc6b496be69a284ca730ee03d399590dcd..7e662802eabb5aed91c9859f782903049c866170 100644
--- a/device/bluetooth/device.cc
+++ b/device/bluetooth/device.cc
@@ -26,6 +26,11 @@ mojom::DeviceInfoPtr Device::ConstructDeviceInfoStruct(
base::UTF16ToUTF8(device->GetNameForDisplay());
device_info->address = device->GetAddress();
+ if (device->GetInquiryRSSI()) {
+ device_info->rssi = mojom::RSSIWrapper::New();
+ device_info->rssi->value = device->GetInquiryRSSI().value();
+ }
+
return device_info;
}
« no previous file with comments | « device/bluetooth/adapter.cc ('k') | device/bluetooth/public/interfaces/adapter.mojom » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698