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

Issue 1753253003: [Autofill] Fix heuristics to detect consecutive CVCs. (Closed)

Created:
4 years, 9 months ago by sebsg
Modified:
4 years, 9 months ago
Reviewers:
Mathieu, Toyama
CC:
bondd+autofillwatch_chromium.org, browser-components-watch_chromium.org, chromium-reviews, estade+watch_chromium.org, jdonnelly+autofillwatch_chromium.org, rouslan+autofill_chromium.org, vabr+watchlistautofill_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[Autofill] Fix heuristics to detect consecutive CVCs. Added a check after parsing a cvc. If it's the only type parsed so far, check the previous field. If it's also a cvc, just label the current field as a cvc without looking at the next fields. This also fixes some cases where we would label some names as cc-names. BUG=591498 Committed: https://crrev.com/a9224ac0cc140b536c8e13099fcf3cfc4cc4a80d Cr-Commit-Position: refs/heads/master@{#380916}

Patch Set 1 #

Total comments: 18

Patch Set 2 : Addressed comments #

Patch Set 3 : Rebase #

Patch Set 4 : After rebase adjustments #

Patch Set 5 : Added scanner check #

Unified diffs Side-by-side diffs Delta from patch set Stats (+232 lines, -20 lines) Patch
M chrome/test/data/autofill/heuristics/output/117_cc_checkout_macys.com.out View 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/test/data/autofill/heuristics/output/118_checkout_cvs.com.out View 2 chunks +5 lines, -5 lines 0 comments Download
M components/autofill/core/browser/credit_card_field.h View 1 chunk +4 lines, -0 lines 0 comments Download
M components/autofill/core/browser/credit_card_field.cc View 1 2 3 4 5 chunks +40 lines, -13 lines 0 comments Download
M components/autofill/core/browser/credit_card_field_unittest.cc View 2 chunks +181 lines, -0 lines 0 comments Download

Messages

Total messages: 25 (12 generated)
sebsg
Could you please take a look? Thanks!
4 years, 9 months ago (2016-03-03 16:15:22 UTC) #4
Mathieu
Looks OK, would like Daniel to have a look. https://codereview.chromium.org/1753253003/diff/20001/components/autofill/core/browser/credit_card_field.cc File components/autofill/core/browser/credit_card_field.cc (right): https://codereview.chromium.org/1753253003/diff/20001/components/autofill/core/browser/credit_card_field.cc#newcode143 components/autofill/core/browser/credit_card_field.cc:143: ...
4 years, 9 months ago (2016-03-04 18:54:39 UTC) #6
Toyama
Hi Seb, I don't completely understand the intuition behind the solution, but the diffs look ...
4 years, 9 months ago (2016-03-04 19:08:50 UTC) #7
Toyama
lgtm Chatted offline with Seb. This is good and should decrease the number of unknown ...
4 years, 9 months ago (2016-03-04 19:29:41 UTC) #8
sebsg
Could you please take another look? Thanks! https://codereview.chromium.org/1753253003/diff/20001/components/autofill/core/browser/credit_card_field.cc File components/autofill/core/browser/credit_card_field.cc (right): https://codereview.chromium.org/1753253003/diff/20001/components/autofill/core/browser/credit_card_field.cc#newcode143 components/autofill/core/browser/credit_card_field.cc:143: kMatchNumAndTel | ...
4 years, 9 months ago (2016-03-09 16:38:36 UTC) #10
Mathieu
lgtm
4 years, 9 months ago (2016-03-09 16:52:35 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1753253003/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1753253003/100001
4 years, 9 months ago (2016-03-09 19:06:19 UTC) #14
commit-bot: I haz the power
Try jobs failed on following builders: linux_android_rel_ng on tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/linux_android_rel_ng/builds/35996)
4 years, 9 months ago (2016-03-09 22:39:50 UTC) #16
sebsg
Hey Math could you take another look? I added an obvious scanner check. Sorry about ...
4 years, 9 months ago (2016-03-13 19:59:36 UTC) #17
Mathieu
lgtm
4 years, 9 months ago (2016-03-14 00:16:14 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1753253003/120001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1753253003/120001
4 years, 9 months ago (2016-03-14 00:16:23 UTC) #21
commit-bot: I haz the power
Committed patchset #5 (id:120001)
4 years, 9 months ago (2016-03-14 01:41:46 UTC) #23
commit-bot: I haz the power
4 years, 9 months ago (2016-03-14 01:43:03 UTC) #25
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/a9224ac0cc140b536c8e13099fcf3cfc4cc4a80d
Cr-Commit-Position: refs/heads/master@{#380916}

Powered by Google App Engine
This is Rietveld 408576698