Commit cbf50724 authored by John Z Wu's avatar John Z Wu Committed by Commit Bot

Implement some default behaviors for card name/expiration fixers

- Just use the inferred name or empty string
- Always cancel the expiration flow

Change-Id: I8e017deebcdd417347534d03740d60e16d372003
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2441846Reviewed-by: default avatarHiroshi Ichikawa <ichikawa@chromium.org>
Commit-Queue: John Wu <jzw@chromium.org>
Cr-Commit-Position: refs/heads/master@{#812741}
parent 55b53119
...@@ -158,6 +158,16 @@ ...@@ -158,6 +158,16 @@
completion:nil]; completion:nil];
} }
- (void)autofillController:(CWVAutofillController*)autofillController
confirmCreditCardNameWithFixer:(CWVCreditCardNameFixer*)fixer {
[fixer acceptWithName:fixer.inferredCardHolderName ?: @""];
}
- (void)autofillController:(CWVAutofillController*)autofillController
confirmCreditCardExpirationWithFixer:(CWVCreditCardExpirationFixer*)fixer {
[fixer cancel];
}
- (void)autofillController:(CWVAutofillController*)autofillController - (void)autofillController:(CWVAutofillController*)autofillController
decideSavePolicyForPassword:(CWVPassword*)password decideSavePolicyForPassword:(CWVPassword*)password
decisionHandler:(void (^)(CWVPasswordUserDecision decision)) decisionHandler:(void (^)(CWVPasswordUserDecision decision))
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment