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

Issue 2038423002: Adding support for phone and email. (Closed)

Created:
4 years, 6 months ago by Byoungkwon Ko
Modified:
4 years, 6 months ago
CC:
Aaron Boodman, abarth-chromium, ben+mojo_chromium.org, blink-reviews, blink-reviews-api_chromium.org, chromium-reviews, darin (slow to review), dglazkov+blink, haraken, qsr+mojo_chromium.org, viettrungluu+watch_chromium.org, yzshen+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Adding support for phone and email. This change adds support for two new PaymentOptions for payer’s email and payer’s phone number[1]. [1] https://github.com/w3c/browser-payment-api/pull/174 BUG=617195 Committed: https://crrev.com/26dc6730a200dfcb8e199de41a9c594b0744a004 Cr-Commit-Position: refs/heads/master@{#400268}

Patch Set 1 #

Total comments: 2

Patch Set 2 : #

Patch Set 3 : #

Total comments: 12

Patch Set 4 : #

Patch Set 5 : #

Total comments: 11

Patch Set 6 : #

Total comments: 4

Patch Set 7 : #

Patch Set 8 : #

Total comments: 3

Patch Set 9 : Adding support for phone and email. #

Patch Set 10 : Adding support for phone and email. #

Total comments: 2

Patch Set 11 : Adding support for phone and email. #

Total comments: 1

Patch Set 12 : Adding support for phone and email. #

Total comments: 10

Patch Set 13 : Adding support for phone and email. #

Total comments: 1

Messages

Total messages: 82 (28 generated)
zino
https://codereview.chromium.org/2038423002/diff/1/third_party/WebKit/Source/modules/payments/PaymentRequest.cpp File third_party/WebKit/Source/modules/payments/PaymentRequest.cpp (right): https://codereview.chromium.org/2038423002/diff/1/third_party/WebKit/Source/modules/payments/PaymentRequest.cpp#newcode443 third_party/WebKit/Source/modules/payments/PaymentRequest.cpp:443: m_payerEmail = response->payer_email; This should happen if requestPayerEmail is ...
4 years, 6 months ago (2016-06-06 07:26:50 UTC) #3
zino
Rouslan@ PTAL. https://codereview.chromium.org/2038423002/diff/40001/third_party/WebKit/Source/modules/payments/PaymentRequest.cpp File third_party/WebKit/Source/modules/payments/PaymentRequest.cpp (right): https://codereview.chromium.org/2038423002/diff/40001/third_party/WebKit/Source/modules/payments/PaymentRequest.cpp#newcode454 third_party/WebKit/Source/modules/payments/PaymentRequest.cpp:454: if (m_options.requestPayerEmail() && !response->payer_email.isNull()) { I think ...
4 years, 6 months ago (2016-06-06 14:19:32 UTC) #8
zino
BK@, I think you will have to write some codes in android side as well. ...
4 years, 6 months ago (2016-06-06 14:21:16 UTC) #9
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2038423002/40001
4 years, 6 months ago (2016-06-06 15:26:42 UTC) #11
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: ios-device on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios-device/builds/16600) ios-device-gn on ...
4 years, 6 months ago (2016-06-06 15:28:56 UTC) #13
please use gerrit instead
Great start! Keep it up! https://codereview.chromium.org/2038423002/diff/40001/third_party/WebKit/Source/modules/payments/PaymentAddress.h File third_party/WebKit/Source/modules/payments/PaymentAddress.h (right): https://codereview.chromium.org/2038423002/diff/40001/third_party/WebKit/Source/modules/payments/PaymentAddress.h#newcode36 third_party/WebKit/Source/modules/payments/PaymentAddress.h:36: const String& phone() const ...
4 years, 6 months ago (2016-06-06 15:43:42 UTC) #14
please use gerrit instead
By the way, don't worry about the Java side. That's quite involved. I can add ...
4 years, 6 months ago (2016-06-06 15:51:41 UTC) #15
Byoungkwon Ko
Dear zino and Rouslan. Thanks for your review and cheer up. I will do my ...
4 years, 6 months ago (2016-06-06 17:24:27 UTC) #16
zino
https://codereview.chromium.org/2038423002/diff/80001/third_party/WebKit/Source/modules/payments/PaymentRequest.cpp File third_party/WebKit/Source/modules/payments/PaymentRequest.cpp (right): https://codereview.chromium.org/2038423002/diff/80001/third_party/WebKit/Source/modules/payments/PaymentRequest.cpp#newcode454 third_party/WebKit/Source/modules/payments/PaymentRequest.cpp:454: if (m_options.requestPayerEmail() && (response->payer_email.isNull() || response->payer_email.isEmpty())) { nit: Should ...
4 years, 6 months ago (2016-06-07 16:40:08 UTC) #17
please use gerrit instead
https://codereview.chromium.org/2038423002/diff/80001/third_party/WebKit/Source/modules/payments/PaymentRequestTest.cpp File third_party/WebKit/Source/modules/payments/PaymentRequestTest.cpp (right): https://codereview.chromium.org/2038423002/diff/80001/third_party/WebKit/Source/modules/payments/PaymentRequestTest.cpp#newcode598 third_party/WebKit/Source/modules/payments/PaymentRequestTest.cpp:598: TEST_F(PaymentRequestTest, RejectShowPromiseWithRequestPayerEmailFalseAndPayerEmailExistsInResponse) On 2016/06/07 16:40:08, zino wrote: > Do ...
4 years, 6 months ago (2016-06-07 17:04:24 UTC) #18
Byoungkwon Ko
Dear zino and Rouslan. Thanks for your review in detail !!! I am really happy ...
4 years, 6 months ago (2016-06-07 22:59:56 UTC) #19
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2038423002/100001
4 years, 6 months ago (2016-06-07 23:37:15 UTC) #21
please use gerrit instead
lgtm
4 years, 6 months ago (2016-06-07 23:38:04 UTC) #22
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: linux_android_rel_ng on tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/linux_android_rel_ng/builds/83680)
4 years, 6 months ago (2016-06-07 23:50:37 UTC) #24
dcheng
https://codereview.chromium.org/2038423002/diff/100001/third_party/WebKit/Source/modules/payments/PaymentResponse.cpp File third_party/WebKit/Source/modules/payments/PaymentResponse.cpp (right): https://codereview.chromium.org/2038423002/diff/100001/third_party/WebKit/Source/modules/payments/PaymentResponse.cpp#newcode18 third_party/WebKit/Source/modules/payments/PaymentResponse.cpp:18: , m_payerEmail(response->payer_email.isEmpty() ? String() : response->payer_email) I'm kind of ...
4 years, 6 months ago (2016-06-08 00:31:44 UTC) #26
dcheng
https://codereview.chromium.org/2038423002/diff/100001/third_party/WebKit/Source/modules/payments/PaymentResponse.cpp File third_party/WebKit/Source/modules/payments/PaymentResponse.cpp (right): https://codereview.chromium.org/2038423002/diff/100001/third_party/WebKit/Source/modules/payments/PaymentResponse.cpp#newcode18 third_party/WebKit/Source/modules/payments/PaymentResponse.cpp:18: , m_payerEmail(response->payer_email.isEmpty() ? String() : response->payer_email) On 2016/06/08 at ...
4 years, 6 months ago (2016-06-08 00:37:53 UTC) #27
please use gerrit instead
https://codereview.chromium.org/2038423002/diff/100001/third_party/WebKit/Source/modules/payments/PaymentResponse.cpp File third_party/WebKit/Source/modules/payments/PaymentResponse.cpp (right): https://codereview.chromium.org/2038423002/diff/100001/third_party/WebKit/Source/modules/payments/PaymentResponse.cpp#newcode18 third_party/WebKit/Source/modules/payments/PaymentResponse.cpp:18: , m_payerEmail(response->payer_email.isEmpty() ? String() : response->payer_email) On 2016/06/08 00:37:53, ...
4 years, 6 months ago (2016-06-08 01:27:17 UTC) #28
please use gerrit instead
Looks like webexposed test needs to know about the phone and email field in PaymentResponse.
4 years, 6 months ago (2016-06-08 01:28:26 UTC) #29
yzshen1
https://codereview.chromium.org/2038423002/diff/100001/third_party/WebKit/Source/modules/payments/PaymentResponse.cpp File third_party/WebKit/Source/modules/payments/PaymentResponse.cpp (right): https://codereview.chromium.org/2038423002/diff/100001/third_party/WebKit/Source/modules/payments/PaymentResponse.cpp#newcode18 third_party/WebKit/Source/modules/payments/PaymentResponse.cpp:18: , m_payerEmail(response->payer_email.isEmpty() ? String() : response->payer_email) On 2016/06/08 01:27:17, ...
4 years, 6 months ago (2016-06-08 16:29:00 UTC) #30
Byoungkwon Ko
Dear Rouslan I addresses your comment. Plz take a look. Thanks.
4 years, 6 months ago (2016-06-08 17:38:04 UTC) #31
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2038423002/140001
4 years, 6 months ago (2016-06-08 18:32:44 UTC) #33
please use gerrit instead
lgtm
4 years, 6 months ago (2016-06-08 18:34:00 UTC) #34
please use gerrit instead
You're going to need to fix these tests before committing: PaymentRequestTest.ResolveShowPromiseWithRequestPayerPhoneFalseAndEmptyPayerPhoneInResponse PaymentRequestTest.ResolveShowPromiseWithRequestPayerEmailFalseAndEmptyPayerEmailInResponse You can run ...
4 years, 6 months ago (2016-06-08 18:36:29 UTC) #35
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: linux_chromium_asan_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_asan_rel_ng/builds/174450) win_chromium_rel_ng on ...
4 years, 6 months ago (2016-06-08 19:17:54 UTC) #37
zino
https://codereview.chromium.org/2038423002/diff/140001/third_party/WebKit/Source/modules/payments/PaymentRequestTest.cpp File third_party/WebKit/Source/modules/payments/PaymentRequestTest.cpp (right): https://codereview.chromium.org/2038423002/diff/140001/third_party/WebKit/Source/modules/payments/PaymentRequestTest.cpp#newcode628 third_party/WebKit/Source/modules/payments/PaymentRequestTest.cpp:628: EXPECT_TRUE(pr->payerEmail().isNull()); Hmm... I'm not sure if it's possible to ...
4 years, 6 months ago (2016-06-09 17:56:09 UTC) #38
please use gerrit instead
https://codereview.chromium.org/2038423002/diff/140001/third_party/WebKit/Source/modules/payments/PaymentRequestTest.cpp File third_party/WebKit/Source/modules/payments/PaymentRequestTest.cpp (right): https://codereview.chromium.org/2038423002/diff/140001/third_party/WebKit/Source/modules/payments/PaymentRequestTest.cpp#newcode628 third_party/WebKit/Source/modules/payments/PaymentRequestTest.cpp:628: EXPECT_TRUE(pr->payerEmail().isNull()); On 2016/06/09 17:56:08, zino wrote: > Hmm... > ...
4 years, 6 months ago (2016-06-09 20:41:15 UTC) #39
Byoungkwon Ko
Dear Rouslan As you commented, below 2 tests were failed. PaymentRequestTest.ResolveShowPromiseWithRequestPayerPhoneFalseAndEmptyPayerPhoneInResponse PaymentRequestTest.ResolveShowPromiseWithRequestPayerEmailFalseAndEmptyPayerEmailInResponse If i change ...
4 years, 6 months ago (2016-06-10 16:32:14 UTC) #40
please use gerrit instead
https://codereview.chromium.org/2038423002/diff/140001/third_party/WebKit/Source/modules/payments/PaymentRequest.cpp File third_party/WebKit/Source/modules/payments/PaymentRequest.cpp (right): https://codereview.chromium.org/2038423002/diff/140001/third_party/WebKit/Source/modules/payments/PaymentRequest.cpp#newcode482 third_party/WebKit/Source/modules/payments/PaymentRequest.cpp:482: } Let's follow the convention of the shipping address ...
4 years, 6 months ago (2016-06-10 17:46:51 UTC) #41
Byoungkwon Ko
On 2016/06/10 17:46:51, Rouslan (ツ) wrote: > https://codereview.chromium.org/2038423002/diff/140001/third_party/WebKit/Source/modules/payments/PaymentRequest.cpp > File third_party/WebKit/Source/modules/payments/PaymentRequest.cpp (right): > > https://codereview.chromium.org/2038423002/diff/140001/third_party/WebKit/Source/modules/payments/PaymentRequest.cpp#newcode482 ...
4 years, 6 months ago (2016-06-13 14:53:13 UTC) #42
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2038423002/180001
4 years, 6 months ago (2016-06-13 15:07:38 UTC) #44
please use gerrit instead
Looks much better! Only a couple of minor comments. https://codereview.chromium.org/2038423002/diff/180001/third_party/WebKit/Source/modules/payments/PaymentOptions.idl File third_party/WebKit/Source/modules/payments/PaymentOptions.idl (right): https://codereview.chromium.org/2038423002/diff/180001/third_party/WebKit/Source/modules/payments/PaymentOptions.idl#newcode5 third_party/WebKit/Source/modules/payments/PaymentOptions.idl:5: ...
4 years, 6 months ago (2016-06-13 15:14:21 UTC) #45
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: linux_chromium_chromeos_compile_dbg_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_chromeos_compile_dbg_ng/builds/215235)
4 years, 6 months ago (2016-06-13 15:48:54 UTC) #47
please use gerrit instead
There seems some delay here due to BlinkOn. As I also need to build the ...
4 years, 6 months ago (2016-06-15 20:07:05 UTC) #48
Byoungkwon Ko
Dear Rouslan. I am so sorry to late. If you don't mine, could you review ...
4 years, 6 months ago (2016-06-15 23:03:01 UTC) #49
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2038423002/200001
4 years, 6 months ago (2016-06-15 23:08:00 UTC) #51
please use gerrit instead
lgtm. +palmer@, ptal payment_request.mojom.
4 years, 6 months ago (2016-06-15 23:12:55 UTC) #53
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: linux_chromium_asan_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_asan_rel_ng/builds/178207)
4 years, 6 months ago (2016-06-15 23:22:52 UTC) #55
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2038423002/200001
4 years, 6 months ago (2016-06-15 23:51:19 UTC) #57
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: android_arm64_dbg_recipe on tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/android_arm64_dbg_recipe/builds/82113) linux_chromium_asan_rel_ng on ...
4 years, 6 months ago (2016-06-16 00:06:28 UTC) #59
please use gerrit instead
https://codereview.chromium.org/2038423002/diff/200001/third_party/WebKit/Source/modules/payments/PaymentRequestTest.cpp File third_party/WebKit/Source/modules/payments/PaymentRequestTest.cpp (right): https://codereview.chromium.org/2038423002/diff/200001/third_party/WebKit/Source/modules/payments/PaymentRequestTest.cpp#newcode25 third_party/WebKit/Source/modules/payments/PaymentRequestTest.cpp:25: class PaymentRequestTest : public PaymentRequestTestBase {}; Looks like you ...
4 years, 6 months ago (2016-06-16 00:52:22 UTC) #60
Byoungkwon Ko
On 2016/06/16 00:52:22, Rouslan (ツ) wrote: > https://codereview.chromium.org/2038423002/diff/200001/third_party/WebKit/Source/modules/payments/PaymentRequestTest.cpp > File third_party/WebKit/Source/modules/payments/PaymentRequestTest.cpp (right): > > https://codereview.chromium.org/2038423002/diff/200001/third_party/WebKit/Source/modules/payments/PaymentRequestTest.cpp#newcode25 ...
4 years, 6 months ago (2016-06-16 01:00:15 UTC) #61
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2038423002/220001
4 years, 6 months ago (2016-06-16 01:34:29 UTC) #63
please use gerrit instead
Looks like a clean rebase. Well done.
4 years, 6 months ago (2016-06-16 02:09:54 UTC) #64
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: mac_chromium_gn_rel on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_gn_rel/builds/128122)
4 years, 6 months ago (2016-06-16 02:34:24 UTC) #66
please use gerrit instead
Looks like you need to initialize response->total_amount to avoid crashes in unit tests. (Production code ...
4 years, 6 months ago (2016-06-16 16:17:56 UTC) #67
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2038423002/240001
4 years, 6 months ago (2016-06-16 18:24:42 UTC) #69
Byoungkwon Ko
Dear Rouslan. I really thank you to explain in detail. I tried to find root ...
4 years, 6 months ago (2016-06-16 18:38:11 UTC) #70
please use gerrit instead
On 2016/06/16 18:38:11, Byoungkwon Ko wrote: > Dear Rouslan. > > I really thank you ...
4 years, 6 months ago (2016-06-16 18:59:37 UTC) #71
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 6 months ago (2016-06-16 20:27:59 UTC) #73
palmer
LGTM w/nit. https://codereview.chromium.org/2038423002/diff/240001/third_party/WebKit/Source/modules/payments/PaymentRequest.cpp File third_party/WebKit/Source/modules/payments/PaymentRequest.cpp (right): https://codereview.chromium.org/2038423002/diff/240001/third_party/WebKit/Source/modules/payments/PaymentRequest.cpp#newcode483 third_party/WebKit/Source/modules/payments/PaymentRequest.cpp:483: if (m_options.requestPayerEmail() && response->payer_email.isEmpty()) { Nit: This ...
4 years, 6 months ago (2016-06-16 21:23:34 UTC) #74
please use gerrit instead
On 2016/06/16 21:23:34, palmer wrote: > LGTM w/nit. > > https://codereview.chromium.org/2038423002/diff/240001/third_party/WebKit/Source/modules/payments/PaymentRequest.cpp > File third_party/WebKit/Source/modules/payments/PaymentRequest.cpp (right): ...
4 years, 6 months ago (2016-06-16 21:38:21 UTC) #75
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2038423002/240001
4 years, 6 months ago (2016-06-16 21:40:39 UTC) #78
commit-bot: I haz the power
Committed patchset #13 (id:240001)
4 years, 6 months ago (2016-06-16 21:46:57 UTC) #80
commit-bot: I haz the power
4 years, 6 months ago (2016-06-16 21:48:55 UTC) #82
Message was sent while issue was closed.
Patchset 13 (id:??) landed as
https://crrev.com/26dc6730a200dfcb8e199de41a9c594b0744a004
Cr-Commit-Position: refs/heads/master@{#400268}

Powered by Google App Engine
This is Rietveld 408576698