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

Unified Diff: device/usb/usb_device_android.cc

Issue 2700713002: Assume the 1st USB device configuration has been selected on Android. (Closed)
Patch Set: Created 3 years, 10 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: device/usb/usb_device_android.cc
diff --git a/device/usb/usb_device_android.cc b/device/usb/usb_device_android.cc
index 7bda3f48b07544da6b7dbb579c1afd0c2a06c9e3..7f98ec6f5d02f4092f4b73282247d9ca444bd9d0 100644
--- a/device/usb/usb_device_android.cc
+++ b/device/usb/usb_device_android.cc
@@ -144,6 +144,9 @@ UsbDeviceAndroid::UsbDeviceAndroid(
}
descriptor_.configurations.push_back(config);
}
+
+ if (configurations().size() > 0)
+ ActiveConfigurationChanged(configurations()[0].configuration_value);
}
UsbDeviceAndroid::~UsbDeviceAndroid() {}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698