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

Issue 2711973002: [Web Payments] Implement the credit card selection UI functionality. (Closed)

Created:
3 years, 10 months ago by anthonyvd
Modified:
3 years, 9 months ago
CC:
chromium-reviews, tfarina, tmartino
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[Web Payments] Implement the credit card selection UI functionality. This patch adds the necessary logic to allow the user to use the Payment Method Selection Screen to select the credit card to send to the website. BUG=679835 Review-Url: https://codereview.chromium.org/2711973002 Cr-Commit-Position: refs/heads/master@{#453239} Committed: https://chromium.googlesource.com/chromium/src/+/4b014c7ebbe5ed0d2abf313d04699caf6c6ed18d

Patch Set 1 #

Total comments: 6

Patch Set 2 : Address comments. #

Total comments: 8

Patch Set 3 : Address comments and add set_selected_credit_card in PaymentRequest #

Total comments: 2

Patch Set 4 : Add tests. #

Patch Set 5 : Rebase #

Total comments: 6

Patch Set 6 : Address comments. #

Patch Set 7 : Rebase. #

Patch Set 8 : Change set_interactive call because it doesn't exist anymore. #

Patch Set 9 : Fix test flakiness. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+437 lines, -43 lines) Patch
M chrome/browser/ui/views/payments/payment_method_view_controller.cc View 1 2 3 4 5 6 7 5 chunks +58 lines, -12 lines 0 comments Download
A chrome/browser/ui/views/payments/payment_method_view_controller_interactive_uitest.cc View 1 2 3 4 5 6 7 8 1 chunk +129 lines, -0 lines 0 comments Download
M chrome/browser/ui/views/payments/payment_request_credit_card_editor_interactive_uitest.cc View 1 2 3 4 5 7 chunks +5 lines, -25 lines 0 comments Download
M chrome/browser/ui/views/payments/payment_request_dialog_view_ids.h View 1 2 3 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/browser/ui/views/payments/payment_request_interactive_uitest_base.h View 1 2 3 4 chunks +23 lines, -1 line 0 comments Download
M chrome/browser/ui/views/payments/payment_request_interactive_uitest_base.cc View 1 2 3 4 chunks +17 lines, -0 lines 0 comments Download
M chrome/browser/ui/views/payments/payment_request_item_list.h View 1 2 4 chunks +37 lines, -3 lines 0 comments Download
M chrome/browser/ui/views/payments/payment_request_item_list.cc View 1 2 3 3 chunks +34 lines, -2 lines 0 comments Download
A chrome/browser/ui/views/payments/payment_request_item_list_unittest.cc View 1 2 3 1 chunk +124 lines, -0 lines 0 comments Download
M chrome/test/BUILD.gn View 1 2 3 4 2 chunks +2 lines, -0 lines 0 comments Download
M components/payments/payment_request.h View 1 2 1 chunk +4 lines, -0 lines 0 comments Download

Messages

Total messages: 35 (24 generated)
anthonyvd
Hi Math, can you please take a look at this patch that enables credit card ...
3 years, 10 months ago (2017-02-23 20:29:06 UTC) #2
Mathieu
I originally wanted to suggest having the checkmark and the selection logic part of the ...
3 years, 10 months ago (2017-02-23 21:22:53 UTC) #3
anthonyvd
It's funny you mention having more logic in the base: I started implementing something in ...
3 years, 10 months ago (2017-02-23 21:49:20 UTC) #5
please use gerrit instead
LGTM % minor nits. https://codereview.chromium.org/2711973002/diff/20001/chrome/browser/ui/views/payments/payment_method_view_controller.cc File chrome/browser/ui/views/payments/payment_method_view_controller.cc (right): https://codereview.chromium.org/2711973002/diff/20001/chrome/browser/ui/views/payments/payment_method_view_controller.cc#newcode46 chrome/browser/ui/views/payments/payment_method_view_controller.cc:46: // Does not take ownership ...
3 years, 10 months ago (2017-02-24 14:56:53 UTC) #6
anthonyvd
While addressing Rouslan's comments, I realized it'd be trivial to add set_selected_credit_card to PaymentRequest and ...
3 years, 10 months ago (2017-02-24 16:36:58 UTC) #7
please use gerrit instead
lgtm % comment https://codereview.chromium.org/2711973002/diff/40001/chrome/browser/ui/views/payments/payment_request_item_list.cc File chrome/browser/ui/views/payments/payment_request_item_list.cc (right): https://codereview.chromium.org/2711973002/diff/40001/chrome/browser/ui/views/payments/payment_request_item_list.cc#newcode77 chrome/browser/ui/views/payments/payment_request_item_list.cc:77: } selected_item_ = nullptr?
3 years, 10 months ago (2017-02-24 16:40:59 UTC) #8
anthonyvd
mathp@: as discussed offline, here's a patchset with unit and interactive ui tests. Can you ...
3 years, 10 months ago (2017-02-24 21:49:42 UTC) #11
Mathieu
very cool tests lgtm https://codereview.chromium.org/2711973002/diff/80001/chrome/browser/ui/views/payments/payment_method_view_controller_interactive_uitest.cc File chrome/browser/ui/views/payments/payment_method_view_controller_interactive_uitest.cc (right): https://codereview.chromium.org/2711973002/diff/80001/chrome/browser/ui/views/payments/payment_method_view_controller_interactive_uitest.cc#newcode27 chrome/browser/ui/views/payments/payment_method_view_controller_interactive_uitest.cc:27: IN_PROC_BROWSER_TEST_F(PaymentMethodViewControllerTest, TestEmptyEditor) { EmptyList? Also ...
3 years, 10 months ago (2017-02-24 22:51:24 UTC) #16
anthonyvd
Addressed comments. Thanks for the review! https://codereview.chromium.org/2711973002/diff/80001/chrome/browser/ui/views/payments/payment_method_view_controller_interactive_uitest.cc File chrome/browser/ui/views/payments/payment_method_view_controller_interactive_uitest.cc (right): https://codereview.chromium.org/2711973002/diff/80001/chrome/browser/ui/views/payments/payment_method_view_controller_interactive_uitest.cc#newcode27 chrome/browser/ui/views/payments/payment_method_view_controller_interactive_uitest.cc:27: IN_PROC_BROWSER_TEST_F(PaymentMethodViewControllerTest, TestEmptyEditor) { ...
3 years, 10 months ago (2017-02-24 23:26:28 UTC) #19
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/2711973002/160001
3 years, 9 months ago (2017-02-27 16:00:26 UTC) #32
commit-bot: I haz the power
3 years, 9 months ago (2017-02-27 17:09:18 UTC) #35
Message was sent while issue was closed.
Committed patchset #9 (id:160001) as
https://chromium.googlesource.com/chromium/src/+/4b014c7ebbe5ed0d2abf313d0469...

Powered by Google App Engine
This is Rietveld 408576698