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

Issue 10161035: Adding UsbService and UsbDevice constructs. (Closed)

Created:
8 years, 8 months ago by Garret Kelly
Modified:
7 years, 10 months ago
CC:
chromium-reviews
Visibility:
Public.

Description

Adding UsbService and UsbDevice constructs UsbService and UsbDevice allow for platform-independent access to the system's USB subsystem. BUG=none TEST=none Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=134216 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=134278

Patch Set 1 #

Total comments: 20

Patch Set 2 : Review changes. #

Patch Set 3 : Clang build fixes. #

Total comments: 2

Patch Set 4 : Review changes. #

Patch Set 5 : Changing meaning of transfer result code. #

Patch Set 6 : Adding DEPS #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+503 lines, -0 lines) Patch
A chrome/browser/usb/DEPS View 1 2 3 4 5 1 chunk +3 lines, -0 lines 0 comments Download
A chrome/browser/usb/usb_device.h View 1 2 3 4 1 chunk +115 lines, -0 lines 0 comments Download
A chrome/browser/usb/usb_device.cc View 1 2 3 4 1 chunk +165 lines, -0 lines 1 comment Download
A chrome/browser/usb/usb_service.h View 1 2 1 chunk +68 lines, -0 lines 0 comments Download
A chrome/browser/usb/usb_service.cc View 1 2 1 chunk +86 lines, -0 lines 0 comments Download
A chrome/browser/usb/usb_service_factory.h View 1 1 chunk +31 lines, -0 lines 0 comments Download
A chrome/browser/usb/usb_service_factory.cc View 1 1 chunk +28 lines, -0 lines 0 comments Download
M chrome/chrome_browser.gypi View 1 2 3 4 2 chunks +7 lines, -0 lines 0 comments Download

Messages

Total messages: 20 (0 generated)
Garret Kelly
8 years, 8 months ago (2012-04-25 20:59:41 UTC) #1
sail
https://chromiumcodereview.appspot.com/10161035/diff/1/chrome/browser/profiles/profile.h File chrome/browser/profiles/profile.h (right): https://chromiumcodereview.appspot.com/10161035/diff/1/chrome/browser/profiles/profile.h#newcode399 chrome/browser/profiles/profile.h:399: #if !defined(OS_ANDROID) it's a bad idea to have #ifdefs ...
8 years, 8 months ago (2012-04-25 21:06:34 UTC) #2
Elliot Glaysher
https://chromiumcodereview.appspot.com/10161035/diff/1/chrome/browser/profiles/profile_impl.h File chrome/browser/profiles/profile_impl.h (right): https://chromiumcodereview.appspot.com/10161035/diff/1/chrome/browser/profiles/profile_impl.h#newcode228 chrome/browser/profiles/profile_impl.h:228: scoped_ptr<UsbService> usb_service_; NACK. This exactly the sort of thing ...
8 years, 8 months ago (2012-04-25 21:10:19 UTC) #3
Garret Kelly
https://chromiumcodereview.appspot.com/10161035/diff/1/chrome/browser/profiles/profile_impl.h File chrome/browser/profiles/profile_impl.h (right): https://chromiumcodereview.appspot.com/10161035/diff/1/chrome/browser/profiles/profile_impl.h#newcode228 chrome/browser/profiles/profile_impl.h:228: scoped_ptr<UsbService> usb_service_; Oops! My mistake. Thank you for the ...
8 years, 8 months ago (2012-04-25 21:15:17 UTC) #4
miket_OOO
LGTM, mostly nit comments. But I agree with Elliot's point about Profile as a dumping ...
8 years, 8 months ago (2012-04-25 21:24:36 UTC) #5
Garret Kelly
> chrome/browser/usb/usb_service.h:23: class UsbService { > Is it safe if there are multiple UsbServices? When ...
8 years, 8 months ago (2012-04-26 02:05:15 UTC) #6
Garret Kelly
https://chromiumcodereview.appspot.com/10161035/diff/1/chrome/browser/usb/usb_device.cc File chrome/browser/usb/usb_device.cc (right): https://chromiumcodereview.appspot.com/10161035/diff/1/chrome/browser/usb/usb_device.cc#newcode137 chrome/browser/usb/usb_device.cc:137: reinterpret_cast<unsigned char *>(buffer->data()), length, On 2012/04/25 21:24:36, miket wrote: ...
8 years, 8 months ago (2012-04-26 02:21:42 UTC) #7
Garret Kelly
I've updated this CL per the review comments, would you kind reviewerfolk mind PTAL?
8 years, 8 months ago (2012-04-26 02:24:16 UTC) #8
sail
https://chromiumcodereview.appspot.com/10161035/diff/16001/chrome/chrome_browser.gypi File chrome/chrome_browser.gypi (right): https://chromiumcodereview.appspot.com/10161035/diff/16001/chrome/chrome_browser.gypi#newcode4509 chrome/chrome_browser.gypi:4509: 'browser/usb/usb_device.h', can you just add browser/usb to the "sources/" ...
8 years, 8 months ago (2012-04-26 04:35:43 UTC) #9
Garret Kelly
https://chromiumcodereview.appspot.com/10161035/diff/16001/chrome/chrome_browser.gypi File chrome/chrome_browser.gypi (right): https://chromiumcodereview.appspot.com/10161035/diff/16001/chrome/chrome_browser.gypi#newcode4509 chrome/chrome_browser.gypi:4509: 'browser/usb/usb_device.h', On 2012/04/26 04:35:44, sail wrote: > can you ...
8 years, 8 months ago (2012-04-26 15:10:16 UTC) #10
miket_OOO
> > Why const a primitive parameter? (not entirely a rhetorical question; I > believe ...
8 years, 8 months ago (2012-04-26 16:33:46 UTC) #11
Garret Kelly
sail, erg: Would you mind giving this CL a final look?
8 years, 8 months ago (2012-04-26 17:51:32 UTC) #12
Garret Kelly
On 2012/04/26 17:51:32, Garret Kelly wrote: > sail, erg: Would you mind giving this CL ...
8 years, 8 months ago (2012-04-26 17:51:59 UTC) #13
sail
On 2012/04/26 17:51:59, Garret Kelly wrote: > On 2012/04/26 17:51:32, Garret Kelly wrote: > > ...
8 years, 8 months ago (2012-04-26 17:57:42 UTC) #14
sail
8 years, 8 months ago (2012-04-26 17:57:50 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/gdk@chromium.org/10161035/28001
8 years, 8 months ago (2012-04-27 00:47:32 UTC) #16
commit-bot: I haz the power
Change committed as 134216
8 years, 8 months ago (2012-04-27 02:34:10 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/gdk@chromium.org/10161035/37001
8 years, 8 months ago (2012-04-27 14:36:47 UTC) #18
commit-bot: I haz the power
Change committed as 134278
8 years, 8 months ago (2012-04-27 16:10:06 UTC) #19
Marius
7 years, 10 months ago (2013-01-31 21:32:06 UTC) #20
Message was sent while issue was closed.
https://codereview.chromium.org/10161035/diff/37001/chrome/browser/usb/usb_de...
File chrome/browser/usb/usb_device.cc (right):

https://codereview.chromium.org/10161035/diff/37001/chrome/browser/usb/usb_de...
chrome/browser/usb/usb_device.cc:64: static void HandleTransferCompletion(struct
libusb_transfer* transfer) {
static void LIBUSB_CALL HandleTransferCompletion(..) {
to match expected calling convention on Windows libusb.

Powered by Google App Engine
This is Rietveld 408576698