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

Unified Diff: webkit/forms/form_field.cc

Issue 9600038: Add Password Autofill Manager to New Autofill (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 8 years, 9 months 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
« webkit/forms/form_field.h ('K') | « webkit/forms/form_field.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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)
« webkit/forms/form_field.h ('K') | « webkit/forms/form_field.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698