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

Issue 2906763005: Add support for Brazil Elo card in autofill. (Closed)

Created:
3 years, 6 months ago by jiahuiguo
Modified:
3 years, 6 months ago
Reviewers:
Mathieu, Ted C, Jared Saul
CC:
chromium-reviews, rouslan+autofill_chromium.org, rogerm+autofillwatch_chromium.org, sebsg+autofillwatch_chromium.org, browser-components-watch_chromium.org, mathp+autofillwatch_chromium.org, agrieve+watch_chromium.org, vabr+watchlistautofill_chromium.org, estade+watch_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Add support for Brazil Elo card in autofill. Some additionals: - Changed Dinners Club and MIR bin range according to the lastest wiki. - Changed out-of-date website links - For credit_card_unittest, the upper limit for INSTANTIATE_TEST_CASE_P is 50 cases according to [1], so did not add more coverage for the numbers. BUG=709551 TEST=components:components_unittests Unrelated presubmit script errors: owners.SyntaxErrorInOwnersFile: /usr/local/google/git/chrome/chromium/src/components/resources/OWNERS:24 syntax error: components/sync/OWNERS does not refer to an existing file. NOPRESUBMIT=true [1] https://cs.chromium.org/chromium/src/third_party/mesa/src/src/gtest/include/gtest/gtest-param-test.h?q=gtest-param-test.h+package:%5Echromium$&dr=C&l=1190 Review-Url: https://codereview.chromium.org/2906763005 Cr-Commit-Position: refs/heads/master@{#476334} Committed: https://chromium.googlesource.com/chromium/src/+/fa8183309600f1c2b8c4ad5a60aee69761916a9e

Patch Set 1 #

Total comments: 23

Patch Set 2 : Address comments #

Total comments: 2

Patch Set 3 : Address comments #

Patch Set 4 : Fix compile error #

Patch Set 5 : Fix test #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+161 lines, -58 lines) Patch
A chrome/android/java/res/drawable/elo_card.xml View 1 chunk +59 lines, -0 lines 0 comments Download
M chrome/browser/android/resource_id.h View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/ui/autofill/autofill_popup_layout_model.cc View 1 2 3 2 chunks +11 lines, -9 lines 3 comments Download
M chrome/browser/ui/views/payments/credit_card_editor_view_controller_browsertest.cc View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M components/autofill/core/browser/autofill_data_util.cc View 1 1 chunk +1 line, -0 lines 0 comments Download
M components/autofill/core/browser/credit_card.h View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M components/autofill/core/browser/credit_card.cc View 1 2 7 chunks +45 lines, -28 lines 0 comments Download
M components/autofill/core/browser/credit_card_unittest.cc View 1 12 chunks +23 lines, -13 lines 0 comments Download
M components/autofill/core/browser/validation.cc View 1 2 3 chunks +9 lines, -6 lines 0 comments Download
M components/autofill/core/browser/validation_unittest.cc View 4 chunks +6 lines, -1 line 0 comments Download
M components/autofill_strings.grdp View 1 1 chunk +3 lines, -0 lines 0 comments Download
M components/resources/autofill_scaled_resources.grdp View 1 chunk +1 line, -0 lines 0 comments Download
A components/resources/default_100_percent/autofill/elo.png View Binary file 0 comments Download
A components/resources/default_200_percent/autofill/elo.png View Binary file 0 comments Download

Messages

Total messages: 40 (27 generated)
jiahuiguo
Hi Jared and Mathieu, PTAL, some details about ELO bin range handle and xml/png, please ...
3 years, 6 months ago (2017-05-26 03:55:00 UTC) #7
Mathieu
Very good work! Just a few comments https://codereview.chromium.org/2906763005/diff/1/chrome/browser/ui/autofill/autofill_popup_layout_model.cc File chrome/browser/ui/autofill/autofill_popup_layout_model.cc (right): https://codereview.chromium.org/2906763005/diff/1/chrome/browser/ui/autofill/autofill_popup_layout_model.cc#newcode52 chrome/browser/ui/autofill/autofill_popup_layout_model.cc:52: {"americanExpressCC", IDR_AUTOFILL_CC_AMEX}, ...
3 years, 6 months ago (2017-05-26 13:48:32 UTC) #8
jiahuiguo
Hi Jared and Mathieu, PTAL the code and the bin range pattern in the bug. ...
3 years, 6 months ago (2017-05-26 19:44:10 UTC) #11
Jared Saul
https://codereview.chromium.org/2906763005/diff/1/components/autofill/core/browser/credit_card.cc File components/autofill/core/browser/credit_card.cc (left): https://codereview.chromium.org/2906763005/diff/1/components/autofill/core/browser/credit_card.cc#oldcode171 components/autofill/core/browser/credit_card.cc:171: // http://www.discovernetwork.com/merchants/images/Merchant_Marketing_PDF.pdf, These two are removed entirely, but I ...
3 years, 6 months ago (2017-05-26 19:51:10 UTC) #14
Mathieu
Thanks a lot! lgtm. I think we'll want to merge to M60, too. This is ...
3 years, 6 months ago (2017-05-29 15:54:31 UTC) #15
jiahuiguo
Thanks for the comments, PTAL. https://codereview.chromium.org/2906763005/diff/1/components/autofill/core/browser/credit_card.cc File components/autofill/core/browser/credit_card.cc (left): https://codereview.chromium.org/2906763005/diff/1/components/autofill/core/browser/credit_card.cc#oldcode171 components/autofill/core/browser/credit_card.cc:171: // http://www.discovernetwork.com/merchants/images/Merchant_Marketing_PDF.pdf, On 2017/05/26 ...
3 years, 6 months ago (2017-05-29 20:08:06 UTC) #16
jiahuiguo
Hi Ted, PTAL. Thanks.
3 years, 6 months ago (2017-05-31 01:18:14 UTC) #29
Jared Saul
lgtm https://codereview.chromium.org/2906763005/diff/80001/chrome/browser/ui/autofill/autofill_popup_layout_model.cc File chrome/browser/ui/autofill/autofill_popup_layout_model.cc (right): https://codereview.chromium.org/2906763005/diff/80001/chrome/browser/ui/autofill/autofill_popup_layout_model.cc#newcode54 chrome/browser/ui/autofill/autofill_popup_layout_model.cc:54: {autofill::kDinersCard, IDR_AUTOFILL_CC_DINERS}, Diners and JCB were both using ...
3 years, 6 months ago (2017-05-31 18:26:23 UTC) #30
Mathieu
https://codereview.chromium.org/2906763005/diff/80001/chrome/browser/ui/autofill/autofill_popup_layout_model.cc File chrome/browser/ui/autofill/autofill_popup_layout_model.cc (right): https://codereview.chromium.org/2906763005/diff/80001/chrome/browser/ui/autofill/autofill_popup_layout_model.cc#newcode54 chrome/browser/ui/autofill/autofill_popup_layout_model.cc:54: {autofill::kDinersCard, IDR_AUTOFILL_CC_DINERS}, On 2017/05/31 18:26:23, Jared Saul wrote: > ...
3 years, 6 months ago (2017-05-31 18:27:24 UTC) #31
jiahuiguo
Thanks. https://codereview.chromium.org/2906763005/diff/80001/chrome/browser/ui/autofill/autofill_popup_layout_model.cc File chrome/browser/ui/autofill/autofill_popup_layout_model.cc (right): https://codereview.chromium.org/2906763005/diff/80001/chrome/browser/ui/autofill/autofill_popup_layout_model.cc#newcode54 chrome/browser/ui/autofill/autofill_popup_layout_model.cc:54: {autofill::kDinersCard, IDR_AUTOFILL_CC_DINERS}, On 2017/05/31 18:26:23, Jared Saul wrote: ...
3 years, 6 months ago (2017-05-31 18:27:56 UTC) #32
Ted C
lgtm
3 years, 6 months ago (2017-05-31 18:46:30 UTC) #33
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/2906763005/80001
3 years, 6 months ago (2017-06-01 16:00:47 UTC) #37
commit-bot: I haz the power
3 years, 6 months ago (2017-06-01 17:10:02 UTC) #40
Message was sent while issue was closed.
Committed patchset #5 (id:80001) as
https://chromium.googlesource.com/chromium/src/+/fa8183309600f1c2b8c4ad5a60ae...

Powered by Google App Engine
This is Rietveld 408576698