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

Unified Diff: chrome/browser/password_manager/password_store_x.cc

Issue 2132063002: Implement origin-based deletion for password manager's auto-signin bit. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed PasswordStoreMac Created 4 years, 5 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: chrome/browser/password_manager/password_store_x.cc
diff --git a/chrome/browser/password_manager/password_store_x.cc b/chrome/browser/password_manager/password_store_x.cc
index 1cfa3d09bd276686601fb22814ba18ca85b49ebf..75f824472c95dcd73ddc534cf24c78e6fe359691 100644
--- a/chrome/browser/password_manager/password_store_x.cc
+++ b/chrome/browser/password_manager/password_store_x.cc
@@ -161,14 +161,16 @@ PasswordStoreChangeList PasswordStoreX::RemoveLoginsSyncedBetweenImpl(
return changes;
}
-PasswordStoreChangeList PasswordStoreX::DisableAutoSignInForAllLoginsImpl() {
+PasswordStoreChangeList PasswordStoreX::DisableAutoSignInForOriginsImpl(
+ const base::Callback<bool(const GURL&)>& origin_filter) {
CheckMigration();
PasswordStoreChangeList changes;
if (use_native_backend() &&
- backend_->DisableAutoSignInForAllLogins(&changes)) {
+ backend_->DisableAutoSignInForOrigins(origin_filter, &changes)) {
allow_fallback_ = false;
} else if (allow_default_store()) {
- changes = PasswordStoreDefault::DisableAutoSignInForAllLoginsImpl();
+ changes =
+ PasswordStoreDefault::DisableAutoSignInForOriginsImpl(origin_filter);
}
return changes;
}

Powered by Google App Engine
This is Rietveld 408576698