| 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..9a3b2707329441fd1fd8b59c01c54ec075e80800 100644
|
| --- a/device/usb/usb_device_handle_impl.cc
|
| +++ b/device/usb/usb_device_handle_impl.cc
|
| @@ -701,7 +701,7 @@ void UsbDeviceHandleImpl::SetConfigurationComplete(
|
| bool success,
|
| const ResultCallback& callback) {
|
| if (success) {
|
| - device_->RefreshConfiguration();
|
| + device_->RefreshActiveConfiguration();
|
| RefreshEndpointMap();
|
| }
|
| callback.Run(success);
|
| @@ -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_->GetActiveConfiguration();
|
| if (config) {
|
| for (const auto& map_entry : claimed_interfaces_) {
|
| int interface_number = map_entry.first;
|
|
|