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

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: Fix extensions tests Created 4 years, 7 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..74672128f7bd8736046fe9c0a7e447fe409c4f91 100644
--- a/device/bluetooth/bluetooth_device.cc
+++ b/device/bluetooth/bluetooth_device.cc
@@ -29,13 +29,12 @@ BluetoothDevice::~BluetoothDevice() {
DidDisconnectGatt();
}
-BluetoothDevice::ConnectionInfo::ConnectionInfo()
- : rssi(kUnknownPower),
- transmit_power(kUnknownPower),
- max_transmit_power(kUnknownPower) {}
+BluetoothDevice::ConnectionInfo::ConnectionInfo() {}
BluetoothDevice::ConnectionInfo::ConnectionInfo(
- int rssi, int transmit_power, int max_transmit_power)
+ const base::Optional<int8_t>& rssi,
+ const base::Optional<int8_t>& transmit_power,
+ const base::Optional<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