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

Unified Diff: components/autofill/core/common/form_data.cc

Issue 1456263005: Revert of Use std::tie() for operator< in components/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 1 month 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
« no previous file with comments | « no previous file | components/autofill/core/common/form_field_data.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/autofill/core/common/form_data.cc
diff --git a/components/autofill/core/common/form_data.cc b/components/autofill/core/common/form_data.cc
index 3d68639b65e3f2b471cffa751ea09cc74a128179..aaa8178f48ddb83291b674dbbf48bd464a2aabd3 100644
--- a/components/autofill/core/common/form_data.cc
+++ b/components/autofill/core/common/form_data.cc
@@ -3,8 +3,6 @@
// found in the LICENSE file.
#include "components/autofill/core/common/form_data.h"
-
-#include <tuple>
#include "base/base64.h"
#include "base/pickle.h"
@@ -88,9 +86,15 @@
}
bool FormData::operator<(const FormData& form) const {
- return std::tie(name, origin, action, is_form_tag, fields) <
- std::tie(form.name, form.origin, form.action, form.is_form_tag,
- form.fields);
+ if (name != form.name)
+ return name < form.name;
+ if (origin != form.origin)
+ return origin < form.origin;
+ if (action != form.action)
+ return action < form.action;
+ if (is_form_tag != form.is_form_tag)
+ return is_form_tag < form.is_form_tag;
+ return fields < form.fields;
}
std::ostream& operator<<(std::ostream& os, const FormData& form) {
« no previous file with comments | « no previous file | components/autofill/core/common/form_field_data.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698