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

Issue 2116583002: Credit card editor for PaymentRequest UI. (Closed)

Created:
4 years, 5 months ago by please use gerrit instead
Modified:
4 years, 5 months ago
Reviewers:
Mathieu, gone, Evan Stade
CC:
chromium-reviews, rouslan+autofill_chromium.org, estade+watch_chromium.org, vabr+watchlistautofill_chromium.org, browser-components-watch_chromium.org, jdonnelly+autofillwatch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Credit card editor for PaymentRequest UI. When user taps on an incomplete autofill credit card or [+ ADD CARD] button, the card editor launches. For server cards, the editor shows uneditable card information and lets the user set the billing address. For local cards, the editor shows the following fields. 1) A list of icons for supported card types. 2) The card number input with Luhn validation and formatting. Required field. 3) The name on card input. Required field. 4) The month and year dropdowns. January of this year by default for new cards. 5) The billing address dropdown with only complete addresses on disk and an option to add a new address. Required field. 6) A checkbox for saving the new card on disk. Checked by default, so it behaves similar to autofill settings. BUG=624924 Committed: https://crrev.com/6c0897f84b3907e48ea75c1a8df6558134f28bea Committed: https://crrev.com/80b5895d9b722eba9129c62c1788f8cbef351dc4 Cr-Original-Commit-Position: refs/heads/master@{#405876} Cr-Commit-Position: refs/heads/master@{#406036}

Patch Set 1 #

Patch Set 2 : Remove extra padding from icons, fix AutofillContactTest #

Total comments: 2

Patch Set 3 : Update comments in personal_data_manager_android.h #

Total comments: 46

Patch Set 4 : Address first round of comments from dfalcantara@. #

Total comments: 16

Patch Set 5 : Address dflacantara@'s final comments #

Patch Set 6 : Fix failing test #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1955 lines, -451 lines) Patch
A chrome/android/java/res/drawable-hdpi/pr_dinersclub.png View Binary file 0 comments Download
A chrome/android/java/res/drawable-hdpi/pr_jcb.png View Binary file 0 comments Download
A chrome/android/java/res/drawable-hdpi/pr_unionpay.png View Binary file 0 comments Download
A chrome/android/java/res/drawable-mdpi/pr_dinersclub.png View Binary file 0 comments Download
A chrome/android/java/res/drawable-mdpi/pr_jcb.png View Binary file 0 comments Download
A chrome/android/java/res/drawable-mdpi/pr_unionpay.png View Binary file 0 comments Download
A chrome/android/java/res/drawable-xhdpi/pr_dinersclub.png View Binary file 0 comments Download
A chrome/android/java/res/drawable-xhdpi/pr_jcb.png View Binary file 0 comments Download
A chrome/android/java/res/drawable-xhdpi/pr_unionpay.png View Binary file 0 comments Download
A chrome/android/java/res/drawable-xxhdpi/pr_dinersclub.png View Binary file 0 comments Download
A chrome/android/java/res/drawable-xxhdpi/pr_jcb.png View Binary file 0 comments Download
A chrome/android/java/res/drawable-xxhdpi/pr_unionpay.png View Binary file 0 comments Download
A chrome/android/java/res/drawable-xxxhdpi/pr_dinersclub.png View Binary file 0 comments Download
A chrome/android/java/res/drawable-xxxhdpi/pr_jcb.png View Binary file 0 comments Download
A chrome/android/java/res/drawable-xxxhdpi/pr_unionpay.png View Binary file 0 comments Download
M chrome/android/java/res/layout/payment_request_editor_dropdown.xml View 1 2 3 4 1 chunk +4 lines, -4 lines 0 comments Download
A chrome/android/java/res/layout/payment_request_editor_icons.xml View 1 2 3 4 1 chunk +26 lines, -0 lines 0 comments Download
A chrome/android/java/res/layout/payment_request_editor_label.xml View 1 2 3 4 1 chunk +49 lines, -0 lines 0 comments Download
M chrome/android/java/res/values/dimens.xml View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/android/java/res/values/ids.xml View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/autofill/PersonalDataManager.java View 1 2 3 10 chunks +53 lines, -44 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/payments/AddressEditor.java View 1 2 3 4 5 chunks +33 lines, -30 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/payments/AutofillAddress.java View 1 2 3 1 chunk +3 lines, -4 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/payments/AutofillContact.java View 1 2 3 2 chunks +9 lines, -7 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/payments/AutofillPaymentInstrument.java View 1 2 3 4 6 chunks +71 lines, -29 lines 0 comments Download
A chrome/android/java/src/org/chromium/chrome/browser/payments/CardEditor.java View 1 2 3 4 1 chunk +543 lines, -0 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/payments/ContactEditor.java View 1 2 3 4 2 chunks +6 lines, -6 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/payments/PaymentRequestImpl.java View 1 2 3 17 chunks +62 lines, -17 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/payments/ui/EditorDropdownField.java View 1 2 3 5 chunks +33 lines, -5 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/payments/ui/EditorFieldModel.java View 1 2 3 4 5 7 chunks +203 lines, -34 lines 0 comments Download
A chrome/android/java/src/org/chromium/chrome/browser/payments/ui/EditorIconsField.java View 1 2 3 1 chunk +58 lines, -0 lines 0 comments Download
A chrome/android/java/src/org/chromium/chrome/browser/payments/ui/EditorLabelField.java View 1 2 3 4 1 chunk +61 lines, -0 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/payments/ui/EditorTextField.java View 1 2 3 6 chunks +42 lines, -19 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/payments/ui/EditorView.java View 1 2 3 4 5 14 chunks +166 lines, -68 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/payments/ui/PaymentOption.java View 1 2 3 2 chunks +27 lines, -9 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/payments/ui/PaymentRequestUI.java View 1 2 3 4 6 chunks +17 lines, -3 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/payments/ui/SectionInformation.java View 1 2 3 4 1 chunk +2 lines, -2 lines 0 comments Download
A chrome/android/java/src/org/chromium/chrome/browser/payments/ui/Validatable.java View 1 chunk +21 lines, -0 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/preferences/autofill/AutofillLocalCardEditor.java View 2 chunks +0 lines, -92 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/preferences/autofill/AutofillProfileBridge.java View 1 chunk +1 line, -1 line 0 comments Download
A chrome/android/java/src/org/chromium/chrome/browser/preferences/autofill/CreditCardNumberFormattingTextWatcher.java View 1 chunk +99 lines, -0 lines 0 comments Download
M chrome/android/java/strings/android_chrome_strings.grd View 1 2 3 4 5 3 chunks +19 lines, -28 lines 0 comments Download
M chrome/android/java_sources.gni View 1 2 3 4 5 4 chunks +5 lines, -0 lines 0 comments Download
M chrome/android/javatests/src/org/chromium/chrome/browser/payments/PaymentRequestFreeShippingTest.java View 1 chunk +1 line, -1 line 0 comments Download
M chrome/android/javatests/src/org/chromium/chrome/browser/payments/PaymentRequestIncompleteContactDetailsTest.java View 1 chunk +2 lines, -3 lines 0 comments Download
M chrome/android/javatests/src/org/chromium/chrome/browser/payments/PaymentRequestIncompletePhoneTest.java View 3 chunks +2 lines, -16 lines 0 comments Download
M chrome/android/javatests/src/org/chromium/chrome/browser/payments/PaymentRequestNoShippingTest.java View 1 2 3 4 7 chunks +98 lines, -0 lines 0 comments Download
M chrome/android/javatests/src/org/chromium/chrome/browser/payments/PaymentRequestTestBase.java View 1 2 3 9 chunks +90 lines, -3 lines 0 comments Download
M chrome/android/junit/src/org/chromium/chrome/browser/payments/AutofillContactTest.java View 1 1 chunk +15 lines, -10 lines 0 comments Download
M chrome/browser/android/resource_id.h View 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/autofill/android/personal_data_manager_android.h View 1 2 4 chunks +40 lines, -2 lines 0 comments Download
M chrome/browser/autofill/android/personal_data_manager_android.cc View 7 chunks +72 lines, -6 lines 0 comments Download
M chrome/test/data/android/payments/no_shipping.js View 1 chunk +1 line, -1 line 0 comments Download
M components/autofill/core/browser/payments/full_card_request.h View 1 chunk +4 lines, -0 lines 0 comments Download
M components/autofill/core/browser/payments/full_card_request.cc View 1 chunk +1 line, -0 lines 0 comments Download
M components/autofill_strings.grdp View 1 1 chunk +7 lines, -7 lines 0 comments Download
M components/resources/autofill_scaled_resources.grdp View 1 chunk +3 lines, -0 lines 0 comments Download

Messages

Total messages: 86 (63 generated)
please use gerrit instead
dfalcantara@, ptal android. mathp@, ptal autofill. Sorry for the huge review. This is a single ...
4 years, 5 months ago (2016-07-12 21:03:38 UTC) #27
please use gerrit instead
Screenshots in http://crbug.com/624924#c2 and http://crbug.com/624924#c3.
4 years, 5 months ago (2016-07-12 23:50:20 UTC) #28
please use gerrit instead
Patch #2 screenshots in http://crbug.com/624924#c4.
4 years, 5 months ago (2016-07-13 00:24:34 UTC) #29
Mathieu
autofill bits lgtm https://codereview.chromium.org/2116583002/diff/370001/chrome/browser/autofill/android/personal_data_manager_android.h File chrome/browser/autofill/android/personal_data_manager_android.h (right): https://codereview.chromium.org/2116583002/diff/370001/chrome/browser/autofill/android/personal_data_manager_android.h#newcode155 chrome/browser/autofill/android/personal_data_manager_android.h:155: // Gets the CVC for a ...
4 years, 5 months ago (2016-07-13 16:32:45 UTC) #30
please use gerrit instead
https://codereview.chromium.org/2116583002/diff/370001/chrome/browser/autofill/android/personal_data_manager_android.h File chrome/browser/autofill/android/personal_data_manager_android.h (right): https://codereview.chromium.org/2116583002/diff/370001/chrome/browser/autofill/android/personal_data_manager_android.h#newcode155 chrome/browser/autofill/android/personal_data_manager_android.h:155: // Gets the CVC for a card that's temporary ...
4 years, 5 months ago (2016-07-13 16:57:56 UTC) #32
gone
Long way to go on the review, still, but my eyes were already glazing over ...
4 years, 5 months ago (2016-07-13 21:13:01 UTC) #38
please use gerrit instead
Patch 4 screenshots in http://crbug.com/624924#c5.
4 years, 5 months ago (2016-07-13 21:13:52 UTC) #39
gone
Also: resources are labeled "ic_whatever" because of Android convention for icons. I guess pr_whatever is ...
4 years, 5 months ago (2016-07-13 21:17:59 UTC) #40
please use gerrit instead
dfalcantara@, ptal patch 4. On 2016/07/13 21:17:59, dfalcantara wrote: > Also: resources are labeled "ic_whatever" ...
4 years, 5 months ago (2016-07-14 17:21:44 UTC) #55
gone
lgtm, but it's admittedly hard to do a great review when it's so huge. https://chromiumcodereview.appspot.com/2116583002/diff/470001/chrome/android/java/res/layout/payment_request_editor_dropdown.xml ...
4 years, 5 months ago (2016-07-14 22:36:36 UTC) #59
please use gerrit instead
estade@, owners ptal components/resources/autofill_scaled_resources.grdp https://codereview.chromium.org/2116583002/diff/470001/chrome/android/java/res/layout/payment_request_editor_dropdown.xml File chrome/android/java/res/layout/payment_request_editor_dropdown.xml (left): https://codereview.chromium.org/2116583002/diff/470001/chrome/android/java/res/layout/payment_request_editor_dropdown.xml#oldcode28 chrome/android/java/res/layout/payment_request_editor_dropdown.xml:28: On 2016/07/14 22:36:36, dfalcantara wrote: ...
4 years, 5 months ago (2016-07-15 00:24:37 UTC) #63
Evan Stade
On 2016/07/15 00:24:37, Rouslan (ツ) wrote: > estade@, owners ptal components/resources/autofill_scaled_resources.grdp > > https://codereview.chromium.org/2116583002/diff/470001/chrome/android/java/res/layout/payment_request_editor_dropdown.xml > ...
4 years, 5 months ago (2016-07-15 22:03:35 UTC) #66
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/2116583002/490001
4 years, 5 months ago (2016-07-15 22:05:02 UTC) #69
commit-bot: I haz the power
Committed patchset #5 (id:490001)
4 years, 5 months ago (2016-07-15 22:11:29 UTC) #71
commit-bot: I haz the power
CQ bit was unchecked.
4 years, 5 months ago (2016-07-15 22:11:47 UTC) #72
commit-bot: I haz the power
Patchset 5 (id:??) landed as https://crrev.com/6c0897f84b3907e48ea75c1a8df6558134f28bea Cr-Commit-Position: refs/heads/master@{#405876}
4 years, 5 months ago (2016-07-15 22:13:16 UTC) #74
Benoit L
A revert of this CL (patchset #5 id:490001) has been created in https://codereview.chromium.org/2158783002/ by lizeb@chromium.org. ...
4 years, 5 months ago (2016-07-18 09:27:38 UTC) #75
markusheintz_
A revert of this CL (patchset #5 id:490001) has been created in https://codereview.chromium.org/2162493002/ by markusheintz@chromium.org. ...
4 years, 5 months ago (2016-07-18 11:29:13 UTC) #76
please use gerrit instead
We had a fix in http://crrev.com/2154123002, but it did not land in time. Will fix ...
4 years, 5 months ago (2016-07-18 16:34:07 UTC) #77
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/2116583002/510001
4 years, 5 months ago (2016-07-18 16:59:28 UTC) #81
commit-bot: I haz the power
Committed patchset #6 (id:510001)
4 years, 5 months ago (2016-07-18 18:11:26 UTC) #83
commit-bot: I haz the power
CQ bit was unchecked.
4 years, 5 months ago (2016-07-18 18:11:38 UTC) #84
commit-bot: I haz the power
4 years, 5 months ago (2016-07-18 18:13:26 UTC) #86
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/80b5895d9b722eba9129c62c1788f8cbef351dc4
Cr-Commit-Position: refs/heads/master@{#406036}

Powered by Google App Engine
This is Rietveld 408576698