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

Issue 2896263002: [Payments] Changes to validation in the Credit Card editor (Closed)

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

Description

[Payments] Changes to validation in the Credit Card editor Several changes are bundled here: * Card icons will now dim dynamically as the network is selected. * ValidatingTextfield::IsValid no longer has side effects * Error labels are refreshed differently * ValidationDelegate now gets passed |was_blurred| for textfield, to allow performing some tasks before the blur (selecting card icons). * Reverse the validity logic on the expiration custom view (oops). BUG=721619 TEST=existing Review-Url: https://codereview.chromium.org/2896263002 Cr-Commit-Position: refs/heads/master@{#474060} Committed: https://chromium.googlesource.com/chromium/src/+/dbe9253353485376a03c2c35bdd462922ecb80af

Patch Set 1 : Initial #

Total comments: 1

Patch Set 2 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+161 lines, -61 lines) Patch
M chrome/browser/ui/views/payments/contact_info_editor_view_controller.h View 1 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/ui/views/payments/contact_info_editor_view_controller.cc View 1 1 chunk +4 lines, -1 line 0 comments Download
M chrome/browser/ui/views/payments/credit_card_editor_view_controller.h View 4 chunks +12 lines, -3 lines 0 comments Download
M chrome/browser/ui/views/payments/credit_card_editor_view_controller.cc View 11 chunks +76 lines, -12 lines 0 comments Download
M chrome/browser/ui/views/payments/credit_card_editor_view_controller_browsertest.cc View 1 chunk +5 lines, -0 lines 0 comments Download
M chrome/browser/ui/views/payments/editor_view_controller.cc View 1 4 chunks +23 lines, -7 lines 0 comments Download
M chrome/browser/ui/views/payments/payment_request_views_util.h View 1 1 chunk +5 lines, -4 lines 0 comments Download
M chrome/browser/ui/views/payments/payment_request_views_util.cc View 1 2 chunks +4 lines, -1 line 0 comments Download
M chrome/browser/ui/views/payments/shipping_address_editor_view_controller.h View 1 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/ui/views/payments/shipping_address_editor_view_controller.cc View 1 1 chunk +4 lines, -1 line 0 comments Download
M chrome/browser/ui/views/payments/shipping_address_editor_view_controller_browsertest.cc View 1 2 chunks +4 lines, -3 lines 0 comments Download
M chrome/browser/ui/views/payments/validating_combobox.cc View 1 chunk +1 line, -3 lines 0 comments Download
M chrome/browser/ui/views/payments/validating_textfield.cc View 1 2 chunks +6 lines, -15 lines 0 comments Download
M chrome/browser/ui/views/payments/validating_textfield_unittest.cc View 1 chunk +3 lines, -2 lines 0 comments Download
M chrome/browser/ui/views/payments/validation_delegate.h View 1 1 chunk +4 lines, -2 lines 0 comments Download
M components/autofill/core/browser/autofill_data_util.h View 1 chunk +4 lines, -3 lines 0 comments Download
M components/autofill/core/browser/autofill_data_util.cc View 1 1 chunk +2 lines, -2 lines 0 comments Download

Messages

Total messages: 25 (16 generated)
Mathieu
Anthony PTAL
3 years, 7 months ago (2017-05-23 15:06:57 UTC) #5
anthonyvd
lgtm https://codereview.chromium.org/2896263002/diff/20001/chrome/browser/ui/views/payments/credit_card_editor_view_controller.cc File chrome/browser/ui/views/payments/credit_card_editor_view_controller.cc (right): https://codereview.chromium.org/2896263002/diff/20001/chrome/browser/ui/views/payments/credit_card_editor_view_controller.cc#newcode59 chrome/browser/ui/views/payments/credit_card_editor_view_controller.cc:59: const float kDimmedCardIconOpacity = 0.33f; Didn't Bruno specify ...
3 years, 7 months ago (2017-05-23 15:59:43 UTC) #9
Mathieu
On 2017/05/23 15:59:43, anthonyvd wrote: > lgtm > > https://codereview.chromium.org/2896263002/diff/20001/chrome/browser/ui/views/payments/credit_card_editor_view_controller.cc > File chrome/browser/ui/views/payments/credit_card_editor_view_controller.cc > (right): ...
3 years, 7 months ago (2017-05-23 17:45:44 UTC) #10
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/2896263002/40001
3 years, 7 months ago (2017-05-23 17:47:02 UTC) #13
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_chromeos_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_chromeos_rel_ng/builds/432736)
3 years, 7 months ago (2017-05-23 18:19:36 UTC) #15
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/2896263002/40001
3 years, 7 months ago (2017-05-23 18:24:23 UTC) #17
commit-bot: I haz the power
Try jobs failed on following builders: linux_android_rel_ng on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/linux_android_rel_ng/builds/300854)
3 years, 7 months ago (2017-05-23 19:38:33 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/2896263002/40001
3 years, 7 months ago (2017-05-23 19:55:19 UTC) #21
commit-bot: I haz the power
3 years, 7 months ago (2017-05-23 21:28:32 UTC) #25
Message was sent while issue was closed.
Committed patchset #2 (id:40001) as
https://chromium.googlesource.com/chromium/src/+/dbe9253353485376a03c2c35bdd4...

Powered by Google App Engine
This is Rietveld 408576698