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

Issue 2849523003: Add billing address as a mandatory field of Payments credit cards. (Closed)

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

Description

Add billing address as a mandatory field of Payments credit cards. TBR=markusheintz@chromium.org For trivial adaptation to API change in: chrome/browser/browsing_data/autofill_counter_browsertest.cc BUG=709776 Review-Url: https://codereview.chromium.org/2849523003 Cr-Commit-Position: refs/heads/master@{#470536} Committed: https://chromium.googlesource.com/chromium/src/+/faf8e1ebbc65063a01ada0f0c5ac8981076210cb

Patch Set 1 #

Patch Set 2 : Rebase #

Patch Set 3 : Pre-rebase test compiling but some are still failing #

Patch Set 4 : Rebase #

Patch Set 5 : Fixed failing tests #

Patch Set 6 : Rebase #

Patch Set 7 : CQ Nits #

Patch Set 8 : Added AddressComboboxModel unittests and fixed more compile issues. #

Total comments: 32

Patch Set 9 : All tests passing + CR Comments 1 #

Patch Set 10 : Rebase #

Patch Set 11 : Fix Rebase/Merge compile fluke #

Patch Set 12 : More merge compile errors... :-( #

Patch Set 13 : And now unit test compile errors... #

Total comments: 2

Patch Set 14 : CR Comments 2 + more rebase/merge fluke with browser tests run #

Patch Set 15 : Rebase and adapt merged code #

Patch Set 16 : Fix a test crash #

Patch Set 17 : Components Unittests fix #

Total comments: 39

Patch Set 18 : Rebase #

Patch Set 19 : OWNER comments 1 #

Patch Set 20 : Rebase #

Patch Set 21 : Fixed a merge fluke #

Patch Set 22 : Moved label creation back to base class #

Total comments: 2

Patch Set 23 : OWNER comments 2 + fixed new tests #

Total comments: 1

Patch Set 24 : Fixed a new test brought in by a Rebase #

Patch Set 25 : Merge branch 'master' into billing #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1162 lines, -286 lines) Patch
M chrome/app/generated_resources.grd View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 2 chunks +7 lines, -0 lines 0 comments Download
M chrome/browser/browsing_data/autofill_counter_browsertest.cc View 1 2 3 4 5 6 chunks +11 lines, -10 lines 0 comments Download
M chrome/browser/ui/views/payments/contact_info_editor_view_controller.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/views/payments/contact_info_editor_view_controller.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 1 chunk +3 lines, -6 lines 0 comments Download
M chrome/browser/ui/views/payments/credit_card_editor_view_controller.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 6 chunks +14 lines, -0 lines 0 comments Download
M chrome/browser/ui/views/payments/credit_card_editor_view_controller.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 11 chunks +150 lines, -10 lines 0 comments Download
M chrome/browser/ui/views/payments/credit_card_editor_view_controller_browsertest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 10 chunks +170 lines, -0 lines 0 comments Download
M chrome/browser/ui/views/payments/credit_card_editor_view_controller_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 3 chunks +6 lines, -3 lines 0 comments Download
M chrome/browser/ui/views/payments/cvc_unmask_view_controller_browsertest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 3 chunks +20 lines, -3 lines 0 comments Download
M chrome/browser/ui/views/payments/editor_view_controller.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 6 chunks +18 lines, -5 lines 0 comments Download
M chrome/browser/ui/views/payments/editor_view_controller.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 7 chunks +38 lines, -16 lines 0 comments Download
M chrome/browser/ui/views/payments/error_message_view_controller_browsertest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 1 chunk +5 lines, -1 line 0 comments Download
M chrome/browser/ui/views/payments/payment_method_view_controller.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 3 chunks +9 lines, -3 lines 0 comments Download
M chrome/browser/ui/views/payments/payment_method_view_controller_browsertest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 3 chunks +10 lines, -1 line 0 comments Download
M chrome/browser/ui/views/payments/payment_request_browsertest_base.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 1 chunk +3 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 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 3 chunks +16 lines, -0 lines 0 comments Download
M chrome/browser/ui/views/payments/payment_request_can_make_payment_metrics_browsertest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 2 chunks +5 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 10 11 12 13 14 15 16 17 18 3 chunks +17 lines, -1 line 0 comments Download
M chrome/browser/ui/views/payments/payment_request_dialog_view.cc View 1 2 3 4 5 2 chunks +16 lines, -9 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 10 11 12 13 14 15 16 17 18 19 2 chunks +5 lines, -0 lines 0 comments Download
M chrome/browser/ui/views/payments/payment_sheet_view_controller.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 4 chunks +6 lines, -2 lines 0 comments Download
M chrome/browser/ui/views/payments/payment_sheet_view_controller_browsertest.cc View 1 2 3 4 5 6 7 8 3 chunks +15 lines, -5 lines 0 comments Download
M chrome/browser/ui/views/payments/profile_list_view_controller.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 2 chunks +5 lines, -4 lines 0 comments Download
M chrome/browser/ui/views/payments/shipping_address_editor_view_controller.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 2 chunks +2 lines, -1 line 0 comments Download
M chrome/browser/ui/views/payments/shipping_address_editor_view_controller.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 6 chunks +11 lines, -8 lines 0 comments Download
M chrome/browser/ui/views/payments/shipping_address_editor_view_controller_browsertest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 6 chunks +6 lines, -6 lines 0 comments Download
M components/autofill/core/browser/BUILD.gn View 1 2 3 4 5 6 7 2 chunks +3 lines, -0 lines 0 comments Download
A components/autofill/core/browser/address_combobox_model.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 1 chunk +75 lines, -0 lines 0 comments Download
A components/autofill/core/browser/address_combobox_model.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 1 chunk +130 lines, -0 lines 0 comments Download
A components/autofill/core/browser/address_combobox_model_unittest.cc View 1 2 3 4 5 6 7 8 1 chunk +89 lines, -0 lines 0 comments Download
M components/autofill/core/browser/autofill_assistant_unittest.cc View 1 2 3 4 3 chunks +5 lines, -2 lines 0 comments Download
M components/autofill/core/browser/autofill_external_delegate_unittest.cc View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M components/autofill/core/browser/autofill_manager_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 12 chunks +14 lines, -13 lines 0 comments Download
M components/autofill/core/browser/autofill_metrics_unittest.cc View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -1 line 0 comments Download
M components/autofill/core/browser/autofill_test_utils.h View 1 2 2 chunks +6 lines, -2 lines 0 comments Download
M components/autofill/core/browser/autofill_test_utils.cc View 1 2 3 4 5 3 chunks +11 lines, -7 lines 0 comments Download
M components/autofill/core/browser/credit_card.cc View 1 2 3 4 5 6 7 8 1 chunk +3 lines, -1 line 0 comments Download
M components/autofill/core/browser/credit_card_unittest.cc View 1 2 3 4 5 6 7 8 17 chunks +58 lines, -46 lines 0 comments Download
M components/autofill/core/browser/payments/full_card_request_unittest.cc View 1 2 3 4 5 6 7 8 chunks +13 lines, -8 lines 0 comments Download
M components/autofill/core/browser/personal_data_manager_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 72 chunks +118 lines, -99 lines 0 comments Download
M components/autofill/core/browser/validation.h View 1 2 3 4 5 6 7 8 4 chunks +5 lines, -2 lines 0 comments Download
M components/autofill/core/browser/validation.cc View 1 2 3 4 5 6 7 8 4 chunks +12 lines, -1 line 0 comments Download
M components/autofill_strings.grdp View 1 chunk +7 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 11 12 13 14 15 16 17 18 19 20 21 22 23 1 chunk +0 lines, -2 lines 0 comments Download
M components/payments/core/autofill_payment_instrument.cc View 1 2 3 4 5 6 7 8 2 chunks +6 lines, -5 lines 0 comments Download
M components/payments/core/autofill_payment_instrument_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 3 chunks +33 lines, -0 lines 0 comments Download
M components/payments_strings.grdp View 1 1 chunk +3 lines, -0 lines 0 comments Download

Messages

Total messages: 108 (83 generated)
MAD
I think you can start reviewing this now, although I might add new tests specific ...
3 years, 7 months ago (2017-05-02 15:53:21 UTC) #9
Mathieu
Would love if Seb would take a look, he knows more about billing address!
3 years, 7 months ago (2017-05-02 18:00:20 UTC) #18
sebsg
Very glad to see this change! This is very important and a big task, thanks ...
3 years, 7 months ago (2017-05-02 22:58:55 UTC) #23
MAD
Thanks! Please take another look... BYE MAD https://codereview.chromium.org/2849523003/diff/140001/chrome/app/generated_resources.grd File chrome/app/generated_resources.grd (right): https://codereview.chromium.org/2849523003/diff/140001/chrome/app/generated_resources.grd#newcode7738 chrome/app/generated_resources.grd:7738: <message name="IDS_AUTOFILL_FIELD_LABEL_BILLING_ADDRESS" ...
3 years, 7 months ago (2017-05-03 16:15:18 UTC) #25
MAD
Thanks! Please take another look... BYE MAD https://codereview.chromium.org/2849523003/diff/140001/chrome/app/generated_resources.grd File chrome/app/generated_resources.grd (right): https://codereview.chromium.org/2849523003/diff/140001/chrome/app/generated_resources.grd#newcode7738 chrome/app/generated_resources.grd:7738: <message name="IDS_AUTOFILL_FIELD_LABEL_BILLING_ADDRESS" ...
3 years, 7 months ago (2017-05-03 16:15:19 UTC) #26
sebsg
A few remaining questions, it's coming along well! https://codereview.chromium.org/2849523003/diff/140001/chrome/app/generated_resources.grd File chrome/app/generated_resources.grd (right): https://codereview.chromium.org/2849523003/diff/140001/chrome/app/generated_resources.grd#newcode7738 chrome/app/generated_resources.grd:7738: <message ...
3 years, 7 months ago (2017-05-03 19:19:29 UTC) #41
MAD
Thanks again... Prise 2! BYE MAD https://codereview.chromium.org/2849523003/diff/140001/chrome/app/generated_resources.grd File chrome/app/generated_resources.grd (right): https://codereview.chromium.org/2849523003/diff/140001/chrome/app/generated_resources.grd#newcode7738 chrome/app/generated_resources.grd:7738: <message name="IDS_AUTOFILL_FIELD_LABEL_BILLING_ADDRESS" desc="The ...
3 years, 7 months ago (2017-05-03 23:50:47 UTC) #47
sebsg
LGTM! I created crbug.com/718467 on my side to check why an empty billing address is ...
3 years, 7 months ago (2017-05-04 16:50:54 UTC) #64
MAD
OK, Mathieu, we're only missing your OWNER LGTM for the chrome\browser files now. Thanks! BYE ...
3 years, 7 months ago (2017-05-04 19:56:14 UTC) #65
Mathieu
Very cool, some suggestions! https://codereview.chromium.org/2849523003/diff/350001/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/2849523003/diff/350001/chrome/browser/ui/views/payments/credit_card_editor_view_controller.cc#newcode56 chrome/browser/ui/views/payments/credit_card_editor_view_controller.cc:56: const auto kBillingAddressType = autofill::MAX_VALID_FIELD_TYPE; ...
3 years, 7 months ago (2017-05-04 20:29:20 UTC) #66
MAD
Thanks Math! How about this? BYE MAD... https://codereview.chromium.org/2849523003/diff/350001/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/2849523003/diff/350001/chrome/browser/ui/views/payments/credit_card_editor_view_controller.cc#newcode56 chrome/browser/ui/views/payments/credit_card_editor_view_controller.cc:56: const auto ...
3 years, 7 months ago (2017-05-05 00:50:07 UTC) #70
Mathieu
A few small things and this is good to go! https://codereview.chromium.org/2849523003/diff/350001/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/2849523003/diff/350001/chrome/browser/ui/views/payments/credit_card_editor_view_controller.cc#newcode396 ...
3 years, 7 months ago (2017-05-05 13:51:33 UTC) #76
Mathieu
https://codereview.chromium.org/2849523003/diff/350001/components/autofill/core/browser/address_combobox_model.cc File components/autofill/core/browser/address_combobox_model.cc (right): https://codereview.chromium.org/2849523003/diff/350001/components/autofill/core/browser/address_combobox_model.cc#newcode126 components/autofill/core/browser/address_combobox_model.cc:126: base::string16 ellipsis(base::ASCIIToUTF16("...")); On 2017/05/05 13:51:33, Mathieu wrote: > On ...
3 years, 7 months ago (2017-05-05 13:59:07 UTC) #77
MAD
OK, all addressed, and fixed new test that came with a rebase. I put screenshots ...
3 years, 7 months ago (2017-05-05 18:32:34 UTC) #82
Mathieu
lgtm, thanks!
3 years, 7 months ago (2017-05-05 18:56:04 UTC) #83
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/2849523003/530001
3 years, 7 months ago (2017-05-08 18:32:57 UTC) #88
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_rel_ng on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_rel_ng/builds/447888)
3 years, 7 months ago (2017-05-08 21:30:06 UTC) #90
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/2849523003/530001
3 years, 7 months ago (2017-05-09 02:35:55 UTC) #92
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_rel_ng on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_rel_ng/builds/448381)
3 years, 7 months ago (2017-05-09 05:13:01 UTC) #94
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/2849523003/550001
3 years, 7 months ago (2017-05-09 15:09:23 UTC) #97
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_asan_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_asan_rel_ng/builds/366048)
3 years, 7 months ago (2017-05-09 21:35:23 UTC) #99
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/2849523003/550001
3 years, 7 months ago (2017-05-10 01:04:42 UTC) #101
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on master.tryserver.chromium.linux (JOB_TIMED_OUT, build has not started yet; ...
3 years, 7 months ago (2017-05-10 03:08:42 UTC) #103
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/2849523003/550001
3 years, 7 months ago (2017-05-10 11:23:33 UTC) #105
commit-bot: I haz the power
3 years, 7 months ago (2017-05-10 11:30:20 UTC) #108
Message was sent while issue was closed.
Committed patchset #25 (id:550001) as
https://chromium.googlesource.com/chromium/src/+/faf8e1ebbc65063a01ada0f0c5ac...

Powered by Google App Engine
This is Rietveld 408576698