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

Issue 2733953003: [Payments] Return a basic card response (Closed)

Created:
3 years, 9 months ago by Mathieu
Modified:
3 years, 9 months ago
CC:
chromium-reviews, darin-cc_chromium.org, Eugene But (OOO till 7-30), gogerald+paymentswatch_chromium.org, ios-reviews_chromium.org, ios-reviews+chrome_chromium.org, ios-reviews+web_chromium.org, jam, mahmadi+paymentsioswatch_chromium.org, mahmadi+paymentswatch_chromium.org, marq+watch_chromium.org, noyau+watch_chromium.org, pkl (ping after 24h if needed), rouslan+payments_chromium.org, sdefresne+watch_chromium.org, sebsg+paymentswatch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[Payments] Return a basic card response in the PaymentResponse * Creates AutofillPaymentInstrument (and the abstract type PaymentInstrument), which returns a basic card response. * Brings PaymentAddress and BasicCardResponse from iOS code, because they can be reused when serializing the stringified basic card details. * Brings the utility functions used for PaymentAddress and BasicCardResponse. * Hooks up Complete, OnComplete and CanMakePayment in PaymentRequest. * Adds many TODOs! BUG=696733 TEST=components_unittests, browser_tests (PaymentRequest*) Review-Url: https://codereview.chromium.org/2733953003 Cr-Commit-Position: refs/heads/master@{#455540} Committed: https://chromium.googlesource.com/chromium/src/+/4b85b58e36ed9f14bfda0ca84c82f5bdfb509ab7

Patch Set 1 : Initial code #

Patch Set 2 : tests #

Total comments: 33

Patch Set 3 : ios and android build fix #

Total comments: 8

Patch Set 4 : addressed comments from rouslan #

Patch Set 5 : addressed comments from anthony #

Unified diffs Side-by-side diffs Delta from patch set Stats (+963 lines, -460 lines) Patch
M chrome/browser/ui/views/payments/payment_request_browsertest.cc View 1 2 chunks +35 lines, -0 lines 0 comments Download
M chrome/browser/ui/views/payments/payment_request_browsertest_base.h View 1 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/ui/views/payments/payment_request_browsertest_base.cc View 1 2 chunks +18 lines, -1 line 0 comments Download
M components/payments/content/payment_request.h View 1 2 3 4 4 chunks +13 lines, -3 lines 0 comments Download
M components/payments/content/payment_request.cc View 1 2 3 4 4 chunks +43 lines, -4 lines 0 comments Download
M components/payments/core/BUILD.gn View 1 2 3 chunks +13 lines, -0 lines 0 comments Download
A components/payments/core/autofill_payment_instrument.h View 1 2 3 1 chunk +47 lines, -0 lines 0 comments Download
A components/payments/core/autofill_payment_instrument.cc View 1 chunk +42 lines, -0 lines 0 comments Download
A components/payments/core/basic_card_response.h View 1 2 3 1 chunk +55 lines, -0 lines 0 comments Download
A components/payments/core/basic_card_response.cc View 1 2 3 1 chunk +63 lines, -0 lines 0 comments Download
A components/payments/core/basic_card_response_unittest.cc View 1 2 3 1 chunk +68 lines, -0 lines 0 comments Download
A components/payments/core/payment_address.h View 1 2 3 1 chunk +78 lines, -0 lines 0 comments Download
A components/payments/core/payment_address.cc View 1 2 3 1 chunk +90 lines, -0 lines 0 comments Download
A components/payments/core/payment_address_unittest.cc View 1 2 3 1 chunk +105 lines, -0 lines 0 comments Download
A components/payments/core/payment_instrument.h View 1 2 3 1 chunk +50 lines, -0 lines 0 comments Download
A components/payments/core/payment_request_data_util.h View 1 2 3 1 chunk +42 lines, -0 lines 0 comments Download
A components/payments/core/payment_request_data_util.cc View 1 2 3 1 chunk +74 lines, -0 lines 0 comments Download
A components/payments/core/payment_request_data_util_unittest.cc View 1 1 chunk +76 lines, -0 lines 0 comments Download
M ios/chrome/browser/payments/js_payment_request_manager.h View 1 2 3 2 chunks +5 lines, -2 lines 0 comments Download
M ios/chrome/browser/payments/js_payment_request_manager.mm View 1 2 3 2 chunks +2 lines, -1 line 0 comments Download
M ios/chrome/browser/payments/payment_request_coordinator.h View 1 2 3 2 chunks +5 lines, -1 line 0 comments Download
M ios/chrome/browser/payments/payment_request_coordinator.mm View 1 2 3 5 chunks +11 lines, -8 lines 0 comments Download
M ios/chrome/browser/payments/payment_request_coordinator_unittest.mm View 1 2 3 4 chunks +4 lines, -3 lines 0 comments Download
M ios/chrome/browser/payments/payment_request_manager.mm View 1 2 3 2 chunks +2 lines, -1 line 0 comments Download
M ios/chrome/browser/payments/payment_request_util.h View 2 chunks +0 lines, -18 lines 0 comments Download
M ios/chrome/browser/payments/payment_request_util.mm View 2 chunks +0 lines, -53 lines 0 comments Download
M ios/web/BUILD.gn View 2 chunks +2 lines, -0 lines 0 comments Download
A ios/web/payments/DEPS View 1 2 3 1 chunk +3 lines, -0 lines 0 comments Download
M ios/web/payments/payment_request.cc View 1 2 3 chunks +0 lines, -112 lines 0 comments Download
M ios/web/payments/payment_request_unittest.cc View 1 2 3 5 chunks +6 lines, -158 lines 0 comments Download
A ios/web/public/payments/DEPS View 1 2 3 1 chunk +3 lines, -0 lines 0 comments Download
M ios/web/public/payments/payment_request.h View 1 2 3 5 chunks +5 lines, -95 lines 0 comments Download

Messages

Total messages: 52 (44 generated)
Mathieu
Hi, would like both your set of eyes on this. Still having an iOS compilation ...
3 years, 9 months ago (2017-03-08 03:10:32 UTC) #20
please use gerrit instead
lgtm % nits https://codereview.chromium.org/2733953003/diff/100001/components/payments/content/payment_request.cc File components/payments/content/payment_request.cc (right): https://codereview.chromium.org/2733953003/diff/100001/components/payments/content/payment_request.cc#newcode157 components/payments/content/payment_request.cc:157: } Maybe hide the dialog, so ...
3 years, 9 months ago (2017-03-08 14:46:10 UTC) #22
anthonyvd
lgtm % a few nits and the start of a bigger discussion. https://codereview.chromium.org/2733953003/diff/140001/components/payments/content/payment_request.h File components/payments/content/payment_request.h ...
3 years, 9 months ago (2017-03-08 16:41:48 UTC) #34
Mathieu
Thanks for the review. +Moe for ios/chrome/browser/payments +Eugene for ios/web For context: we are implementing ...
3 years, 9 months ago (2017-03-08 18:04:26 UTC) #44
Eugene But (OOO till 7-30)
ios/web lgtm
3 years, 9 months ago (2017-03-08 19:23:35 UTC) #45
Moe
On 2017/03/08 19:23:35, Eugene But wrote: > ios/web lgtm ios/chrome/browser/payments lgtm
3 years, 9 months ago (2017-03-08 19:29:51 UTC) #46
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/2733953003/220001
3 years, 9 months ago (2017-03-08 19:34:18 UTC) #49
commit-bot: I haz the power
3 years, 9 months ago (2017-03-08 21:08:46 UTC) #52
Message was sent while issue was closed.
Committed patchset #5 (id:220001) as
https://chromium.googlesource.com/chromium/src/+/4b85b58e36ed9f14bfda0ca84c82...

Powered by Google App Engine
This is Rietveld 408576698