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

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

Issue 2899083004: Implement PasswordStore::GetLoginsForSameOrganizationName. (Closed)
Patch Set: Rebase. Created 3 years, 7 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_default.cc
diff --git a/components/password_manager/core/browser/password_store_default.cc b/components/password_manager/core/browser/password_store_default.cc
index 037f961d6c9e1c4ca2ba400dca181a7dcfe2a690..2e05c0a7c3d88dceb9a43c9b671e5953ffe891cf 100644
--- a/components/password_manager/core/browser/password_store_default.cc
+++ b/components/password_manager/core/browser/password_store_default.cc
@@ -182,6 +182,16 @@ PasswordStoreDefault::FillMatchingLogins(const FormDigest& form) {
return matched_forms;
}
+std::vector<std::unique_ptr<PasswordForm>>
+PasswordStoreDefault::FillLoginsForSameOrganizationName(
+ const std::string& signon_realm) {
+ std::vector<std::unique_ptr<PasswordForm>> forms;
+ if (login_db_ &&
+ !login_db_->GetLoginsForSameOrganizationName(signon_realm, &forms))
+ return std::vector<std::unique_ptr<PasswordForm>>();
+ return forms;
+}
+
bool PasswordStoreDefault::FillAutofillableLogins(
std::vector<std::unique_ptr<PasswordForm>>* forms) {
DCHECK(GetBackgroundTaskRunner()->BelongsToCurrentThread());

Powered by Google App Engine
This is Rietveld 408576698