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

Unified Diff: device/bluetooth/device.cc

Issue 2404623002: bluetooth: Add DeviceChanged logging in Device service. (Closed)
Patch Set: Remove proxy from Device in JS 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
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;
}

Powered by Google App Engine
This is Rietveld 408576698