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

Issue 10389088: BinaryValue does not support NULL buffer. (Closed)

Created:
8 years, 7 months ago by mitchellwrosen
Modified:
8 years, 7 months ago
CC:
chromium-reviews
Base URL:
http://git.chromium.org/chromium/src.git@master
Visibility:
Public.

Description

Allowed BinaryValue to take a NULL buffer. BUG=127630 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=138044

Patch Set 1 #

Total comments: 1

Patch Set 2 : Public constructor, buffer_ is scoped_ptr, etc #

Total comments: 2

Patch Set 3 : Added comment #

Total comments: 1

Patch Set 4 : Nix fix; Take 1 #

Patch Set 5 : Explicit out-of-line destructor. Take 2. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+40 lines, -60 lines) Patch
M base/values.h View 1 2 3 4 2 chunks +13 lines, -13 lines 0 comments Download
M base/values.cc View 1 2 3 4 2 chunks +14 lines, -22 lines 0 comments Download
M base/values_unittest.cc View 1 3 chunks +11 lines, -19 lines 0 comments Download
M chrome/browser/extensions/api/socket/socket_api.cc View 1 2 chunks +2 lines, -6 lines 0 comments Download

Messages

Total messages: 21 (0 generated)
mitchellwrosen
8 years, 7 months ago (2012-05-11 04:13:34 UTC) #1
asargent_no_longer_on_chrome
https://chromiumcodereview.appspot.com/10389088/diff/1/base/values.h File base/values.h (right): https://chromiumcodereview.appspot.com/10389088/diff/1/base/values.h#newcode184 base/values.h:184: static BinaryValue* Create(char* buffer, size_t size); Instead of just ...
8 years, 7 months ago (2012-05-11 21:22:46 UTC) #2
mitchellwrosen
On 2012/05/11 21:22:46, Antony Sargent wrote: > https://chromiumcodereview.appspot.com/10389088/diff/1/base/values.h > File base/values.h (right): > > https://chromiumcodereview.appspot.com/10389088/diff/1/base/values.h#newcode184 ...
8 years, 7 months ago (2012-05-12 00:22:05 UTC) #3
asargent_no_longer_on_chrome
> Sure thing. What's to come of BinaryValue::CreateWithCopiedBuffer, for > "situations where you want to ...
8 years, 7 months ago (2012-05-14 16:50:28 UTC) #4
mitchellwrosen
On 2012/05/14 16:50:28, Antony Sargent wrote: > > Sure thing. What's to come of BinaryValue::CreateWithCopiedBuffer, ...
8 years, 7 months ago (2012-05-15 00:17:48 UTC) #5
asargent_no_longer_on_chrome
On 2012/05/15 00:17:48, mitchellwrosen wrote: > On 2012/05/14 16:50:28, Antony Sargent wrote: > > > ...
8 years, 7 months ago (2012-05-15 00:37:43 UTC) #6
mitchellwrosen
8 years, 7 months ago (2012-05-18 21:33:04 UTC) #7
asargent_no_longer_on_chrome
LGTM w/ one comment nit. +brettw for base/ (since I'm not in base/OWNERS, and I ...
8 years, 7 months ago (2012-05-18 22:49:49 UTC) #8
mitchellwrosen
https://chromiumcodereview.appspot.com/10389088/diff/8001/base/values.h File base/values.h (right): https://chromiumcodereview.appspot.com/10389088/diff/8001/base/values.h#newcode183 base/values.h:183: BinaryValue(scoped_ptr<char> buffer, size_t size); On 2012/05/18 22:49:49, Antony Sargent ...
8 years, 7 months ago (2012-05-18 23:04:29 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mitchellwrosen@chromium.org/10389088/3002
8 years, 7 months ago (2012-05-18 23:04:46 UTC) #10
commit-bot: I haz the power
Presubmit check for 10389088-3002 failed and returned exit status 1. Running presubmit commit checks ...
8 years, 7 months ago (2012-05-18 23:04:55 UTC) #11
mitchellwrosen
Should have seen that one coming. Trigger finger...
8 years, 7 months ago (2012-05-18 23:06:16 UTC) #12
brettw
lgtm https://chromiumcodereview.appspot.com/10389088/diff/3002/base/values.cc File base/values.cc (right): https://chromiumcodereview.appspot.com/10389088/diff/3002/base/values.cc#newcode302 base/values.cc:302: : Value(TYPE_BINARY), Indent these initializers 2 more spaces. ...
8 years, 7 months ago (2012-05-18 23:20:31 UTC) #13
brettw
lgtm lgtm
8 years, 7 months ago (2012-05-18 23:20:31 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mitchellwrosen@chromium.org/10389088/17001
8 years, 7 months ago (2012-05-19 17:24:18 UTC) #15
commit-bot: I haz the power
Try job failure for 10389088-17001 (retry) on mac_rel for step "compile" (clobber build). It's a ...
8 years, 7 months ago (2012-05-19 17:32:10 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mitchellwrosen@chromium.org/10389088/6005
8 years, 7 months ago (2012-05-19 18:08:32 UTC) #17
commit-bot: I haz the power
Change committed as 138044
8 years, 7 months ago (2012-05-19 19:31:19 UTC) #18
mitchellwrosen
On 2012/05/19 19:31:19, I haz the power (commit-bot) wrote: > Change committed as 138044 So ...
8 years, 7 months ago (2012-05-19 22:19:54 UTC) #19
asargent_no_longer_on_chrome
Probably the memory sheriffs will put in a suppression and file a bug for you. ...
8 years, 7 months ago (2012-05-21 17:27:13 UTC) #20
asargent_no_longer_on_chrome
8 years, 7 months ago (2012-05-21 17:42:11 UTC) #21
Oh, looks like it just got reverted. No big deal - I'll still follow up with an
answer for you on new vs. malloc.

Powered by Google App Engine
This is Rietveld 408576698