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

Unified Diff: device/bluetooth/bluetooth_device_win.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_win.cc
diff --git a/device/bluetooth/bluetooth_device_win.cc b/device/bluetooth/bluetooth_device_win.cc
index 525ab0a1d9da8f5e2aa24adcabc9d13e46845e1d..f7105989c5631be496472ea8cab7f4662984a4bb 100644
--- a/device/bluetooth/bluetooth_device_win.cc
+++ b/device/bluetooth/bluetooth_device_win.cc
@@ -112,13 +112,13 @@ BluetoothDevice::UUIDList BluetoothDeviceWin::GetUUIDs() const {
return uuids_;
}
-int16_t BluetoothDeviceWin::GetInquiryRSSI() const {
- return kUnknownPower;
+base::Optional<int8_t> BluetoothDeviceWin::GetInquiryRSSI() const {
+ return base::Optional<int8_t>();
}
-int16_t BluetoothDeviceWin::GetInquiryTxPower() const {
+base::Optional<int8_t> BluetoothDeviceWin::GetInquiryTxPower() const {
NOTIMPLEMENTED();
- return kUnknownPower;
+ return base::Optional<int8_t>();
}
bool BluetoothDeviceWin::ExpectingPinCode() const {

Powered by Google App Engine
This is Rietveld 408576698