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

Issue 2355463002: [PaymentReqeust] Add error message in PaymentDetails. (in blink side) (Closed)

Created:
4 years, 3 months ago by Hwanseung Lee
Modified:
4 years, 2 months ago
CC:
chromium-reviews, qsr+mojo_chromium.org, Aaron Boodman, viettrungluu+watch_chromium.org, yzshen+watch_chromium.org, abarth-chromium, haraken, dglazkov+blink, blink-reviews, darin (slow to review), blink-reviews-api_chromium.org, Hwanseung Lee(hs1217.lee)
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[PaymentReqeust] Add error message in PaymentDetails. (in blink side) When the payment request is updated using updateWith, the PaymentDetails can contain a message in the error field that will be displayed to the user. https://w3c.github.io/browser-payment-api/#paymentdetails-dictionary https://github.com/w3c/browser-payment-api/pull/257 BUG=648240 Committed: https://crrev.com/d40525dcb2a5b7559bdaf0eac857bf0acad369b2 Cr-Commit-Position: refs/heads/master@{#421189}

Patch Set 1 #

Patch Set 2 : add test. #

Patch Set 3 : add test #

Total comments: 10

Patch Set 4 : using emptyString instead of stirng("") #

Patch Set 5 : [PaymentReqeust] Add error message in PaymentDetails. (in blink side) #

Total comments: 1

Patch Set 6 : add limit string length. #

Patch Set 7 : rebase from origin #

Messages

Total messages: 26 (11 generated)
Hwanseung Lee
@rouslan, zino Please take a look. thank you.
4 years, 3 months ago (2016-09-20 14:23:54 UTC) #3
haraken
Just a drive-by https://codereview.chromium.org/2355463002/diff/40001/third_party/WebKit/Source/modules/payments/PaymentRequest.cpp File third_party/WebKit/Source/modules/payments/PaymentRequest.cpp (right): https://codereview.chromium.org/2355463002/diff/40001/third_party/WebKit/Source/modules/payments/PaymentRequest.cpp#newcode131 third_party/WebKit/Source/modules/payments/PaymentRequest.cpp:131: output->error = WTF::String(""); WTF::emptyString() ?
4 years, 3 months ago (2016-09-20 14:46:53 UTC) #5
Hwanseung Lee
@haraken. i fixed it. https://codereview.chromium.org/2355463002/diff/40001/third_party/WebKit/Source/modules/payments/PaymentRequest.cpp File third_party/WebKit/Source/modules/payments/PaymentRequest.cpp (right): https://codereview.chromium.org/2355463002/diff/40001/third_party/WebKit/Source/modules/payments/PaymentRequest.cpp#newcode131 third_party/WebKit/Source/modules/payments/PaymentRequest.cpp:131: output->error = WTF::String(""); On 2016/09/20 ...
4 years, 3 months ago (2016-09-20 15:08:44 UTC) #8
please use gerrit instead
https://codereview.chromium.org/2355463002/diff/40001/third_party/WebKit/Source/modules/payments/PaymentRequest.cpp File third_party/WebKit/Source/modules/payments/PaymentRequest.cpp (right): https://codereview.chromium.org/2355463002/diff/40001/third_party/WebKit/Source/modules/payments/PaymentRequest.cpp#newcode528 third_party/WebKit/Source/modules/payments/PaymentRequest.cpp:528: exceptionState.throwTypeError("must be Error value empty"); "Error value should be ...
4 years, 3 months ago (2016-09-20 15:40:51 UTC) #9
Hwanseung Lee
@rouslan i fixed it. could you review again? thank you. https://codereview.chromium.org/2355463002/diff/40001/third_party/WebKit/Source/modules/payments/PaymentRequest.cpp File third_party/WebKit/Source/modules/payments/PaymentRequest.cpp (right): https://codereview.chromium.org/2355463002/diff/40001/third_party/WebKit/Source/modules/payments/PaymentRequest.cpp#newcode528 ...
4 years, 3 months ago (2016-09-20 16:01:10 UTC) #10
please use gerrit instead
https://codereview.chromium.org/2355463002/diff/80001/third_party/WebKit/Source/modules/payments/PaymentRequest.cpp File third_party/WebKit/Source/modules/payments/PaymentRequest.cpp (right): https://codereview.chromium.org/2355463002/diff/80001/third_party/WebKit/Source/modules/payments/PaymentRequest.cpp#newcode310 third_party/WebKit/Source/modules/payments/PaymentRequest.cpp:310: } Please also validate the length of the error ...
4 years, 3 months ago (2016-09-23 11:39:01 UTC) #11
Hwanseung Lee
On 2016/09/23 11:39:01, rouslan (OOO 9.23-10.10) wrote: > https://codereview.chromium.org/2355463002/diff/80001/third_party/WebKit/Source/modules/payments/PaymentRequest.cpp > File third_party/WebKit/Source/modules/payments/PaymentRequest.cpp (right): > > ...
4 years, 3 months ago (2016-09-23 14:38:08 UTC) #12
please use gerrit instead
lgtm
4 years, 2 months ago (2016-09-27 11:05:06 UTC) #13
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/2355463002/120001
4 years, 2 months ago (2016-09-27 11:05:56 UTC) #15
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/267566)
4 years, 2 months ago (2016-09-27 11:14:05 UTC) #17
Hwanseung Lee
+ rsesek@ for payment_request.mojom. PTAL. thank you.
4 years, 2 months ago (2016-09-27 11:26:40 UTC) #19
Robert Sesek
LGTM
4 years, 2 months ago (2016-09-27 13:23:03 UTC) #20
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/2355463002/120001
4 years, 2 months ago (2016-09-27 13:23:53 UTC) #22
commit-bot: I haz the power
Committed patchset #7 (id:120001)
4 years, 2 months ago (2016-09-27 13:29:11 UTC) #24
commit-bot: I haz the power
4 years, 2 months ago (2016-09-27 13:31:28 UTC) #26
Message was sent while issue was closed.
Patchset 7 (id:??) landed as
https://crrev.com/d40525dcb2a5b7559bdaf0eac857bf0acad369b2
Cr-Commit-Position: refs/heads/master@{#421189}

Powered by Google App Engine
This is Rietveld 408576698