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

Issue 2476393003: V8ObjectBuilder::addString support Nullable. (Closed)

Created:
4 years, 1 month ago by dhna
Modified:
4 years, 1 month ago
Reviewers:
haraken, bashi, Yuki
CC:
blink-reviews, blink-reviews-bindings_chromium.org, chromium-reviews, esprehn
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

V8ObjectBuilder::addString support Nullable. There are some logics which compare its value is null. if its value is null then call addNull(). These kinds of codes are not so cool. ex) RTCSessionDescription.cpp:77 and PaymentResponse.cpp:33 To simplify this logic, we could support nullable flag. Committed: https://crrev.com/fa7233194702581620e76348fb555cbc0c3db582 Cr-Commit-Position: refs/heads/master@{#430926}

Patch Set 1 #

Patch Set 2 : fix #

Patch Set 3 : Fix typo. #

Patch Set 4 : Add V8ObjectBuilderTest #

Total comments: 2

Patch Set 5 : Change to addStringOrNull and replace to StringView. #

Total comments: 2

Patch Set 6 : Fix nit. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+154 lines, -14 lines) Patch
M third_party/WebKit/Source/bindings/bindings.gni View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/bindings/core/v8/V8ObjectBuilder.h View 1 2 3 4 2 chunks +9 lines, -7 lines 0 comments Download
M third_party/WebKit/Source/bindings/core/v8/V8ObjectBuilder.cpp View 1 2 3 4 1 chunk +19 lines, -7 lines 0 comments Download
A third_party/WebKit/Source/bindings/core/v8/V8ObjectBuilderTest.cpp View 1 2 3 4 5 1 chunk +125 lines, -0 lines 0 comments Download

Messages

Total messages: 30 (14 generated)
dhna
@esprehn PTAL
4 years, 1 month ago (2016-11-08 15:08:56 UTC) #3
dhna
On 2016/11/08 15:08:56, dhna wrote: > @esprehn > PTAL @tkent Can you take it look ...
4 years, 1 month ago (2016-11-09 03:48:27 UTC) #8
tkent
On 2016/11/09 at 03:48:27, corona10 wrote: > On 2016/11/08 15:08:56, dhna wrote: > > @esprehn ...
4 years, 1 month ago (2016-11-09 03:51:20 UTC) #10
haraken
Looks good, but would you mind adding unittests for V8ObjectBuilder? i.e., add V8ObjectBuilderTest.cpp.
4 years, 1 month ago (2016-11-09 04:09:01 UTC) #11
dhna
On 2016/11/09 04:09:01, haraken wrote: > Looks good, but would you mind adding unittests for ...
4 years, 1 month ago (2016-11-09 04:18:23 UTC) #12
dhna
On 2016/11/09 04:18:23, dhna wrote: > On 2016/11/09 04:09:01, haraken wrote: > > Looks good, ...
4 years, 1 month ago (2016-11-09 06:20:32 UTC) #13
Yuki
https://codereview.chromium.org/2476393003/diff/60001/third_party/WebKit/Source/bindings/core/v8/V8ObjectBuilder.h File third_party/WebKit/Source/bindings/core/v8/V8ObjectBuilder.h (right): https://codereview.chromium.org/2476393003/diff/60001/third_party/WebKit/Source/bindings/core/v8/V8ObjectBuilder.h#newcode32 third_party/WebKit/Source/bindings/core/v8/V8ObjectBuilder.h:32: V8ObjectBuilder& addString(const String& name, It's okay to follow the ...
4 years, 1 month ago (2016-11-09 07:25:50 UTC) #14
dhna
On 2016/11/09 07:25:50, Yuki wrote: > https://codereview.chromium.org/2476393003/diff/60001/third_party/WebKit/Source/bindings/core/v8/V8ObjectBuilder.h > File third_party/WebKit/Source/bindings/core/v8/V8ObjectBuilder.h (right): > > https://codereview.chromium.org/2476393003/diff/60001/third_party/WebKit/Source/bindings/core/v8/V8ObjectBuilder.h#newcode32 > ...
4 years, 1 month ago (2016-11-09 11:00:28 UTC) #15
Yuki
LGTM with nits. Thanks for working on this. https://codereview.chromium.org/2476393003/diff/80001/third_party/WebKit/Source/bindings/core/v8/V8ObjectBuilderTest.cpp File third_party/WebKit/Source/bindings/core/v8/V8ObjectBuilderTest.cpp (right): https://codereview.chromium.org/2476393003/diff/80001/third_party/WebKit/Source/bindings/core/v8/V8ObjectBuilderTest.cpp#newcode15 third_party/WebKit/Source/bindings/core/v8/V8ObjectBuilderTest.cpp:15: TEST(V8ObjectBuilderTest, ...
4 years, 1 month ago (2016-11-09 12:17:18 UTC) #16
dhna
On 2016/11/09 12:17:18, Yuki wrote: > LGTM with nits. > > Thanks for working on ...
4 years, 1 month ago (2016-11-09 12:28:09 UTC) #17
dhna
On 2016/11/09 12:28:09, dhna wrote: > On 2016/11/09 12:17:18, Yuki wrote: > > LGTM with ...
4 years, 1 month ago (2016-11-09 12:28:33 UTC) #18
haraken
LGTM
4 years, 1 month ago (2016-11-09 12:38:48 UTC) #21
Yuki
LGTM.
4 years, 1 month ago (2016-11-09 13:03:21 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2476393003/100001
4 years, 1 month ago (2016-11-09 14:11:31 UTC) #26
commit-bot: I haz the power
Committed patchset #6 (id:100001)
4 years, 1 month ago (2016-11-09 14:15:24 UTC) #28
commit-bot: I haz the power
4 years, 1 month ago (2016-11-09 14:17:52 UTC) #30
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/fa7233194702581620e76348fb555cbc0c3db582
Cr-Commit-Position: refs/heads/master@{#430926}

Powered by Google App Engine
This is Rietveld 408576698