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

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

Issue 2565173002: Remove ScopedVector from PasswordStoreX (Closed)
Patch Set: back_inserter, no =nullptr, drop autofill:: Created 4 years 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
Index: components/autofill/core/common/password_form.cc
diff --git a/components/autofill/core/common/password_form.cc b/components/autofill/core/common/password_form.cc
index 17db56672b2edbd31e6f92b9463a359519a4c48a..3969e1ff4e4a41f9adba4503b0f339986e3e0a6c 100644
--- a/components/autofill/core/common/password_form.cc
+++ b/components/autofill/core/common/password_form.cc
@@ -145,8 +145,9 @@ bool ArePasswordFormUniqueKeyEqual(const PasswordForm& left,
left.password_element == right.password_element);
}
-bool LessThanUniqueKey::operator()(const PasswordForm* left,
- const PasswordForm* right) const {
+bool LessThanUniqueKey::operator()(
+ const std::unique_ptr<PasswordForm>& left,
+ const std::unique_ptr<PasswordForm>& right) const {
int result = left->signon_realm.compare(right->signon_realm);
if (result)
return result < 0;
« no previous file with comments | « components/autofill/core/common/password_form.h ('k') | components/password_manager/core/browser/password_manager_util.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698