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

Unified Diff: device/usb/mojo/device_manager_impl.cc

Issue 2615353002: Typemap device.usb.DeviceFilter to device::UsbDeviceFilter. (Closed)
Patch Set: Addressed juncai@'s feedback. Created 3 years, 11 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/usb/web_usb_chooser_service.cc ('k') | device/usb/mojo/device_manager_impl_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: device/usb/mojo/device_manager_impl.cc
diff --git a/device/usb/mojo/device_manager_impl.cc b/device/usb/mojo/device_manager_impl.cc
index 1be91ec9663b643cffffa88f333a6142f17ec020..d7657deb6db7293da8bc13e4fb61f261b797fe0f 100644
--- a/device/usb/mojo/device_manager_impl.cc
+++ b/device/usb/mojo/device_manager_impl.cc
@@ -88,7 +88,7 @@ void DeviceManagerImpl::OnGetDevices(
const std::vector<scoped_refptr<UsbDevice>>& devices) {
std::vector<UsbDeviceFilter> filters;
if (options && options->filters)
- filters = mojo::ConvertTo<std::vector<UsbDeviceFilter>>(*options->filters);
+ filters.swap(*options->filters);
std::vector<DeviceInfoPtr> device_infos;
for (const auto& device : devices) {
« no previous file with comments | « chrome/browser/usb/web_usb_chooser_service.cc ('k') | device/usb/mojo/device_manager_impl_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698