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

Unified Diff: extensions/browser/api/usb/usb_guid_map.cc

Issue 1857033002: Include USB device version in chrome.usb.Device fields. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased. Created 4 years, 8 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/usb/usb_service_impl.cc ('k') | extensions/common/api/usb.idl » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: extensions/browser/api/usb/usb_guid_map.cc
diff --git a/extensions/browser/api/usb/usb_guid_map.cc b/extensions/browser/api/usb/usb_guid_map.cc
index 0cb3ce857800befb7d25706b195949d1ecf9e4ea..8d65d07aa4cce74c63d308bcace837b1977bd5f4 100644
--- a/extensions/browser/api/usb/usb_guid_map.cc
+++ b/extensions/browser/api/usb/usb_guid_map.cc
@@ -56,6 +56,7 @@ void UsbGuidMap::GetApiDevice(scoped_refptr<const device::UsbDevice> device_in,
device_out->device = GetIdFromGuid(device_in->guid());
device_out->vendor_id = device_in->vendor_id();
device_out->product_id = device_in->product_id();
+ device_out->version = device_in->device_version();
device_out->product_name = base::UTF16ToUTF8(device_in->product_string());
device_out->manufacturer_name =
base::UTF16ToUTF8(device_in->manufacturer_string());
« no previous file with comments | « device/usb/usb_service_impl.cc ('k') | extensions/common/api/usb.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698