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

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

Issue 1823333003: [Password Manager] Human readable origins for blacklisted Android credentials (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@android_credentials
Patch Set: Created 4 years, 9 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 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));

Powered by Google App Engine
This is Rietveld 408576698