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

Unified Diff: device/bluetooth/bluetooth_device.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: device/bluetooth/bluetooth_device.cc
diff --git a/device/bluetooth/bluetooth_device.cc b/device/bluetooth/bluetooth_device.cc
index 7d37591f5ea21483e15af7ab315436d3e8a6e70e..a397127fef47ca3219e8136ed5f2d99aae441630 100644
--- a/device/bluetooth/bluetooth_device.cc
+++ b/device/bluetooth/bluetooth_device.cc
@@ -30,12 +30,13 @@ BluetoothDevice::~BluetoothDevice() {
}
BluetoothDevice::ConnectionInfo::ConnectionInfo()
- : rssi(kUnknownPower),
- transmit_power(kUnknownPower),
- max_transmit_power(kUnknownPower) {}
+ : rssi(kUnknownRSSI),
+ transmit_power(kUnknownTxPower),
+ max_transmit_power(kUnknownTxPower) {}
-BluetoothDevice::ConnectionInfo::ConnectionInfo(
- int rssi, int transmit_power, int max_transmit_power)
+BluetoothDevice::ConnectionInfo::ConnectionInfo(int8_t rssi,
+ int8_t transmit_power,
+ int8_t max_transmit_power)
: rssi(rssi),
transmit_power(transmit_power),
max_transmit_power(max_transmit_power) {}

Powered by Google App Engine
This is Rietveld 408576698