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

Issue 2136453003: [Autofill] Improve support for various credit card expiration dates. (Closed)

Created:
4 years, 5 months ago by Mathieu
Modified:
4 years, 5 months ago
Reviewers:
sebsg, Justin Donnelly
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

[Autofill] Improve support for various credit card expiration dates. Supports 2-digit years, and various combinations of mm/yyyy and single digit month combinations (e.g. m/yy). BUG=626537 TEST=CreditCardTest,PersonalDataManagerTest Committed: https://crrev.com/303f4384d13900b31a5b854843b2a18d36176639 Cr-Commit-Position: refs/heads/master@{#404467}

Patch Set 1 : Initial #

Total comments: 10

Patch Set 2 : addressed comments #

Total comments: 6

Patch Set 3 : final nits #

Unified diffs Side-by-side diffs Delta from patch set Stats (+316 lines, -132 lines) Patch
M components/autofill/core/browser/credit_card.h View 1 2 3 chunks +11 lines, -1 line 0 comments Download
M components/autofill/core/browser/credit_card.cc View 1 2 12 chunks +72 lines, -14 lines 0 comments Download
M components/autofill/core/browser/credit_card_unittest.cc View 1 3 chunks +75 lines, -2 lines 0 comments Download
M components/autofill/core/browser/personal_data_manager_unittest.cc View 1 2 41 chunks +158 lines, -57 lines 0 comments Download
M components/autofill/core/browser/validation.h View 1 chunk +0 lines, -3 lines 0 comments Download
M components/autofill/core/browser/validation.cc View 1 chunk +0 lines, -20 lines 0 comments Download
M components/autofill/core/browser/validation_unittest.cc View 2 chunks +0 lines, -35 lines 0 comments Download

Messages

Total messages: 17 (7 generated)
Mathieu
PTAL: Seb: detailed logic Justin: Mostly FYI but I want to make sure it fits ...
4 years, 5 months ago (2016-07-08 04:59:55 UTC) #4
sebsg
The logic looks good. Just a couple comments on tests. Thanks! https://codereview.chromium.org/2136453003/diff/20001/components/autofill/core/browser/credit_card.cc File components/autofill/core/browser/credit_card.cc (right): ...
4 years, 5 months ago (2016-07-08 10:01:45 UTC) #5
Mathieu
Thanks, more robust now. PTAnL! https://codereview.chromium.org/2136453003/diff/20001/components/autofill/core/browser/credit_card.cc File components/autofill/core/browser/credit_card.cc (right): https://codereview.chromium.org/2136453003/diff/20001/components/autofill/core/browser/credit_card.cc#newcode728 components/autofill/core/browser/credit_card.cc:728: // Check that it ...
4 years, 5 months ago (2016-07-08 14:27:05 UTC) #6
sebsg
lgtm with optional nit. Really good test coverage! https://codereview.chromium.org/2136453003/diff/40001/components/autofill/core/browser/credit_card.cc File components/autofill/core/browser/credit_card.cc (right): https://codereview.chromium.org/2136453003/diff/40001/components/autofill/core/browser/credit_card.cc#newcode757 components/autofill/core/browser/credit_card.cc:757: // ...
4 years, 5 months ago (2016-07-08 17:23:15 UTC) #7
Justin Donnelly
lgtm Great change! https://codereview.chromium.org/2136453003/diff/40001/components/autofill/core/browser/credit_card.cc File components/autofill/core/browser/credit_card.cc (right): https://codereview.chromium.org/2136453003/diff/40001/components/autofill/core/browser/credit_card.cc#newcode747 components/autofill/core/browser/credit_card.cc:747: found_separator = separator; break? Obviously not ...
4 years, 5 months ago (2016-07-08 17:45:22 UTC) #8
sebsg
https://codereview.chromium.org/2136453003/diff/40001/components/autofill/core/browser/credit_card.cc File components/autofill/core/browser/credit_card.cc (right): https://codereview.chromium.org/2136453003/diff/40001/components/autofill/core/browser/credit_card.cc#newcode747 components/autofill/core/browser/credit_card.cc:747: found_separator = separator; On 2016/07/08 17:45:22, Justin Donnelly wrote: ...
4 years, 5 months ago (2016-07-08 17:48:32 UTC) #9
Mathieu
Thanks, submitting! https://codereview.chromium.org/2136453003/diff/40001/components/autofill/core/browser/credit_card.cc File components/autofill/core/browser/credit_card.cc (right): https://codereview.chromium.org/2136453003/diff/40001/components/autofill/core/browser/credit_card.cc#newcode747 components/autofill/core/browser/credit_card.cc:747: found_separator = separator; On 2016/07/08 17:48:31, sebsg ...
4 years, 5 months ago (2016-07-08 18:32:57 UTC) #10
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/2136453003/60001
4 years, 5 months ago (2016-07-08 18:33:57 UTC) #13
commit-bot: I haz the power
Committed patchset #3 (id:60001)
4 years, 5 months ago (2016-07-08 19:43:24 UTC) #15
commit-bot: I haz the power
4 years, 5 months ago (2016-07-08 19:46:42 UTC) #17
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/303f4384d13900b31a5b854843b2a18d36176639
Cr-Commit-Position: refs/heads/master@{#404467}

Powered by Google App Engine
This is Rietveld 408576698