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

Unified Diff: device/usb/usb_device_handle_impl.cc

Issue 1265833005: Get all the UsbConfigDescriptor for the device configuration (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: updated chromeos related code again Created 5 years, 5 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
Index: device/usb/usb_device_handle_impl.cc
diff --git a/device/usb/usb_device_handle_impl.cc b/device/usb/usb_device_handle_impl.cc
index 6a0861263e58f50557f68731b46079fecd62df9b..87b379d0878c1346bec3c2ce9b4500933885d279 100644
--- a/device/usb/usb_device_handle_impl.cc
+++ b/device/usb/usb_device_handle_impl.cc
@@ -776,7 +776,7 @@ void UsbDeviceHandleImpl::ResetDeviceOnBlockingThread(
void UsbDeviceHandleImpl::RefreshEndpointMap() {
DCHECK(thread_checker_.CalledOnValidThread());
endpoint_map_.clear();
- const UsbConfigDescriptor* config = device_->GetConfiguration();
+ const UsbConfigDescriptor* config = device_->GetCurrentConfiguration();
if (config) {
for (const auto& map_entry : claimed_interfaces_) {
int interface_number = map_entry.first;

Powered by Google App Engine
This is Rietveld 408576698