chrome/browser/ui/autofill/autofill_dialog_controller.cc
// Returns true if |input| should be shown when |field| has been requested.
Returns true if |input| should be shown when |field| has been requested.
Returns true if |input| should be shown when |field| has been requested .
bool InputTypeMatchesFieldType(const DetailInput& input,
                               const AutofillField& field) {
  if (field.type() == CREDIT_CARD_EXP_4_DIGIT_YEAR ||
      field.type() == CREDIT_CARD_EXP_2_DIGIT_YEAR ||
      field.type() == CREDIT_CARD_EXP_DATE_4_DIGIT_YEAR ||
      field.type() == CREDIT_CARD_EXP_DATE_2_DIGIT_YEAR ||
      field.type() == CREDIT_CARD_EXP_MONTH) {
    return input.type == CREDIT_CARD_EXP_4_DIGIT_YEAR ||
           input.type == CREDIT_CARD_EXP_MONTH;
  }
  return input.type == field.type();
}
bool InputTypeMatchesFieldType ( const DetailInput & input , const AutofillField & field ) { if ( field . type ( ) == CREDIT_CARD_EXP_4_DIGIT_YEAR || field . type ( ) == CREDIT_CARD_EXP_2_DIGIT_YEAR || field . type ( ) == CREDIT_CARD_EXP_DATE_4_DIGIT_YEAR || field . type ( ) == CREDIT_CARD_EXP_DATE_2_DIGIT_YEAR || field . type ( ) == CREDIT_CARD_EXP_MONTH ) { return input . type == CREDIT_CARD_EXP_4_DIGIT_YEAR || input . type == CREDIT_CARD_EXP_MONTH ; } return input . type == field . type ( ) ; }
Returns true if |input| should be shown when |field| has been requested.
Returns true if |input| should be shown when |field| has been requested .
// If any credit card expiration info is asked for, show both month and year // inputs.