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

Unified Diff: components/sync/syncable/directory.h

Issue 2568743004: [Sync] Stop deleting LevelDB files when deleting Directory (Closed)
Patch Set: Updated for Max's comments. Created 4 years 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
« no previous file with comments | « components/sync/driver/sync_service_base.cc ('k') | components/sync/syncable/directory.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/sync/syncable/directory.h
diff --git a/components/sync/syncable/directory.h b/components/sync/syncable/directory.h
index d3bd42938b6362149a7ecc5ff1acb7e163a5ebfc..c50407881e0e2370d02033cd27df63875b1b552c 100644
--- a/components/sync/syncable/directory.h
+++ b/components/sync/syncable/directory.h
@@ -527,6 +527,12 @@ class Directory {
Kernel* kernel();
const Kernel* kernel() const;
+ // Delete the directory database files from the sync data folder to cleanup
+ // backend data. This should happen the first time sync is enabled for a user,
+ // to prevent accidentally reusing old sync data, as well as shutdown when the
+ // user is no longer syncing.
+ static void DeleteDirectoryFiles(const base::FilePath& directory_path);
+
private:
friend class SyncableDirectoryTest;
friend class syncer::TestUserShare;
« no previous file with comments | « components/sync/driver/sync_service_base.cc ('k') | components/sync/syncable/directory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698