Index: chrome/browser/autofill/name_field.cc |
diff --git a/chrome/browser/autofill/name_field.cc b/chrome/browser/autofill/name_field.cc |
index 8163d7aa9d3d1b8c5946b0ff73ab7f70e3a0a56d..69a7b43cb32c2ca0697fc6fcf81c62d16210c0df 100644 |
--- a/chrome/browser/autofill/name_field.cc |
+++ b/chrome/browser/autofill/name_field.cc |
@@ -4,6 +4,7 @@ |
#include "chrome/browser/autofill/name_field.h" |
+#include "base/logging.h" |
#include "base/scoped_ptr.h" |
#include "base/string_util.h" |
#include "base/utf_string_conversions.h" |
@@ -18,6 +19,12 @@ NameField* NameField::Parse(std::vector<AutoFillField*>::const_iterator* iter, |
return field; |
} |
+bool FullNameField::GetFieldInfo(FieldTypeMap* field_type_map) const { |
+ bool ok = Add(field_type_map, field_, AutoFillType(NAME_FULL)); |
+ DCHECK(ok); |
+ return true; |
+} |
+ |
FullNameField* FullNameField::Parse( |
std::vector<AutoFillField*>::const_iterator* iter) { |
// Exclude labels containing the string "username", which typically |
@@ -37,6 +44,10 @@ FullNameField* FullNameField::Parse( |
return NULL; |
} |
+FullNameField::FullNameField(AutoFillField* field) |
+ : field_(field) { |
+} |
+ |
FirstLastNameField* FirstLastNameField::Parse1( |
std::vector<AutoFillField*>::const_iterator* iter) { |
// Some pages (e.g. Overstock_comBilling.html, SmithsonianCheckout.html) |