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

Unified Diff: components/sync/driver/glue/sync_backend_host_core.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
Index: components/sync/driver/glue/sync_backend_host_core.h
diff --git a/components/sync/driver/glue/sync_backend_host_core.h b/components/sync/driver/glue/sync_backend_host_core.h
index 71eb86c1dc58af1cc0b4c2f53958a139a06bffa1..27e0d57efd3f019017c18c011b1ac1fb21372873 100644
--- a/components/sync/driver/glue/sync_backend_host_core.h
+++ b/components/sync/driver/glue/sync_backend_host_core.h
@@ -39,7 +39,7 @@ class SyncBackendHostCore
public TypeDebugInfoObserver {
public:
SyncBackendHostCore(const std::string& name,
- const base::FilePath& sync_data_folder_path,
+ const base::FilePath& sync_data_folder,
const base::WeakPtr<SyncBackendHostImpl>& backend);
// MemoryDumpProvider implementation.
@@ -173,11 +173,6 @@ class SyncBackendHostCore
// Disables forwarding of directory type debug counters.
void DisableDirectoryTypeDebugInfoForwarding();
- // Delete the sync data folder to cleanup backend data. Happens the first
- // time sync is enabled for a user (to prevent accidentally reusing old
- // sync databases), as well as shutdown when you're no longer syncing.
- void DeleteSyncDataFolder();
-
// Tell the sync manager to persist its state by writing to disk.
// Called on the sync thread, both by a timer and, on Android, when the
// application is backgrounded.
@@ -206,7 +201,7 @@ class SyncBackendHostCore
const std::string name_;
// Path of the folder that stores the sync data files.
- const base::FilePath sync_data_folder_path_;
+ const base::FilePath sync_data_folder_;
// Our parent SyncBackendHostImpl.
WeakHandle<SyncBackendHostImpl> host_;
« no previous file with comments | « components/browser_sync/profile_sync_service.cc ('k') | components/sync/driver/glue/sync_backend_host_core.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698