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

Unified Diff: device/devices_app/usb/type_converters.cc

Issue 1646783002: Update webusb_descriptors.cc to parse the new WebUSB descriptors. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@io_buffer
Patch Set: Sometimes MSVC complains about passing size_type to BarrierClosure. Created 4 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 | « device/devices_app/usb/type_converters.h ('k') | device/usb/usb_device.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: device/devices_app/usb/type_converters.cc
diff --git a/device/devices_app/usb/type_converters.cc b/device/devices_app/usb/type_converters.cc
index cadf9cf9274aef15b7c9c094fb4bb35c773794d0..e7b2ea627dc6201fab0971c0f9ee232392fae4f6 100644
--- a/device/devices_app/usb/type_converters.cc
+++ b/device/devices_app/usb/type_converters.cc
@@ -236,14 +236,14 @@ TypeConverter<device::usb::WebUsbConfigurationSubsetPtr,
// static
device::usb::WebUsbDescriptorSetPtr TypeConverter<
device::usb::WebUsbDescriptorSetPtr,
- device::WebUsbDescriptorSet>::Convert(const device::WebUsbDescriptorSet&
- set) {
+ device::WebUsbAllowedOrigins>::Convert(const device::WebUsbAllowedOrigins&
+ allowed_origins) {
device::usb::WebUsbDescriptorSetPtr info =
device::usb::WebUsbDescriptorSet::New();
- info->origins = mojo::Array<mojo::String>::From(set.origins);
+ info->origins = mojo::Array<mojo::String>::From(allowed_origins.origins);
info->configurations =
mojo::Array<device::usb::WebUsbConfigurationSubsetPtr>::From(
- set.configurations);
+ allowed_origins.configurations);
return info;
}
« no previous file with comments | « device/devices_app/usb/type_converters.h ('k') | device/usb/usb_device.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698