Index: chrome/browser/autofill/autofill_field.cc |
diff --git a/chrome/browser/autofill/autofill_field.cc b/chrome/browser/autofill/autofill_field.cc |
index 7058c53453695da93af25d5986ed07d907d9e211..974af94bd5f4631379da3b5c22a84e442f90a53b 100644 |
--- a/chrome/browser/autofill/autofill_field.cc |
+++ b/chrome/browser/autofill/autofill_field.cc |
@@ -43,7 +43,8 @@ AutofillField::AutofillField(const FormFieldData& field, |
AutofillField::~AutofillField() {} |
void AutofillField::set_heuristic_type(AutofillFieldType type) { |
- if (type >= 0 && type < MAX_VALID_FIELD_TYPE) { |
+ if (type >= 0 && type < MAX_VALID_FIELD_TYPE && |
+ type != FIELD_WITH_DEFAULT_VALUE) { |
heuristic_type_ = type; |
} else { |
NOTREACHED(); |