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

Issue 2611863002: Refactors cvc and expiration date validation in CC upload logic as well as unmask prompt. (Closed)

Created:
3 years, 11 months ago by Moe
Modified:
3 years, 11 months ago
Reviewers:
Mathieu
CC:
chromium-reviews, rouslan+autofill_chromium.org, sebsg+autofillwatch_chromium.org, browser-components-watch_chromium.org, mathp+autofillwatch_chromium.org, vabr+watchlistautofill_chromium.org, estade+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Refactors cvc and expiration date validation in CC upload logic as well as unmask prompt. BUG=677519 Signed-off-by: Mohamad Ahmadi <mahmadi@chromium.org>; Review-Url: https://codereview.chromium.org/2611863002 Cr-Commit-Position: refs/heads/master@{#441663} Committed: https://chromium.googlesource.com/chromium/src/+/cff22de0743ef3de687e55c376b9733a0ff560a7

Patch Set 1 : Initial #

Total comments: 2

Patch Set 2 : Addressed comment #

Total comments: 8

Patch Set 3 : Addressed comments #

Patch Set 4 : Addressed comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+97 lines, -75 lines) Patch
M components/autofill/core/browser/autofill_manager.cc View 1 2 chunks +3 lines, -2 lines 0 comments Download
M components/autofill/core/browser/autofill_manager_unittest.cc View 1 chunk +53 lines, -0 lines 0 comments Download
M components/autofill/core/browser/ui/card_unmask_prompt_controller_impl.cc View 1 2 3 chunks +8 lines, -18 lines 0 comments Download
M components/autofill/core/browser/validation.h View 1 2 3 2 chunks +3 lines, -5 lines 0 comments Download
M components/autofill/core/browser/validation.cc View 1 2 3 1 chunk +4 lines, -18 lines 0 comments Download
M components/autofill/core/browser/validation_unittest.cc View 1 2 3 6 chunks +26 lines, -32 lines 0 comments Download

Messages

Total messages: 30 (21 generated)
Moe
Hi Mathieu, Please take a look at this CL.
3 years, 11 months ago (2017-01-04 16:12:12 UTC) #9
Mathieu
https://codereview.chromium.org/2611863002/diff/20001/components/autofill/core/browser/autofill_manager.cc File components/autofill/core/browser/autofill_manager.cc (right): https://codereview.chromium.org/2611863002/diff/20001/components/autofill/core/browser/autofill_manager.cc#newcode1168 components/autofill/core/browser/autofill_manager.cc:1168: upload_request_.card.type() == kAmericanExpressCard ? 4 : 3; Could you ...
3 years, 11 months ago (2017-01-04 16:37:22 UTC) #10
Moe
https://codereview.chromium.org/2611863002/diff/20001/components/autofill/core/browser/autofill_manager.cc File components/autofill/core/browser/autofill_manager.cc (right): https://codereview.chromium.org/2611863002/diff/20001/components/autofill/core/browser/autofill_manager.cc#newcode1168 components/autofill/core/browser/autofill_manager.cc:1168: upload_request_.card.type() == kAmericanExpressCard ? 4 : 3; On 2017/01/04 ...
3 years, 11 months ago (2017-01-04 18:07:31 UTC) #16
Mathieu
woot thanks for the cleanup, couple of nits https://codereview.chromium.org/2611863002/diff/40001/components/autofill/core/browser/ui/card_unmask_prompt_controller_impl.cc File components/autofill/core/browser/ui/card_unmask_prompt_controller_impl.cc (right): https://codereview.chromium.org/2611863002/diff/40001/components/autofill/core/browser/ui/card_unmask_prompt_controller_impl.cc#newcode301 components/autofill/core/browser/ui/card_unmask_prompt_controller_impl.cc:301: base::Time::Exploded ...
3 years, 11 months ago (2017-01-04 18:20:17 UTC) #17
Moe
https://codereview.chromium.org/2611863002/diff/40001/components/autofill/core/browser/ui/card_unmask_prompt_controller_impl.cc File components/autofill/core/browser/ui/card_unmask_prompt_controller_impl.cc (right): https://codereview.chromium.org/2611863002/diff/40001/components/autofill/core/browser/ui/card_unmask_prompt_controller_impl.cc#newcode301 components/autofill/core/browser/ui/card_unmask_prompt_controller_impl.cc:301: base::Time::Exploded now; On 2017/01/04 18:20:17, Mathieu Perreault wrote: > ...
3 years, 11 months ago (2017-01-04 18:31:28 UTC) #18
Mathieu
lgtm with comment https://codereview.chromium.org/2611863002/diff/40001/components/autofill/core/browser/validation.cc File components/autofill/core/browser/validation.cc (right): https://codereview.chromium.org/2611863002/diff/40001/components/autofill/core/browser/validation.cc#newcode90 components/autofill/core/browser/validation.cc:90: bool IsValidCreditCardSecurityCode(const base::string16& text) { On ...
3 years, 11 months ago (2017-01-04 19:12:38 UTC) #19
Moe
https://codereview.chromium.org/2611863002/diff/40001/components/autofill/core/browser/validation.cc File components/autofill/core/browser/validation.cc (right): https://codereview.chromium.org/2611863002/diff/40001/components/autofill/core/browser/validation.cc#newcode90 components/autofill/core/browser/validation.cc:90: bool IsValidCreditCardSecurityCode(const base::string16& text) { On 2017/01/04 19:12:37, Mathieu ...
3 years, 11 months ago (2017-01-05 05:25:20 UTC) #21
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/2611863002/80001
3 years, 11 months ago (2017-01-05 15:56:54 UTC) #27
commit-bot: I haz the power
3 years, 11 months ago (2017-01-05 16:05:01 UTC) #30
Message was sent while issue was closed.
Committed patchset #4 (id:80001) as
https://chromium.googlesource.com/chromium/src/+/cff22de0743ef3de687e55c376b9...

Powered by Google App Engine
This is Rietveld 408576698