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

Unified Diff: device/bluetooth/bluetooth_low_energy_device_mac.mm

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_low_energy_device_mac.mm
diff --git a/device/bluetooth/bluetooth_low_energy_device_mac.mm b/device/bluetooth/bluetooth_low_energy_device_mac.mm
index c3d6d1d154dfc5bb6ec9ab61995de7ffc31f34e6..ce4f7f3f351777f9ce07899c4a4fa0633e76fe00 100644
--- a/device/bluetooth/bluetooth_low_energy_device_mac.mm
+++ b/device/bluetooth/bluetooth_low_energy_device_mac.mm
@@ -145,13 +145,13 @@ BluetoothDevice::UUIDList BluetoothLowEnergyDeviceMac::GetUUIDs() const {
advertised_uuids_.end());
}
-int16_t BluetoothLowEnergyDeviceMac::GetInquiryRSSI() const {
- return kUnknownPower;
+base::Optional<int8_t> BluetoothLowEnergyDeviceMac::GetInquiryRSSI() const {
+ return base::Optional<int8_t>();
}
-int16_t BluetoothLowEnergyDeviceMac::GetInquiryTxPower() const {
+base::Optional<int8_t> BluetoothLowEnergyDeviceMac::GetInquiryTxPower() const {
NOTIMPLEMENTED();
- return kUnknownPower;
+ return base::Optional<int8_t>();
}
bool BluetoothLowEnergyDeviceMac::ExpectingPinCode() const {

Powered by Google App Engine
This is Rietveld 408576698