Index: webkit/forms/form_field.cc |
diff --git a/webkit/forms/form_field.cc b/webkit/forms/form_field.cc |
index 1c9a0a715d6b2e2a2c22e5ef08c48f4843c96cde..40124de03166fba42afcd45feb99e49d1119676b 100644 |
--- a/webkit/forms/form_field.cc |
+++ b/webkit/forms/form_field.cc |
@@ -44,6 +44,13 @@ bool FormField::operator!=(const FormField& field) const { |
return !operator==(field); |
} |
+bool FormField::operator<(const FormField& field) const { |
+ if (label == field.label) |
+ return name < field.name; |
+ |
+ return label < field.label; |
+} |
+ |
std::ostream& operator<<(std::ostream& os, const FormField& field) { |
return os |
<< UTF16ToUTF8(field.label) |