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

Unified Diff: device/bluetooth/bluetooth_device_android.cc

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
« no previous file with comments | « device/bluetooth/bluetooth_device_android.h ('k') | device/bluetooth/bluetooth_device_win.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: device/bluetooth/bluetooth_device_android.cc
diff --git a/device/bluetooth/bluetooth_device_android.cc b/device/bluetooth/bluetooth_device_android.cc
index bfd2ea642e2b0fe986f81ee2c3da181c455f43c0..15a2e92caa11dcced0b5224475118542e5d6e49a 100644
--- a/device/bluetooth/bluetooth_device_android.cc
+++ b/device/bluetooth/bluetooth_device_android.cc
@@ -139,14 +139,14 @@ bool BluetoothDeviceAndroid::IsConnecting() const {
return false;
}
-int16_t BluetoothDeviceAndroid::GetInquiryRSSI() const {
+base::Optional<int8_t> BluetoothDeviceAndroid::GetInquiryRSSI() const {
NOTIMPLEMENTED();
- return kUnknownPower;
+ return base::nullopt;
}
-int16_t BluetoothDeviceAndroid::GetInquiryTxPower() const {
+base::Optional<int8_t> BluetoothDeviceAndroid::GetInquiryTxPower() const {
NOTIMPLEMENTED();
- return kUnknownPower;
+ return base::nullopt;
}
bool BluetoothDeviceAndroid::ExpectingPinCode() const {
« no previous file with comments | « device/bluetooth/bluetooth_device_android.h ('k') | device/bluetooth/bluetooth_device_win.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698