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

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: use const auto Created 5 years, 4 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..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;

Powered by Google App Engine
This is Rietveld 408576698