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

Unified Diff: device/devices_app/usb/device_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/devices_app/usb/device_impl.cc
diff --git a/device/devices_app/usb/device_impl.cc b/device/devices_app/usb/device_impl.cc
index e8b299b86b77f69da4f8992d90bc413cf13d89ab..213f1cfb79c761a45ee66d16fc936f0db61978f5 100644
--- a/device/devices_app/usb/device_impl.cc
+++ b/device/devices_app/usb/device_impl.cc
@@ -123,7 +123,7 @@ void DeviceImpl::GetDeviceInfo(const GetDeviceInfoCallback& callback) {
// but GetConfiguration() is non-const so we do it here for now.
DeviceInfoPtr info = DeviceInfo::From(*device_handle_->GetDevice());
const UsbConfigDescriptor* config =
- device_handle_->GetDevice()->GetConfiguration();
+ device_handle_->GetDevice()->GetActiveConfiguration();
info->configurations = mojo::Array<ConfigurationInfoPtr>::New(0);
Reilly Grant (use Gerrit) 2015/08/04 23:47:08 Please update this method to fill info->configurat
juncai 2015/08/05 15:42:17 I will do this in another patch.
if (config)
info->configurations.push_back(ConfigurationInfo::From(*config));
« no previous file with comments | « chrome/browser/devtools/device/usb/android_usb_device.cc ('k') | device/devices_app/usb/device_impl_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698