Home | History | Annotate | Download | only in autofill

Lines Matching defs:credit_card

26 #include "chrome/browser/autofill/credit_card.h"
150 bool is_credit_card_field = current_type_group == AutofillType::CREDIT_CARD;
389 (AutofillType(type).group() == AutofillType::CREDIT_CARD);
519 const CreditCard* credit_card = NULL;
524 credit_card = *iter;
528 DCHECK(credit_card);
531 if (!profile && !credit_card)
536 FindSectionBounds(*form_structure, *autofill_field, (credit_card != NULL),
549 DCHECK_NE(AutofillType::CREDIT_CARD,
553 DCHECK_EQ(AutofillType::CREDIT_CARD,
555 FillCreditCardFormField(credit_card, field_type, &(*iter));
595 DCHECK_NE(AutofillType::CREDIT_CARD, field_group_type);
606 DCHECK_EQ(AutofillType::CREDIT_CARD, field_group_type);
607 FillCreditCardFormField(credit_card, field_type, &result.fields[j]);
928 CreditCard* credit_card = *iter;
930 // The value of the stored data for this field type in the |credit_card|.
931 string16 creditcard_field_value = credit_card->GetInfo(type);
935 creditcard_field_value = credit_card->ObfuscatedNumber();
938 if (credit_card->number().empty()) {
940 label = credit_card->GetInfo(CREDIT_CARD_NAME);
943 label.append(credit_card->LastFourDigits());
948 icons->push_back(UTF8ToUTF16(credit_card->type()));
949 unique_ids->push_back(PackGUIDs(GUIDPair(credit_card->guid(), 0),
955 void AutofillManager::FillCreditCardFormField(const CreditCard* credit_card,
958 DCHECK(credit_card);
959 DCHECK_EQ(AutofillType::CREDIT_CARD, AutofillType(type).group());
963 autofill::FillSelectControl(*credit_card, type, field);
966 string16 year = credit_card->GetInfo(CREDIT_CARD_EXP_4_DIGIT_YEAR);
967 string16 month = credit_card->GetInfo(CREDIT_CARD_EXP_MONTH);
969 // Fill the value only if |credit_card| includes both year and month
974 string16 value = credit_card->GetInfo(type);
986 DCHECK_NE(AutofillType::CREDIT_CARD, AutofillType(type).group());