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

Unified Diff: components/password_manager/core/browser/affiliation_database.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/affiliation_database.h
diff --git a/components/password_manager/core/browser/affiliation_database.h b/components/password_manager/core/browser/affiliation_database.h
index 11d2c0ecede122027ed90ecb10c7c64907ee7451..621add9cd0c416d0779135912bf24539c1b31401 100644
--- a/components/password_manager/core/browser/affiliation_database.h
+++ b/components/password_manager/core/browser/affiliation_database.h
@@ -70,6 +70,10 @@ class AffiliationDatabase {
const AffiliatedFacetsWithUpdateTime& affiliated_facets,
std::vector<AffiliatedFacetsWithUpdateTime>* removed_affiliations);
+ // Deletes the database file at |path| along with all its auxiliary files. The
+ // database must be closed before calling this.
+ static void Delete(const base::FilePath& path);
+
private:
// Creates any tables and indices that do not already exist in the database.
bool CreateTablesAndIndicesIfNeeded();

Powered by Google App Engine
This is Rietveld 408576698