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

Issue 493393003: [Autofill] Autofill incorrectly fills credit card expiration year in 2-digit fields. (Closed)

Created:
6 years, 4 months ago by Pritam Nikam
Modified:
6 years, 3 months ago
CC:
chromium-reviews, benquan, browser-components-watch_chromium.org, Dane Wallinga, dyu1, estade+watch_chromium.org, Ilya Sherman, rouslan+autofillwatch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

[Autofill] Autofill incorrectly fills credit card expiration year in 2-digit fields. With current implementation the on parsing the credit card field heuristics matches to the autofill::kExpirationYearRe and apparently it's assumes that a 4-digit credit card field (i.e. ServerFieldType CREDIT_CARD_EXP_DATE_4_DIGIT_YEAR). This patch considers *maxlength* attribute in addition to see whether the feild is 2-digit input field or not. BUG=406247 Committed: https://crrev.com/401f3492b9eaac6a3d964b7d5147f1e532fa95dc Cr-Commit-Position: refs/heads/master@{#291734}

Patch Set 1 : #

Total comments: 4

Patch Set 2 : Incorporated review comments and code indentation. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+81 lines, -38 lines) Patch
M components/autofill/core/browser/credit_card_field.h View 1 2 chunks +11 lines, -5 lines 0 comments Download
M components/autofill/core/browser/credit_card_field.cc View 1 6 chunks +37 lines, -33 lines 0 comments Download
M components/autofill/core/browser/credit_card_field_unittest.cc View 1 1 chunk +33 lines, -0 lines 0 comments Download

Messages

Total messages: 9 (0 generated)
Pritam Nikam
Hi Ilya & Evan, Please take a look. Thanks!
6 years, 4 months ago (2014-08-22 07:49:10 UTC) #1
Evan Stade
thanks, looks like a good improvement https://codereview.chromium.org/493393003/diff/20001/components/autofill/core/browser/credit_card_field.cc File components/autofill/core/browser/credit_card_field.cc (right): https://codereview.chromium.org/493393003/diff/20001/components/autofill/core/browser/credit_card_field.cc#newcode109 components/autofill/core/browser/credit_card_field.cc:109: &credit_card_field->expiration_year_)) { nit: ...
6 years, 4 months ago (2014-08-22 17:30:18 UTC) #2
Pritam Nikam
Thanks Evan! I've incorporated review comments. PTAL! https://codereview.chromium.org/493393003/diff/20001/components/autofill/core/browser/credit_card_field.cc File components/autofill/core/browser/credit_card_field.cc (right): https://codereview.chromium.org/493393003/diff/20001/components/autofill/core/browser/credit_card_field.cc#newcode109 components/autofill/core/browser/credit_card_field.cc:109: &credit_card_field->expiration_year_)) { ...
6 years, 4 months ago (2014-08-23 08:27:35 UTC) #3
Evan Stade
lgtm
6 years, 4 months ago (2014-08-25 16:15:59 UTC) #4
Pritam Nikam
The CQ bit was checked by pritam.nikam@samsung.com
6 years, 4 months ago (2014-08-25 17:41:15 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/pritam.nikam@samsung.com/493393003/60001
6 years, 4 months ago (2014-08-25 17:41:45 UTC) #6
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: mac_chromium_rel_swarming on tryserver.chromium.mac ...
6 years, 4 months ago (2014-08-25 18:43:50 UTC) #7
commit-bot: I haz the power
Committed patchset #2 (60001) as 1fd7f4962110b4a3cd533dd46bf15a8a44e1dda7
6 years, 4 months ago (2014-08-25 19:15:10 UTC) #8
commit-bot: I haz the power
6 years, 3 months ago (2014-09-10 02:36:37 UTC) #9
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/401f3492b9eaac6a3d964b7d5147f1e532fa95dc
Cr-Commit-Position: refs/heads/master@{#291734}

Powered by Google App Engine
This is Rietveld 408576698