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 1c35ba2bd83318cada9c2f72e050740c8592703a..148b5c2609d838cf467c853cfc2bd44a22a0ab76 100644 |
--- a/components/autofill/core/common/password_form_fill_data.cc |
+++ b/components/autofill/core/common/password_form_fill_data.cc |
@@ -3,8 +3,6 @@ |
// 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" |
@@ -17,8 +15,11 @@ |
bool UsernamesCollectionKey::operator<( |
const UsernamesCollectionKey& other) const { |
- return std::tie(username, password, realm) < |
- std::tie(other.username, other.password, other.realm); |
+ if (username != other.username) |
+ return username < other.username; |
+ if (password != other.password) |
+ return password < other.password; |
+ return realm < other.realm; |
} |
PasswordFormFillData::PasswordFormFillData() |