Description[rac] Show amex-specific cvc hint for saved autofill card
This patch uses the amex-specific cvc icon for saved autofill card.
Autofill card stores and returns the credit card type in human-readable
format (eg "Visa"), but AutofillDailogControllerImpl expected a
WebKit-readable string instead (eg "visaCC"). This discrepancy caused the
autofill dialog to show a generic cvc icon for a saved amex card.
This patch changes WalletItems to return human-readable credit card types
to match Autofill. The patch also changes AutofillDailogControllerImpl to
check for human-readable format instead of the Webkit-readable format. As
a result, the saved autofill card now displays the amex-specific cvc icon
for a saved amex card.
Manual tests:
1) Save two cards in autofill: amex and visa.
2) Invoke rac dialog and switch to autofill mode.
3) Switch to saved amex card: cvc icon should be amex-specific.
4) Switch to saved visa card: cvc icon should be generic.
This patch depends on http://codereview.chromium.org/23756007.
BUG=250853
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=223999
Patch Set 1 #
Messages
Total messages: 4 (0 generated)
|