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

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

Issue 1401723002: Show source of affiliated matches in the drop-down password suggestions list. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Test fix Created 5 years, 2 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 8cd883d34e88a111587217345358e7c6ce3daace..252916e5a9d1a49f1740bf1f7464a6a943b2be34 100644
--- a/components/password_manager/core/browser/password_store.cc
+++ b/components/password_manager/core/browser/password_store.cc
@@ -407,6 +407,8 @@ void PasswordStore::GetLoginsWithAffiliationsImpl(
android_form.signon_realm = realm;
ScopedVector<PasswordForm> more_results(
FillMatchingLogins(android_form, DISALLOW_PROMPT));
+ for (PasswordForm* form : more_results)
+ 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(); });

Powered by Google App Engine
This is Rietveld 408576698