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

Unified Diff: chrome/browser/ui/bluetooth/bluetooth_chooser_controller.cc

Issue 2518933004: Add multiple selection support to chooser on desktops (Closed)
Patch Set: address comments Created 4 years, 1 month 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: chrome/browser/ui/bluetooth/bluetooth_chooser_controller.cc
diff --git a/chrome/browser/ui/bluetooth/bluetooth_chooser_controller.cc b/chrome/browser/ui/bluetooth/bluetooth_chooser_controller.cc
index f658f69fe277d266ea952c9ce1091d047698ca27..13f85f20d01d0b085d6feee15fb0e7b9cce38d34 100644
--- a/chrome/browser/ui/bluetooth/bluetooth_chooser_controller.cc
+++ b/chrome/browser/ui/bluetooth/bluetooth_chooser_controller.cc
@@ -107,7 +107,9 @@ base::string16 BluetoothChooserController::GetStatus() const {
return status_text_;
}
-void BluetoothChooserController::Select(size_t index) {
+void BluetoothChooserController::Select(const std::vector<size_t>& indices) {
+ DCHECK_EQ(1u, indices.size());
+ size_t index = indices[0];
RecordInteractionWithChooser(event_handler_.is_null());
if (event_handler_.is_null()) {
return;

Powered by Google App Engine
This is Rietveld 408576698