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

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

Issue 1072413003: Add foundation for trimming the AffiliationDatabase. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 8 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/affiliation_backend.h
diff --git a/components/password_manager/core/browser/affiliation_backend.h b/components/password_manager/core/browser/affiliation_backend.h
index 88dce8d6140201648236445b6115ff95353fa240..a2af115d405ade067bfc82eb62acb6654bbf01de 100644
--- a/components/password_manager/core/browser/affiliation_backend.h
+++ b/components/password_manager/core/browser/affiliation_backend.h
@@ -79,6 +79,10 @@ class AffiliationBackend : public FacetManagerHost,
const base::Time& keep_fresh_until);
void TrimCache();
+ // Deletes the cache database file at |db_path|, and all auxiliary files. The
+ // database must be closed before calling this.
+ static void DeleteCache(const base::FilePath& db_path);
+
private:
friend class AffiliationBackendTest;

Powered by Google App Engine
This is Rietveld 408576698