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; |