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

Unified Diff: components/password_manager/core/browser/password_store.cc

Issue 1723583004: CREDENTIAL: Convert federations from URLs to origins throughout. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: iOS2 Created 4 years, 10 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
Index: components/password_manager/core/browser/password_store.cc
diff --git a/components/password_manager/core/browser/password_store.cc b/components/password_manager/core/browser/password_store.cc
index b0c45ebc5298c7a50187a3a8a4844a74f1cda727..1d5b9e60e8c60f466cab7378106c5482fd3f4969 100644
--- a/components/password_manager/core/browser/password_store.cc
+++ b/components/password_manager/core/browser/password_store.cc
@@ -434,7 +434,7 @@ void PasswordStore::GetLoginsWithAffiliationsImpl(
form->is_affiliation_based_match = true;
ScopedVector<PasswordForm>::iterator it_first_federated = std::partition(
more_results.begin(), more_results.end(),
- [](PasswordForm* form) { return form->federation_url.is_empty(); });
+ [](PasswordForm* form) { return form->federation_origin.unique(); });
more_results.erase(it_first_federated, more_results.end());
password_manager_util::TrimUsernameOnlyCredentials(&more_results);
results.insert(results.end(), more_results.begin(), more_results.end());

Powered by Google App Engine
This is Rietveld 408576698