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

Issue 2621153002: [WebPayments] Add the Payment Method section in the Payment Sheet (Closed)

Created:
3 years, 11 months ago by anthonyvd
Modified:
3 years, 11 months ago
CC:
browser-components-watch_chromium.org, chromium-reviews, estade+watch_chromium.org, mathp+autofillwatch_chromium.org, rouslan+autofill_chromium.org, sebsg+autofillwatch_chromium.org, tfarina, tmartino, vabr+watchlistautofill_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[WebPayments] Add the Payment Method section in the Payment Sheet BUG=679835 Review-Url: https://codereview.chromium.org/2621153002 Cr-Commit-Position: refs/heads/master@{#444162} Committed: https://chromium.googlesource.com/chromium/src/+/045303a3e7169ff8f56477510fd7f352060dc9a1

Patch Set 1 : Initial patch #

Total comments: 26

Patch Set 2 : Address comments. #

Patch Set 3 : Remove the content::WebContents dependency in PaymentRequestDelegate. #

Total comments: 2

Patch Set 4 : Reuse label. #

Total comments: 3

Patch Set 5 : Move width computation to anonymous namespace. #

Total comments: 2

Patch Set 6 : Fix spacing in range-based for(). #

Patch Set 7 : Rebase #

Patch Set 8 : Fix BUILD.gn deps. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+293 lines, -19 lines) Patch
M chrome/browser/payments/chrome_payment_request_delegate.h View 1 2 1 chunk +9 lines, -1 line 0 comments Download
M chrome/browser/payments/chrome_payment_request_delegate.cc View 1 2 1 chunk +13 lines, -0 lines 0 comments Download
M chrome/browser/payments/payment_request_factory.cc View 1 2 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/ui/BUILD.gn View 1 2 3 4 5 6 1 chunk +2 lines, -0 lines 0 comments Download
A chrome/browser/ui/views/payments/payment_method_view_controller.h View 1 1 chunk +39 lines, -0 lines 0 comments Download
A chrome/browser/ui/views/payments/payment_method_view_controller.cc View 1 1 chunk +53 lines, -0 lines 0 comments Download
M chrome/browser/ui/views/payments/payment_request_dialog.h View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/ui/views/payments/payment_request_dialog.cc View 2 chunks +8 lines, -0 lines 0 comments Download
M chrome/browser/ui/views/payments/payment_request_views_util.cc View 2 chunks +0 lines, -8 lines 0 comments Download
M chrome/browser/ui/views/payments/payment_sheet_view_controller.h View 1 2 3 4 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/ui/views/payments/payment_sheet_view_controller.cc View 1 2 3 4 5 6 11 chunks +121 lines, -8 lines 0 comments Download
M components/autofill_strings.grdp View 1 chunk +4 lines, -0 lines 0 comments Download
M components/payments/BUILD.gn View 1 2 3 4 5 6 7 1 chunk +1 line, -0 lines 0 comments Download
M components/payments/DEPS View 1 chunk +1 line, -0 lines 0 comments Download
M components/payments/payment_request.h View 1 2 3 4 5 6 2 chunks +9 lines, -1 line 0 comments Download
M components/payments/payment_request.cc View 1 2 3 4 5 6 2 chunks +20 lines, -0 lines 0 comments Download
M components/payments/payment_request_delegate.h View 1 2 2 chunks +7 lines, -0 lines 0 comments Download

Messages

Total messages: 35 (20 generated)
anthonyvd
Hi guys, can you PTAL at this patch that adds the Payment Method section to ...
3 years, 11 months ago (2017-01-12 19:18:59 UTC) #3
please use gerrit instead
lgtm % comments https://codereview.chromium.org/2621153002/diff/40001/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/2621153002/diff/40001/chrome/browser/ui/views/payments/payment_method_view_controller.cc#newcode25 chrome/browser/ui/views/payments/payment_method_view_controller.cc:25: PaymentRequest* request, PaymentRequestDialog* dialog) Parameter names ...
3 years, 11 months ago (2017-01-12 19:34:03 UTC) #5
Mathieu
https://codereview.chromium.org/2621153002/diff/40001/chrome/browser/payments/chrome_payment_request_delegate.h File chrome/browser/payments/chrome_payment_request_delegate.h (right): https://codereview.chromium.org/2621153002/diff/40001/chrome/browser/payments/chrome_payment_request_delegate.h#newcode17 chrome/browser/payments/chrome_payment_request_delegate.h:17: ChromePaymentRequestDelegate() {} Let's create the ChromePaymentRequestDelegate with a WebContents* ...
3 years, 11 months ago (2017-01-12 21:27:11 UTC) #6
anthonyvd
Thanks! Comments addressed. https://codereview.chromium.org/2621153002/diff/40001/chrome/browser/payments/chrome_payment_request_delegate.h File chrome/browser/payments/chrome_payment_request_delegate.h (right): https://codereview.chromium.org/2621153002/diff/40001/chrome/browser/payments/chrome_payment_request_delegate.h#newcode21 chrome/browser/payments/chrome_payment_request_delegate.h:21: autofill::PersonalDataManager* GetDataManagerFromWebContents( On 2017/01/12 at 21:27:10, ...
3 years, 11 months ago (2017-01-13 16:09:19 UTC) #7
anthonyvd
Code Review sneakily hid a comment from me. It's now addressed! https://codereview.chromium.org/2621153002/diff/40001/chrome/browser/payments/chrome_payment_request_delegate.h File chrome/browser/payments/chrome_payment_request_delegate.h (right): ...
3 years, 11 months ago (2017-01-13 16:36:06 UTC) #8
Mathieu
lgtm https://codereview.chromium.org/2621153002/diff/40001/chrome/browser/ui/views/payments/payment_sheet_view_controller.cc File chrome/browser/ui/views/payments/payment_sheet_view_controller.cc (right): https://codereview.chromium.org/2621153002/diff/40001/chrome/browser/ui/views/payments/payment_sheet_view_controller.cc#newcode261 chrome/browser/ui/views/payments/payment_sheet_view_controller.cc:261: // The name colums in each row should ...
3 years, 11 months ago (2017-01-13 16:40:16 UTC) #9
anthonyvd
Hi Scott, can you PTAL at the c/b/ui/views/* code in this CL that adds a ...
3 years, 11 months ago (2017-01-13 16:41:34 UTC) #11
sky
https://codereview.chromium.org/2621153002/diff/80001/chrome/browser/ui/views/payments/payment_sheet_view_controller.cc File chrome/browser/ui/views/payments/payment_sheet_view_controller.cc (right): https://codereview.chromium.org/2621153002/diff/80001/chrome/browser/ui/views/payments/payment_sheet_view_controller.cc#newcode291 chrome/browser/ui/views/payments/payment_sheet_view_controller.cc:291: views::Label label(l10n_util::GetStringUTF16(name)); I wouldn't create a Label each time ...
3 years, 11 months ago (2017-01-13 20:18:09 UTC) #12
anthonyvd
https://codereview.chromium.org/2621153002/diff/80001/chrome/browser/ui/views/payments/payment_sheet_view_controller.cc File chrome/browser/ui/views/payments/payment_sheet_view_controller.cc (right): https://codereview.chromium.org/2621153002/diff/80001/chrome/browser/ui/views/payments/payment_sheet_view_controller.cc#newcode291 chrome/browser/ui/views/payments/payment_sheet_view_controller.cc:291: views::Label label(l10n_util::GetStringUTF16(name)); On 2017/01/13 at 20:18:08, sky wrote: > ...
3 years, 11 months ago (2017-01-13 21:01:32 UTC) #13
sky
One minor suggestion. https://codereview.chromium.org/2621153002/diff/100001/chrome/browser/ui/views/payments/payment_sheet_view_controller.cc File chrome/browser/ui/views/payments/payment_sheet_view_controller.cc (right): https://codereview.chromium.org/2621153002/diff/100001/chrome/browser/ui/views/payments/payment_sheet_view_controller.cc#newcode271 chrome/browser/ui/views/payments/payment_sheet_view_controller.cc:271: void PaymentSheetViewController::InitWidestNameColumnViewWidth() { Effective c++ recommends ...
3 years, 11 months ago (2017-01-13 23:42:52 UTC) #14
anthonyvd
https://codereview.chromium.org/2621153002/diff/100001/chrome/browser/ui/views/payments/payment_sheet_view_controller.cc File chrome/browser/ui/views/payments/payment_sheet_view_controller.cc (right): https://codereview.chromium.org/2621153002/diff/100001/chrome/browser/ui/views/payments/payment_sheet_view_controller.cc#newcode271 chrome/browser/ui/views/payments/payment_sheet_view_controller.cc:271: void PaymentSheetViewController::InitWidestNameColumnViewWidth() { On 2017/01/13 at 23:42:52, sky wrote: ...
3 years, 11 months ago (2017-01-16 15:33:07 UTC) #15
sky
LGTM https://codereview.chromium.org/2621153002/diff/120001/chrome/browser/ui/views/payments/payment_sheet_view_controller.cc File chrome/browser/ui/views/payments/payment_sheet_view_controller.cc (right): https://codereview.chromium.org/2621153002/diff/120001/chrome/browser/ui/views/payments/payment_sheet_view_controller.cc#newcode148 chrome/browser/ui/views/payments/payment_sheet_view_controller.cc:148: for (int name_id: section_names) { nit: space before ...
3 years, 11 months ago (2017-01-17 17:40:07 UTC) #16
anthonyvd
https://codereview.chromium.org/2621153002/diff/120001/chrome/browser/ui/views/payments/payment_sheet_view_controller.cc File chrome/browser/ui/views/payments/payment_sheet_view_controller.cc (right): https://codereview.chromium.org/2621153002/diff/120001/chrome/browser/ui/views/payments/payment_sheet_view_controller.cc#newcode148 chrome/browser/ui/views/payments/payment_sheet_view_controller.cc:148: for (int name_id: section_names) { On 2017/01/17 at 17:40:07, ...
3 years, 11 months ago (2017-01-17 19:43:51 UTC) #21
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/2621153002/180001
3 years, 11 months ago (2017-01-17 22:10:58 UTC) #32
commit-bot: I haz the power
3 years, 11 months ago (2017-01-17 22:19:54 UTC) #35
Message was sent while issue was closed.
Committed patchset #8 (id:180001) as
https://chromium.googlesource.com/chromium/src/+/045303a3e7169ff8f56477510fd7...

Powered by Google App Engine
This is Rietveld 408576698