Rename card 'type' into 'issuer network.'
Autofill and payments code is using the word 'type' to mean 'issuer
network,' e.g., Visa, MasterCard, AmEx. In order to differentiate
between credit/debit/prepaid card types in an upcoming patch, the
current instances of the word 'type' need to be renamed to 'issuer
network.' The changes are in:
1) Autofill table.
2) Method names.
3) Variable names.
4) Comments.
The catalog of renames:
----------------------------------------------------------
| BEFORE | AFTER |
----------------------------------------------------------
| AcceptedCardTypes | AcceptedIssuerNetworks |
| basic_card_payment_type | basic_card_issuer_network |
| BasicCardPaymentType | BasicCardIssuerNetwork |
| "card type" | "card issuer network" |
| CardTypeInfo | CardIssuerNetwork |
| card_type | issuer_network |
| CardTypes | CardIssuerNetworks |
| CreditCardType | CardNetwork |
| CreditCard::type | CreditCard::network |
| masked_credit_cards.type | masked_credit_cards.network |
| TypeAndLastFourDigits | NetworkAndLastFourDigits |
| TypeForDisplay | NetworkForDisplay |
| TypeForFill | NetworkForFill |
| TypeForMaskedCard | NetworkForMaskedCard |
| CardTypeForBasicCardPaymentType | |
| | IssuerNetworkForBasicCardIssuerNetwork |
----------------------------------------------------------
Bonus:
* This patch has been run through `git cl lint` and `git cl format` to
improve the code quality of the affected files.
* autofill_sync_constants have been removed because they were not used
anywhere.
BUG=602665
Review-Url: https://codereview.chromium.org/2844463004
Cr-Commit-Position: refs/heads/master@{#468350}
56 files changed