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

Unified Diff: components/usb_service/usb_interface.cc

Issue 258783002: Extracted UsbService as interface. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixed chromeos issue. Created 6 years, 8 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 | « components/usb_service/usb_interface.h ('k') | components/usb_service/usb_service.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/usb_service/usb_interface.cc
diff --git a/components/usb_service/usb_interface.cc b/components/usb_service/usb_interface.cc
index 67f1a9d5aa06cedd4e54fe6d91884813d82b6f33..3194440c89b1277d9b5d10f3b30b622fba8d74cc 100644
--- a/components/usb_service/usb_interface.cc
+++ b/components/usb_service/usb_interface.cc
@@ -149,6 +149,12 @@ UsbConfigDescriptor::UsbConfigDescriptor(PlatformUsbConfigDescriptor config)
: config_(config) {
}
+// TODO(zvorygin): Used for tests only. Should be removed when
+// all interfaces are extracted properly.
+UsbConfigDescriptor::UsbConfigDescriptor() {
+ config_ = NULL;
+}
+
UsbConfigDescriptor::~UsbConfigDescriptor() {
if (config_ != NULL) {
libusb_free_config_descriptor(config_);
« no previous file with comments | « components/usb_service/usb_interface.h ('k') | components/usb_service/usb_service.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698