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

Unified Diff: device/bluetooth/device.cc

Issue 2404623002: bluetooth: Add DeviceChanged logging in Device service. (Closed)
Patch Set: Change PacketReceived to DeviceChanged 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..b853df3bcd99ce3b21ee5dfe1d35bb635af9b5ce 100644
--- a/device/bluetooth/device.cc
+++ b/device/bluetooth/device.cc
@@ -25,6 +25,7 @@ mojom::DeviceInfoPtr Device::ConstructDeviceInfoStruct(
device_info->name_for_display =
base::UTF16ToUTF8(device->GetNameForDisplay());
device_info->address = device->GetAddress();
+ device_info->rssi = device->GetInquiryRSSI().value_or(0);
return device_info;
}

Powered by Google App Engine
This is Rietveld 408576698