Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1145)

Unified Diff: chrome/browser/autofill/autofill_field.cc

Issue 11415221: Add support for autofilling radio buttons and checkboxes. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: fix the nit. Created 8 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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();

Powered by Google App Engine
This is Rietveld 408576698