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

Issue 10826273: Allocate a one-byte IOBuffer for transfers that are zero-length. (Closed)

Created:
8 years, 4 months ago by Garret Kelly
Modified:
8 years, 4 months ago
CC:
chromium-reviews, Aaron Boodman, mihaip-chromium-reviews_chromium.org, Renato Mangini (chromium)
Visibility:
Public.

Description

Allocate a one-byte IOBuffer for transfers that are zero-length. Since IOBuffers cannot be zero-length, but are used to back zero-length URBs, allocate a single unused byte to back zero-length transfers. BUG=128636 TEST=manual Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=151323

Patch Set 1 #

Total comments: 1

Patch Set 2 : Review nits. #

Total comments: 1

Patch Set 3 : Adding comment from review. #

Patch Set 4 : "impedance". #

Unified diffs Side-by-side diffs Delta from patch set Stats (+7 lines, -6 lines) Patch
M chrome/browser/extensions/api/usb/usb_device_resource.cc View 1 2 3 1 chunk +7 lines, -6 lines 0 comments Download

Messages

Total messages: 5 (0 generated)
Garret Kelly
8 years, 4 months ago (2012-08-13 15:19:40 UTC) #1
bryeung
lgtm https://chromiumcodereview.appspot.com/10826273/diff/1/chrome/browser/extensions/api/usb/usb_device_resource.cc File chrome/browser/extensions/api/usb/usb_device_resource.cc (right): https://chromiumcodereview.appspot.com/10826273/diff/1/chrome/browser/extensions/api/usb/usb_device_resource.cc#newcode120 chrome/browser/extensions/api/usb/usb_device_resource.cc:120: if (!input.data.get()) { nit: this if and the ...
8 years, 4 months ago (2012-08-13 15:22:28 UTC) #2
asargent_no_longer_on_chrome
lgtm http://codereview.chromium.org/10826273/diff/4001/chrome/browser/extensions/api/usb/usb_device_resource.cc File chrome/browser/extensions/api/usb/usb_device_resource.cc (right): http://codereview.chromium.org/10826273/diff/4001/chrome/browser/extensions/api/usb/usb_device_resource.cc#newcode117 chrome/browser/extensions/api/usb/usb_device_resource.cc:117: scoped_refptr<net::IOBuffer> buffer = new net::IOBuffer(std::max( can you include ...
8 years, 4 months ago (2012-08-13 17:37:50 UTC) #3
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/gdk@chromium.org/10826273/3002
8 years, 4 months ago (2012-08-13 17:48:44 UTC) #4
commit-bot: I haz the power
8 years, 4 months ago (2012-08-13 19:03:01 UTC) #5
Change committed as 151323

Powered by Google App Engine
This is Rietveld 408576698