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

Issue 2463203002: Use JSON::Stringify instead of JSONValue (Closed)

Created:
4 years, 1 month ago by rwlbuis
Modified:
4 years, 1 month ago
CC:
chromium-reviews, blink-reviews, haraken, sebsg+paymentswatch_chromium.org, rouslan+payments_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Use JSON::Stringify instead of JSONValue Use JSON::Stringify instead of JSONValue. Keep the old behavior to not accept Arrays. BUG=602659 Committed: https://crrev.com/f68abde2798e2713e39b6911d68db0f219ae50f2 Cr-Commit-Position: refs/heads/master@{#429175}

Patch Set 1 #

Patch Set 2 : Try to fix test failure #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+13 lines, -12 lines) Patch
M third_party/WebKit/Source/modules/payments/PaymentRequest.cpp View 1 2 chunks +13 lines, -12 lines 1 comment Download

Messages

Total messages: 18 (9 generated)
rwlbuis
PTAL. Note that with or without this patch, passing some Objects like Sets or Maps ...
4 years, 1 month ago (2016-11-01 18:06:27 UTC) #4
please use gerrit instead
lgtm On 2016/11/01 18:06:27, rwlbuis wrote: > Note that with or without this patch, passing ...
4 years, 1 month ago (2016-11-01 18:54:35 UTC) #5
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/2463203002/20001
4 years, 1 month ago (2016-11-01 19:08:08 UTC) #7
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_x64_rel_ng on master.tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_x64_rel_ng/builds/308961)
4 years, 1 month ago (2016-11-01 21:44:13 UTC) #9
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/2463203002/20001
4 years, 1 month ago (2016-11-01 21:53:47 UTC) #11
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 1 month ago (2016-11-02 01:18:29 UTC) #13
haraken
V8 API usage LGTM with a comment. https://codereview.chromium.org/2463203002/diff/20001/third_party/WebKit/Source/modules/payments/PaymentRequest.cpp File third_party/WebKit/Source/modules/payments/PaymentRequest.cpp (right): https://codereview.chromium.org/2463203002/diff/20001/third_party/WebKit/Source/modules/payments/PaymentRequest.cpp#newcode378 third_party/WebKit/Source/modules/payments/PaymentRequest.cpp:378: if (value.IsEmpty()) ...
4 years, 1 month ago (2016-11-02 01:19:01 UTC) #15
commit-bot: I haz the power
Patchset 2 (id:??) landed as https://crrev.com/f68abde2798e2713e39b6911d68db0f219ae50f2 Cr-Commit-Position: refs/heads/master@{#429175}
4 years, 1 month ago (2016-11-02 01:19:49 UTC) #17
rwlbuis
4 years, 1 month ago (2016-11-02 01:59:09 UTC) #18
Message was sent while issue was closed.
On 2016/11/02 01:19:01, haraken wrote:
> V8 API usage LGTM with a comment.
> 
>
https://codereview.chromium.org/2463203002/diff/20001/third_party/WebKit/Sour...
> File third_party/WebKit/Source/modules/payments/PaymentRequest.cpp (right):
> 
>
https://codereview.chromium.org/2463203002/diff/20001/third_party/WebKit/Sour...
> third_party/WebKit/Source/modules/payments/PaymentRequest.cpp:378: if
> (value.IsEmpty()) {
> 
> v8::Local<v8::String> value;
> if (!v8::JSON::Stringify(...).To(&value)) {
>   exceptionState.throwTypeError();
>   return;
> }
> ...

Ah, will have a look tomorrow. I just reused the existing code dealing with
JSON::Stringify in other places :)

> Also Blink prefers a fully qualified variable name.
> 
> paymentMethodData => paymentMethodDataVector
> pmd => paymentMethodData

Ok.

Powered by Google App Engine
This is Rietveld 408576698