DescriptionCard 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… #Messages
Total messages: 24 (10 generated)
|