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

Unified Diff: content/browser/bluetooth/bluetooth_dispatcher_host.cc

Issue 1941923002: bluetooth: Return int8_t and use -128 for unknown tx power. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@my-origin
Patch Set: Moar fixes Created 4 years, 8 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: content/browser/bluetooth/bluetooth_dispatcher_host.cc
diff --git a/content/browser/bluetooth/bluetooth_dispatcher_host.cc b/content/browser/bluetooth/bluetooth_dispatcher_host.cc
index 07269b3f157c009a23310782c43fbe25cf6acee7..23756814b17d523d9c9427df78e3163251a60ab5 100644
--- a/content/browser/bluetooth/bluetooth_dispatcher_host.cc
+++ b/content/browser/bluetooth/bluetooth_dispatcher_host.cc
@@ -918,12 +918,10 @@ void BluetoothDispatcherHost::FinishClosingChooser(
}
content::BluetoothDevice device_ipc(
- device_id_for_origin, // id
- device->GetName(), // name
- content::BluetoothDevice::ValidatePower(
- device->GetInquiryTxPower()), // tx_power
- content::BluetoothDevice::ValidatePower(
- device->GetInquiryRSSI()), // rssi
+ device_id_for_origin, // id
+ device->GetName(), // name
+ device->GetInquiryTxPower(), // tx_power
+ device->GetInquiryRSSI(), // rssi
content::BluetoothDevice::UUIDsFromBluetoothUUIDs(
filtered_uuids)); // uuids
RecordRequestDeviceOutcome(UMARequestDeviceOutcome::SUCCESS);

Powered by Google App Engine
This is Rietveld 408576698