Index: components/autofill/core/common/password_form_fill_data.cc |
diff --git a/components/autofill/core/common/password_form_fill_data.cc b/components/autofill/core/common/password_form_fill_data.cc |
index 148b5c2609d838cf467c853cfc2bd44a22a0ab76..1c35ba2bd83318cada9c2f72e050740c8592703a 100644 |
--- a/components/autofill/core/common/password_form_fill_data.cc |
+++ b/components/autofill/core/common/password_form_fill_data.cc |
@@ -3,6 +3,8 @@ |
// found in the LICENSE file. |
#include "components/autofill/core/common/password_form_fill_data.h" |
+ |
+#include <tuple> |
#include "base/strings/utf_string_conversions.h" |
#include "components/autofill/core/common/form_field_data.h" |
@@ -15,11 +17,8 @@ |
bool UsernamesCollectionKey::operator<( |
const UsernamesCollectionKey& other) const { |
- if (username != other.username) |
- return username < other.username; |
- if (password != other.password) |
- return password < other.password; |
- return realm < other.realm; |
+ return std::tie(username, password, realm) < |
+ std::tie(other.username, other.password, other.realm); |
} |
PasswordFormFillData::PasswordFormFillData() |