| Index: chrome/browser/autofill/form_structure.cc
|
| ===================================================================
|
| --- chrome/browser/autofill/form_structure.cc (revision 39307)
|
| +++ chrome/browser/autofill/form_structure.cc (working copy)
|
| @@ -12,6 +12,7 @@
|
| #include "chrome/browser/autofill/field_types.h"
|
| #include "chrome/browser/autofill/form_field.h"
|
| #include "third_party/libjingle/files/talk/xmllite/xmlelement.h"
|
| +#include "webkit/glue/form_data.h"
|
| #include "webkit/glue/form_field.h"
|
| #include "webkit/glue/form_field_values.h"
|
|
|
| @@ -202,6 +203,20 @@
|
| return fields_.size() - 1;
|
| }
|
|
|
| +bool FormStructure::operator!=(const FormData& form) const {
|
| + // TODO(jhawkins): Is this enough to differentiate a form?
|
| + if (UTF8ToUTF16(form_name_) != form.name ||
|
| + source_url_ != form.origin ||
|
| + target_url_ != form.action) {
|
| + return true;
|
| + }
|
| +
|
| + // TODO(jhawkins): Compare field names, IDs and labels once we have labels
|
| + // set up.
|
| +
|
| + return false;
|
| +}
|
| +
|
| void FormStructure::GetHeuristicFieldInfo(FieldTypeMap* field_type_map) {
|
| FormFieldSet fields = FormFieldSet(this);
|
|
|
|
|