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

Unified Diff: content/browser/bluetooth/bluetooth_device_chooser_controller.cc

Issue 2304213002: Show device connection and paired status in chooser on Mac (Closed)
Patch Set: use vector icons Created 4 years, 3 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: content/browser/bluetooth/bluetooth_device_chooser_controller.cc
diff --git a/content/browser/bluetooth/bluetooth_device_chooser_controller.cc b/content/browser/bluetooth/bluetooth_device_chooser_controller.cc
index d524f19a864af9ab0535804a44eb4ad78e27bf78..a15d33bc087041cd1ec0784cacdf3ffbf05191d0 100644
--- a/content/browser/bluetooth/bluetooth_device_chooser_controller.cc
+++ b/content/browser/bluetooth/bluetooth_device_chooser_controller.cc
@@ -353,8 +353,8 @@ void BluetoothDeviceChooserController::AddFilteredDevice(
chooser_->AddOrUpdateDevice(
device.GetAddress(), !!device.GetName() /* should_update_name */,
device.GetNameForDisplay(),
- // TODO(http://crbug.com/543466): Show connection and paired status.
- false /* is_gatt_connected */, false /* is_paired */,
+ device.IsGattConnected() /* is_gatt_connected */,
+ device.IsPaired() /* is_paired */,
ortuno 2016/09/07 02:47:02 BluetoothDevice::IsPaired() returns whether or not
juncai 2016/09/09 20:06:15 Done.
rssi ? CalculateSignalStrengthLevel(rssi.value()) : -1);
}
}

Powered by Google App Engine
This is Rietveld 408576698