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

Issue 1899893002: Card unmasking without form filling (Closed)

Created:
4 years, 8 months ago by please use gerrit instead
Modified:
4 years, 8 months ago
Reviewers:
Mathieu, Ted C
CC:
chromium-reviews, rouslan+autofill_chromium.org, browser-components-watch_chromium.org, jdonnelly+autofillwatch_chromium.org, bondd+autofillwatch_chromium.org, vabr+watchlistautofill_chromium.org, estade+watch_chromium.org, Justin Donnelly
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Card unmasking without form filling This patch enables users of Autofill Manager to unmask credit cards even when a credit card form is not being filled. This is accomplished by refactoring the card unmasking functionality into its own class FullCardRequest, owned by PersonalDataManager. The FullCardRequest class is used to retrieve the full PAN and CVC of the card. If the card is already unmasked, the user is still prompted for the CVC, but there's no unmasking. This is primarily useful for PaymentRequest, which provides the full PAN and the CVC of a card to the JavaScript API. Only one unmask request per Autofill Manager can be active at a time. (There's one Autofill Manager per frame.) The patch also exposes the card unmasking functionality to Java callers through PersonalDataManager. Because there's only one instance of PersonalDataManager in Java, only one unmask request from Java can be active a time. BUG=587995 Committed: https://crrev.com/f65036c8c638497a88eed1a7278b2d3022d39e4e Cr-Commit-Position: refs/heads/master@{#389520}

Patch Set 1 #

Total comments: 3

Patch Set 2 : Refactor our FullCardRequest #

Patch Set 3 : Weak ptr (does not fill cvc) #

Patch Set 4 : weak ptr #

Patch Set 5 : Moar tests #

Total comments: 12

Patch Set 6 : Address comments #

Total comments: 4

Patch Set 7 : Clean up #

Patch Set 8 : addressed comments #

Patch Set 9 : Fix typo in comment #

Patch Set 10 : Use the credit card number field in metrics tests, because ios single-field form fill will not requ… #

Unified diffs Side-by-side diffs Delta from patch set Stats (+846 lines, -95 lines) Patch
M chrome/android/java/src/org/chromium/chrome/browser/autofill/PersonalDataManager.java View 1 2 3 4 5 6 7 4 chunks +29 lines, -1 line 0 comments Download
M chrome/browser/autofill/android/personal_data_manager_android.h View 1 2 3 4 5 6 7 1 chunk +8 lines, -0 lines 0 comments Download
M chrome/browser/autofill/android/personal_data_manager_android.cc View 1 2 3 4 5 6 7 4 chunks +87 lines, -0 lines 0 comments Download
M components/autofill.gypi View 1 2 3 4 5 1 chunk +2 lines, -0 lines 0 comments Download
M components/autofill/core/browser/BUILD.gn View 1 2 3 4 5 2 chunks +3 lines, -0 lines 0 comments Download
M components/autofill/core/browser/autofill_external_delegate.cc View 1 2 3 1 chunk +2 lines, -1 line 0 comments Download
M components/autofill/core/browser/autofill_external_delegate_unittest.cc View 1 2 3 2 chunks +5 lines, -3 lines 0 comments Download
M components/autofill/core/browser/autofill_manager.h View 1 2 3 4 5 8 chunks +21 lines, -13 lines 0 comments Download
M components/autofill/core/browser/autofill_manager.cc View 1 2 3 4 5 10 chunks +37 lines, -61 lines 0 comments Download
M components/autofill/core/browser/autofill_manager_unittest.cc View 1 2 3 4 5 6 3 chunks +10 lines, -11 lines 0 comments Download
M components/autofill/core/browser/autofill_metrics_unittest.cc View 1 2 3 4 5 6 7 8 9 5 chunks +5 lines, -5 lines 0 comments Download
A components/autofill/core/browser/payments/full_card_request.h View 1 2 3 4 5 1 chunk +94 lines, -0 lines 0 comments Download
A components/autofill/core/browser/payments/full_card_request.cc View 1 2 3 4 5 1 chunk +134 lines, -0 lines 0 comments Download
A components/autofill/core/browser/payments/full_card_request_unittest.cc View 1 2 3 4 5 6 7 8 1 chunk +408 lines, -0 lines 0 comments Download
M components/components_tests.gyp View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 24 (10 generated)
please use gerrit instead
mathp@, ptal.
4 years, 8 months ago (2016-04-18 22:34:32 UTC) #5
Mathieu
I saw only 2 tests mention "unmask" in autofill_manager_unittest. The code is non trivial (just ...
4 years, 8 months ago (2016-04-19 13:24:25 UTC) #6
please use gerrit instead
mathp@, ptal patch 5.
4 years, 8 months ago (2016-04-22 04:05:36 UTC) #9
Mathieu
Hi rouslan, love the latest patch, just a few questions. Thanks https://codereview.chromium.org/1899893002/diff/140001/chrome/browser/autofill/android/personal_data_manager_android.h File chrome/browser/autofill/android/personal_data_manager_android.h (right): ...
4 years, 8 months ago (2016-04-22 17:58:36 UTC) #10
please use gerrit instead
mathp@, ptal patch 6. https://codereview.chromium.org/1899893002/diff/140001/chrome/browser/autofill/android/personal_data_manager_android.h File chrome/browser/autofill/android/personal_data_manager_android.h (right): https://codereview.chromium.org/1899893002/diff/140001/chrome/browser/autofill/android/personal_data_manager_android.h#newcode106 chrome/browser/autofill/android/personal_data_manager_android.h:106: // Gets the card CVC ...
4 years, 8 months ago (2016-04-22 20:50:19 UTC) #11
Mathieu
lgtm, thanks a lot
4 years, 8 months ago (2016-04-22 21:18:26 UTC) #12
please use gerrit instead
tedchoc@, ptal PersonalDataManager.java in patch 6.
4 years, 8 months ago (2016-04-22 23:02:10 UTC) #14
Ted C
You can see similar comments I made on a recent change about passing down the ...
4 years, 8 months ago (2016-04-22 23:34:56 UTC) #15
please use gerrit instead
tedchoc@, ptal patch 8. jdonnelly@, as the resident iOS guru, can you help me figure ...
4 years, 8 months ago (2016-04-23 01:17:43 UTC) #16
please use gerrit instead
On 2016/04/23 01:17:43, Rouslan wrote: > jdonnelly@, as the resident iOS guru, can you help ...
4 years, 8 months ago (2016-04-23 02:30:42 UTC) #17
Ted C
lgtm
4 years, 8 months ago (2016-04-25 16:01:07 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1899893002/240001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1899893002/240001
4 years, 8 months ago (2016-04-25 16:06:48 UTC) #21
commit-bot: I haz the power
Committed patchset #10 (id:240001)
4 years, 8 months ago (2016-04-25 18:35:51 UTC) #22
commit-bot: I haz the power
4 years, 8 months ago (2016-04-25 18:38:14 UTC) #24
Message was sent while issue was closed.
Patchset 10 (id:??) landed as
https://crrev.com/f65036c8c638497a88eed1a7278b2d3022d39e4e
Cr-Commit-Position: refs/heads/master@{#389520}

Powered by Google App Engine
This is Rietveld 408576698