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

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

Issue 1072413003: Add foundation for trimming the AffiliationDatabase. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Keep noncontroversial parts. Created 5 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.h
diff --git a/components/password_manager/core/browser/password_store.h b/components/password_manager/core/browser/password_store.h
index c1194cfc2792a8e9e7f47d19ebc344f4e841a5d3..c49aecb814192ccf16cb21da63bf5e09ab98ff2c 100644
--- a/components/password_manager/core/browser/password_store.h
+++ b/components/password_manager/core/browser/password_store.h
@@ -102,6 +102,10 @@ class PasswordStore : protected PasswordStoreSync,
virtual void RemoveLoginsSyncedBetween(base::Time delete_begin,
base::Time delete_end);
+ // Removes cached affiliation data that is no longer needed; provided that
+ // affiliation-based matching is enabled.
+ void TrimAffiliationCache();
+
// Searches for a matching PasswordForm, and notifies |consumer| on
// completion. The request will be cancelled if the consumer is destroyed.
// |prompt_policy| indicates whether it's permissible to prompt the user to

Powered by Google App Engine
This is Rietveld 408576698