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

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..5b7a203bb3d01a1636e768d02c704dfb1cc60429 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(indices.size() == 1);
Reilly Grant (use Gerrit) 2016/11/22 20:55:27 DCHECK_EQ(indices.size(), 1)
juncai 2016/11/22 23:12:06 Done.
+ 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