| 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 df785ddde42d81b65fa738eaa66bdb8df2b42085..395abb950d49a63dda6f631356c1d58d637154a3 100644
|
| --- a/components/password_manager/core/browser/password_store.cc
|
| +++ b/components/password_manager/core/browser/password_store.cc
|
| @@ -205,6 +205,12 @@ void PasswordStore::GetBlacklistLogins(PasswordStoreConsumer* consumer) {
|
| Schedule(&PasswordStore::GetBlacklistLoginsImpl, consumer);
|
| }
|
|
|
| +void PasswordStore::GetBlacklistLoginsWithAffiliatedRealms(
|
| + PasswordStoreConsumer* consumer) {
|
| + Schedule(&PasswordStore::GetBlacklistLoginsWithAffiliatedRealmsImpl,
|
| + consumer);
|
| +}
|
| +
|
| void PasswordStore::ReportMetrics(const std::string& sync_username,
|
| bool custom_passphrase_sync_enabled) {
|
| scoped_refptr<base::SingleThreadTaskRunner> task_runner(
|
| @@ -448,6 +454,19 @@ void PasswordStore::GetBlacklistLoginsImpl(
|
| request->NotifyConsumerWithResults(std::move(obtained_forms));
|
| }
|
|
|
| +void PasswordStore::GetBlacklistLoginsWithAffiliatedRealmsImpl(
|
| + scoped_ptr<GetLoginsRequest> request) {
|
| + ScopedVector<PasswordForm> obtained_forms;
|
| + if (!FillBlacklistLogins(&obtained_forms))
|
| + obtained_forms.clear();
|
| + // Since AffiliatedMatchHelper's requests should be sent from UI thread,
|
| + // post a request to UI thread.
|
| + main_thread_runner_->PostTask(
|
| + FROM_HERE,
|
| + base::Bind(&PasswordStore::InjectAffiliatedWebRealms, this,
|
| + base::Passed(&obtained_forms), base::Passed(&request)));
|
| +}
|
| +
|
| void PasswordStore::NotifySiteStats(const GURL& origin_domain,
|
| scoped_ptr<GetLoginsRequest> request) {
|
| request->NotifyWithSiteStatistics(GetSiteStatsImpl(origin_domain));
|
|
|