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

Unified Diff: chrome/browser/usb/usb_chooser_controller.cc

Issue 2727633004: Change UsbDeviceFilter to use const references instead of (Closed)
Patch Set: Fix callsite missed earlier due to not building for CrOS Created 3 years, 9 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 | « chrome/browser/ui/android/usb_chooser_dialog_android.cc ('k') | device/usb/mojo/device_manager_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/usb/usb_chooser_controller.cc
diff --git a/chrome/browser/usb/usb_chooser_controller.cc b/chrome/browser/usb/usb_chooser_controller.cc
index 2750234d5aae585dddcc02f098ac9735cafba7dd..a08a9626b22d2bfd5a471e0fab05667716fbd339 100644
--- a/chrome/browser/usb/usb_chooser_controller.cc
+++ b/chrome/browser/usb/usb_chooser_controller.cc
@@ -228,7 +228,7 @@ void UsbChooserController::GotUsbDeviceList(
bool UsbChooserController::DisplayDevice(
scoped_refptr<UsbDevice> device) const {
- if (!UsbDeviceFilter::MatchesAny(device, filters_))
+ if (!UsbDeviceFilter::MatchesAny(*device, filters_))
return false;
if (UsbBlocklist::Get().IsExcluded(device))
« no previous file with comments | « chrome/browser/ui/android/usb_chooser_dialog_android.cc ('k') | device/usb/mojo/device_manager_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698