Index: chrome/browser/ui/autofill/autofill_dialog_controller_impl.cc |
diff --git a/chrome/browser/ui/autofill/autofill_dialog_controller_impl.cc b/chrome/browser/ui/autofill/autofill_dialog_controller_impl.cc |
index fcf97d5a099c75cd7e4aa604e9ba9dd4096a2a7c..007fe44b77ec72ef9f59c08043aaf0d867a99c01 100644 |
--- a/chrome/browser/ui/autofill/autofill_dialog_controller_impl.cc |
+++ b/chrome/browser/ui/autofill/autofill_dialog_controller_impl.cc |
@@ -441,7 +441,8 @@ void AutofillDialogControllerImpl::Show() { |
bool has_credit_card_field = false; |
for (size_t i = 0; i < form_structure_.field_count(); ++i) { |
AutofillType type = form_structure_.field(i)->Type(); |
- if (type.html_type() != HTML_TYPE_UNKNOWN && type.group() == CREDIT_CARD) { |
+ if (type.html_type() != HTML_TYPE_UNSPECIFIED && |
+ type.group() == CREDIT_CARD) { |
has_credit_card_field = true; |
break; |
} |