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

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

Issue 2568743004: [Sync] Stop deleting LevelDB files when deleting Directory (Closed)
Patch Set: Only delete top level files in sync data folder. 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
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;

Powered by Google App Engine
This is Rietveld 408576698