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

Unified Diff: device/bluetooth/bluetooth_low_energy_device_mac.mm

Issue 2228953003: bluetooth: Change GetInquiryTxPower and GetInquiryRSSI to return optional. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@my-origin
Patch Set: TIL value_or Created 4 years, 4 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 0db9ce10233571d642f9c29ee3050faecdf8b970..32259983c6542f230183ac0b365172f2fd56a821 100644
--- a/device/bluetooth/bluetooth_low_energy_device_mac.mm
+++ b/device/bluetooth/bluetooth_low_energy_device_mac.mm
@@ -143,13 +143,14 @@ bool BluetoothLowEnergyDeviceMac::IsConnecting() const {
return ([peripheral_ state] == CBPeripheralStateConnecting);
}
-int16_t BluetoothLowEnergyDeviceMac::GetInquiryRSSI() const {
- return kUnknownPower;
+base::Optional<int8_t> BluetoothLowEnergyDeviceMac::GetInquiryRSSI() const {
+ NOTIMPLEMENTED();
+ return base::nullopt;
}
-int16_t BluetoothLowEnergyDeviceMac::GetInquiryTxPower() const {
+base::Optional<int8_t> BluetoothLowEnergyDeviceMac::GetInquiryTxPower() const {
NOTIMPLEMENTED();
- return kUnknownPower;
+ return base::nullopt;
}
bool BluetoothLowEnergyDeviceMac::ExpectingPinCode() const {
« no previous file with comments | « device/bluetooth/bluetooth_low_energy_device_mac.h ('k') | device/bluetooth/bluez/bluetooth_bluez_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698