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

Issue 2757523002: [Payments] Use PaymentInstrument/AutofillPaymentInstrument throughout. (Closed)

Created:
3 years, 9 months ago by Mathieu
Modified:
3 years, 9 months ago
CC:
chromium-reviews, darin-cc_chromium.org, gogerald+paymentswatch_chromium.org, jam, mahmadi+paymentswatch_chromium.org, rouslan+payments_chromium.org, sebsg+paymentswatch_chromium.org, tfarina
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[Payments] Use PaymentInstrument/AutofillPaymentInstrument throughout. Limit the concept of CreditCard to PaymentRequestState (when creating instruments) and the Credit Card editor. BUG=702061 TEST=Existing Review-Url: https://codereview.chromium.org/2757523002 Cr-Commit-Position: refs/heads/master@{#457491} Committed: https://chromium.googlesource.com/chromium/src/+/363735b939c7ce86349552cda7b012310f384fcb

Patch Set 1 : Initial #

Total comments: 2

Patch Set 2 : missed a file #

Patch Set 3 : fix tet #

Patch Set 4 : remove instrument cache #

Total comments: 20

Patch Set 5 : addressed comments #

Total comments: 2

Patch Set 6 : addressed nits #

Unified diffs Side-by-side diffs Delta from patch set Stats (+199 lines, -145 lines) Patch
M chrome/browser/ui/views/payments/credit_card_editor_view_controller.cc View 1 chunk +4 lines, -2 lines 0 comments Download
M chrome/browser/ui/views/payments/payment_method_view_controller.cc View 1 2 3 7 chunks +18 lines, -20 lines 0 comments Download
M chrome/browser/ui/views/payments/payment_method_view_controller_browsertest.cc View 1 2 3 4 4 chunks +18 lines, -10 lines 0 comments Download
M chrome/browser/ui/views/payments/payment_request_views_util.h View 1 chunk +6 lines, -4 lines 0 comments Download
M chrome/browser/ui/views/payments/payment_request_views_util.cc View 1 chunk +7 lines, -9 lines 0 comments Download
M chrome/browser/ui/views/payments/payment_sheet_view_controller.cc View 3 chunks +7 lines, -10 lines 0 comments Download
M components/payments/content/payment_request.cc View 1 2 1 chunk +0 lines, -2 lines 0 comments Download
M components/payments/content/payment_request_spec.h View 1 2 3 4 3 chunks +9 lines, -3 lines 0 comments Download
M components/payments/content/payment_request_spec.cc View 1 chunk +3 lines, -0 lines 0 comments Download
M components/payments/content/payment_request_state.h View 1 2 3 4 5 chunks +12 lines, -14 lines 0 comments Download
M components/payments/content/payment_request_state.cc View 1 2 3 7 chunks +41 lines, -39 lines 0 comments Download
M components/payments/content/payment_request_state_unittest.cc View 1 2 3 5 chunks +19 lines, -24 lines 0 comments Download
M components/payments/core/BUILD.gn View 1 chunk +1 line, -0 lines 0 comments Download
M components/payments/core/autofill_payment_instrument.h View 1 chunk +5 lines, -1 line 0 comments Download
M components/payments/core/autofill_payment_instrument.cc View 2 chunks +14 lines, -3 lines 0 comments Download
M components/payments/core/payment_instrument.h View 1 2 3 4 5 2 chunks +15 lines, -4 lines 0 comments Download
A components/payments/core/payment_instrument.cc View 1 1 chunk +20 lines, -0 lines 0 comments Download

Messages

Total messages: 39 (31 generated)
Mathieu
Hi Rouslan, PTAL https://codereview.chromium.org/2757523002/diff/20001/components/payments/content/payment_request_spec.h File components/payments/content/payment_request_spec.h (right): https://codereview.chromium.org/2757523002/diff/20001/components/payments/content/payment_request_spec.h#newcode96 components/payments/content/payment_request_spec.h:96: std::set<std::string> supported_card_networks_set_; this I'm not sure ...
3 years, 9 months ago (2017-03-16 02:50:03 UTC) #5
Mathieu
Removed the instrument_cache as per Anthony's feedback. PTAL
3 years, 9 months ago (2017-03-16 14:10:36 UTC) #23
please use gerrit instead
Overall design looks good! https://codereview.chromium.org/2757523002/diff/20001/components/payments/content/payment_request_spec.h File components/payments/content/payment_request_spec.h (right): https://codereview.chromium.org/2757523002/diff/20001/components/payments/content/payment_request_spec.h#newcode96 components/payments/content/payment_request_spec.h:96: std::set<std::string> supported_card_networks_set_; On 2017/03/16 02:50:03, ...
3 years, 9 months ago (2017-03-16 14:27:03 UTC) #24
Mathieu
PTAL https://codereview.chromium.org/2757523002/diff/100001/chrome/browser/ui/views/payments/payment_method_view_controller_browsertest.cc File chrome/browser/ui/views/payments/payment_method_view_controller_browsertest.cc (right): https://codereview.chromium.org/2757523002/diff/100001/chrome/browser/ui/views/payments/payment_method_view_controller_browsertest.cc#newcode51 chrome/browser/ui/views/payments/payment_method_view_controller_browsertest.cc:51: EXPECT_EQ(request->state()->available_instruments()[0].get(), On 2017/03/16 14:27:02, ಠ_ಠ wrote: > .front() ...
3 years, 9 months ago (2017-03-16 14:57:04 UTC) #26
please use gerrit instead
LGTM % comments https://codereview.chromium.org/2757523002/diff/120001/components/payments/core/payment_instrument.h File components/payments/core/payment_instrument.h (right): https://codereview.chromium.org/2757523002/diff/120001/components/payments/core/payment_instrument.h#newcode36 components/payments/core/payment_instrument.h:36: // Returns if the card is ...
3 years, 9 months ago (2017-03-16 15:01:24 UTC) #28
anthonyvd
lgtm
3 years, 9 months ago (2017-03-16 15:57:38 UTC) #31
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/2757523002/140001
3 years, 9 months ago (2017-03-16 17:31:56 UTC) #36
commit-bot: I haz the power
3 years, 9 months ago (2017-03-16 18:08:58 UTC) #39
Message was sent while issue was closed.
Committed patchset #6 (id:140001) as
https://chromium.googlesource.com/chromium/src/+/363735b939c7ce86349552cda7b0...

Powered by Google App Engine
This is Rietveld 408576698