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

Issue 2779283002: [Web Payments] Implement the CVC Unmask dialog. (Closed)

Created:
3 years, 8 months ago by anthonyvd
Modified:
3 years, 8 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/heads/master
Project:
chromium
Visibility:
Public.

Description

[Web Payments] Implement the CVC Unmask dialog. BUG=706511 Review-Url: https://codereview.chromium.org/2779283002 Cr-Commit-Position: refs/heads/master@{#462077} Committed: https://chromium.googlesource.com/chromium/src/+/d23ed70ac6dd7a254422e929c8175e3db61b0bb5

Patch Set 1 #

Total comments: 9

Patch Set 2 : Address sebsg@'s comments. #

Patch Set 3 : Rebase #

Patch Set 4 : Update AutofillPaymentInstrument's credit_card_ after unmasking. #

Total comments: 53

Patch Set 5 : Address most comments. #

Patch Set 6 : Make CvcUnmaskViewController the UIDelegate for FullCardRequest. #

Total comments: 3

Patch Set 7 : Fix existing tests that didn't expect a CVC unmask prompt after "Pay" #

Patch Set 8 : Rebase + add browser test #

Total comments: 20

Patch Set 9 : Fix components_unittests #

Total comments: 16

Patch Set 10 : Address comments #

Total comments: 8

Patch Set 11 : Address comments. #

Patch Set 12 : Fix BUILD #

Patch Set 13 : Rebase #

Patch Set 14 : Add dep #

Total comments: 1

Patch Set 15 : BUILD #

Unified diffs Side-by-side diffs Delta from patch set Stats (+559 lines, -77 lines) Patch
M chrome/browser/payments/chrome_payment_request_delegate.h View 1 2 3 4 5 6 7 8 9 10 3 chunks +8 lines, -2 lines 0 comments Download
M chrome/browser/payments/chrome_payment_request_delegate.cc View 1 2 3 4 5 6 7 8 9 2 chunks +7 lines, -1 line 0 comments Download
M chrome/browser/payments/payment_request_factory.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +2 lines, -0 lines 0 comments Download
A chrome/browser/ui/views/payments/cvc_unmask_view_controller.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +104 lines, -0 lines 0 comments Download
A chrome/browser/ui/views/payments/cvc_unmask_view_controller.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +198 lines, -0 lines 0 comments Download
A chrome/browser/ui/views/payments/cvc_unmask_view_controller_browsertest.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +32 lines, -0 lines 0 comments Download
M chrome/browser/ui/views/payments/error_message_view_controller_browsertest.cc View 1 2 3 4 5 6 2 chunks +4 lines, -1 line 0 comments Download
M chrome/browser/ui/views/payments/payment_request_browsertest.cc View 1 2 3 4 5 6 7 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/views/payments/payment_request_browsertest_base.h View 1 2 3 4 5 6 7 3 chunks +5 lines, -0 lines 0 comments Download
M chrome/browser/ui/views/payments/payment_request_browsertest_base.cc View 1 2 3 4 5 6 7 2 chunks +24 lines, -0 lines 0 comments Download
M chrome/browser/ui/views/payments/payment_request_dialog_view.h View 1 2 3 4 5 6 7 8 9 2 chunks +8 lines, -0 lines 0 comments Download
M chrome/browser/ui/views/payments/payment_request_dialog_view.cc View 1 2 3 4 5 6 7 8 9 3 chunks +17 lines, -0 lines 0 comments Download
M chrome/browser/ui/views/payments/payment_request_dialog_view_ids.h View 1 2 3 4 5 6 7 8 9 2 chunks +4 lines, -0 lines 0 comments Download
M chrome/browser/ui/views/payments/payment_request_payment_response_browsertest.cc View 1 2 3 4 5 6 4 chunks +4 lines, -4 lines 0 comments Download
M chrome/test/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +1 line, -0 lines 0 comments Download
M components/payments/content/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 2 chunks +1 line, -1 line 0 comments Download
M components/payments/content/payment_request.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +1 line, -1 line 0 comments Download
M components/payments/content/payment_request.cc View 1 2 3 4 5 6 7 8 9 2 chunks +2 lines, -1 line 0 comments Download
M components/payments/content/payment_request_delegate.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +0 lines, -45 lines 0 comments Download
M components/payments/content/payment_request_dialog.h View 1 2 3 4 5 6 7 8 9 10 2 chunks +15 lines, -0 lines 0 comments Download
M components/payments/content/payment_request_state.h View 1 2 3 4 5 6 7 8 9 10 5 chunks +8 lines, -1 line 0 comments Download
M components/payments/content/payment_request_state.cc View 1 2 3 4 5 6 7 8 9 10 4 chunks +7 lines, -3 lines 0 comments Download
M components/payments/content/payment_request_state_unittest.cc View 1 2 3 4 5 6 7 8 9 10 3 chunks +39 lines, -1 line 0 comments Download
M components/payments/content/payment_request_web_contents_manager.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +1 line, -1 line 0 comments Download
M components/payments/core/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +1 line, -0 lines 0 comments Download
M components/payments/core/autofill_payment_instrument.h View 1 2 3 4 5 6 7 8 9 10 2 chunks +20 lines, -3 lines 0 comments Download
M components/payments/core/autofill_payment_instrument.cc View 1 2 3 4 5 6 7 8 9 10 3 chunks +34 lines, -10 lines 0 comments Download
A + components/payments/core/payment_request_delegate.h View 1 2 3 4 5 6 7 8 9 10 2 chunks +10 lines, -0 lines 0 comments Download

Messages

Total messages: 67 (50 generated)
anthonyvd
Hi guys, Since this is my first foray this deep into Autofill stuff, can you ...
3 years, 8 months ago (2017-03-29 19:12:54 UTC) #2
sebsg
Way to go! A small comment on credit cards. https://codereview.chromium.org/2779283002/diff/1/chrome/browser/payments/chrome_payment_request_delegate.h File chrome/browser/payments/chrome_payment_request_delegate.h (right): https://codereview.chromium.org/2779283002/diff/1/chrome/browser/payments/chrome_payment_request_delegate.h#newcode8 chrome/browser/payments/chrome_payment_request_delegate.h:8: ...
3 years, 8 months ago (2017-03-29 20:53:31 UTC) #3
anthonyvd
https://codereview.chromium.org/2779283002/diff/1/chrome/browser/payments/chrome_payment_request_delegate.h File chrome/browser/payments/chrome_payment_request_delegate.h (right): https://codereview.chromium.org/2779283002/diff/1/chrome/browser/payments/chrome_payment_request_delegate.h#newcode8 chrome/browser/payments/chrome_payment_request_delegate.h:8: #include <string> On 2017/03/29 at 20:53:31, sebsg wrote: > ...
3 years, 8 months ago (2017-03-29 20:59:37 UTC) #5
sebsg
https://codereview.chromium.org/2779283002/diff/1/chrome/browser/payments/chrome_payment_request_delegate.h File chrome/browser/payments/chrome_payment_request_delegate.h (right): https://codereview.chromium.org/2779283002/diff/1/chrome/browser/payments/chrome_payment_request_delegate.h#newcode8 chrome/browser/payments/chrome_payment_request_delegate.h:8: #include <string> On 2017/03/29 20:59:37, anthonyvd wrote: > On ...
3 years, 8 months ago (2017-03-29 21:12:02 UTC) #9
please use gerrit instead
Overall design looks good. https://codereview.chromium.org/2779283002/diff/60001/chrome/browser/payments/chrome_payment_request_delegate.cc File chrome/browser/payments/chrome_payment_request_delegate.cc (right): https://codereview.chromium.org/2779283002/diff/60001/chrome/browser/payments/chrome_payment_request_delegate.cc#newcode7 chrome/browser/payments/chrome_payment_request_delegate.cc:7: #include "base/macros.h" Already included in ...
3 years, 8 months ago (2017-03-30 13:14:10 UTC) #14
Mathieu
https://codereview.chromium.org/2779283002/diff/1/chrome/browser/ui/views/payments/cvc_unmask_view_controller.cc File chrome/browser/ui/views/payments/cvc_unmask_view_controller.cc (right): https://codereview.chromium.org/2779283002/diff/1/chrome/browser/ui/views/payments/cvc_unmask_view_controller.cc#newcode113 chrome/browser/ui/views/payments/cvc_unmask_view_controller.cc:113: RaiseOnCvcConfirmed(); Raise is not immediately clear, change name? NotifyOnCvcConfirmed? ...
3 years, 8 months ago (2017-03-30 14:37:32 UTC) #15
anthonyvd
Thanks everyone for the input. The latest patch addresses most comments. I talked to Math ...
3 years, 8 months ago (2017-03-30 15:43:41 UTC) #17
please use gerrit instead
LGTM % comments https://codereview.chromium.org/2779283002/diff/60001/chrome/browser/ui/views/payments/payment_request_dialog_view.h File chrome/browser/ui/views/payments/payment_request_dialog_view.h (right): https://codereview.chromium.org/2779283002/diff/60001/chrome/browser/ui/views/payments/payment_request_dialog_view.h#newcode20 chrome/browser/ui/views/payments/payment_request_dialog_view.h:20: class CvcUnmaskViewController; On 2017/03/30 15:43:41, anthonyvd ...
3 years, 8 months ago (2017-03-31 14:41:14 UTC) #18
Mathieu
Hey, is this ready for a review? https://codereview.chromium.org/2779283002/diff/120001/components/payments/core/autofill_payment_instrument.cc File components/payments/core/autofill_payment_instrument.cc (right): https://codereview.chromium.org/2779283002/diff/120001/components/payments/core/autofill_payment_instrument.cc#newcode49 components/payments/core/autofill_payment_instrument.cc:49: return credit_card_.IsValid(); ...
3 years, 8 months ago (2017-04-03 19:20:53 UTC) #23
anthonyvd
Hi everyone! This should be ready for a final review now. Thanks :) https://codereview.chromium.org/2779283002/diff/60001/chrome/browser/ui/views/payments/payment_request_dialog_view.cc File ...
3 years, 8 months ago (2017-04-04 13:25:22 UTC) #30
Mathieu
Thanks! This is looking very sharp :) Hoping we can make it yet more simple. ...
3 years, 8 months ago (2017-04-04 19:05:48 UTC) #35
anthonyvd
Great suggestions, done. PTAL! :) https://codereview.chromium.org/2779283002/diff/180001/chrome/browser/payments/chrome_payment_request_delegate.cc File chrome/browser/payments/chrome_payment_request_delegate.cc (right): https://codereview.chromium.org/2779283002/diff/180001/chrome/browser/payments/chrome_payment_request_delegate.cc#newcode11 chrome/browser/payments/chrome_payment_request_delegate.cc:11: #include "components/autofill/content/browser/content_autofill_driver.h" On 2017/04/04 ...
3 years, 8 months ago (2017-04-04 23:02:15 UTC) #38
Mathieu
Thanks! There's still an open question + looks like my comments from PS8 were not ...
3 years, 8 months ago (2017-04-05 00:02:24 UTC) #41
anthonyvd
Oops, sorry about that. I never saw the comments on PS8. I imagine the open ...
3 years, 8 months ago (2017-04-05 02:12:37 UTC) #46
Mathieu
Thanks! lgtm with a teeny nit https://codereview.chromium.org/2779283002/diff/280001/components/payments/content/BUILD.gn File components/payments/content/BUILD.gn (right): https://codereview.chromium.org/2779283002/diff/280001/components/payments/content/BUILD.gn#newcode107 components/payments/content/BUILD.gn:107: "//components/payments/core:core", //components/payments/core is ...
3 years, 8 months ago (2017-04-05 14:05:59 UTC) #61
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/2779283002/300001
3 years, 8 months ago (2017-04-05 14:17:47 UTC) #64
commit-bot: I haz the power
3 years, 8 months ago (2017-04-05 15:30:01 UTC) #67
Message was sent while issue was closed.
Committed patchset #15 (id:300001) as
https://chromium.googlesource.com/chromium/src/+/d23ed70ac6dd7a254422e929c817...

Powered by Google App Engine
This is Rietveld 408576698