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

Unified Diff: components/password_manager/core/browser/password_store.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.cc
diff --git a/components/password_manager/core/browser/password_store.cc b/components/password_manager/core/browser/password_store.cc
index a9d543a44e7ae65f303922783137bcfece7372fe..0575e5de99af3b02d486eb3bd97917d064ffcbaa 100644
--- a/components/password_manager/core/browser/password_store.cc
+++ b/components/password_manager/core/browser/password_store.cc
@@ -225,6 +225,14 @@ void PasswordStore::GetLogins(const FormDigest& form,
}
}
+void PasswordStore::GetLoginsForSameOrganizationName(
+ const std::string& signon_realm,
+ PasswordStoreConsumer* consumer) {
+ std::unique_ptr<GetLoginsRequest> request(new GetLoginsRequest(consumer));
+ ScheduleTask(base::Bind(&PasswordStore::GetLoginsForSameOrganizationNameImpl,
+ this, signon_realm, base::Passed(&request)));
+}
+
void PasswordStore::GetAutofillableLogins(PasswordStoreConsumer* consumer) {
Schedule(&PasswordStore::GetAutofillableLoginsImpl, consumer);
}
@@ -499,6 +507,13 @@ void PasswordStore::DisableAutoSignInForOriginsInternal(
main_thread_runner_->PostTask(FROM_HERE, completion);
}
+void PasswordStore::GetLoginsForSameOrganizationNameImpl(
+ const std::string& signon_realm,
+ std::unique_ptr<GetLoginsRequest> request) {
+ request->NotifyConsumerWithResults(
+ FillLoginsForSameOrganizationName(signon_realm));
+}
+
void PasswordStore::GetAutofillableLoginsImpl(
std::unique_ptr<GetLoginsRequest> request) {
std::vector<std::unique_ptr<PasswordForm>> obtained_forms;

Powered by Google App Engine
This is Rietveld 408576698