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

Unified Diff: components/sync/driver/sync_service_base.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/driver/sync_service_base.h
diff --git a/components/sync/driver/sync_service_base.h b/components/sync/driver/sync_service_base.h
index 1f068b1afb6775ab58ffa53e71a3fdeed610c358..736c5277ea403f94e7ac35c31b953a28e647a958 100644
--- a/components/sync/driver/sync_service_base.h
+++ b/components/sync/driver/sync_service_base.h
@@ -76,8 +76,10 @@ class SyncServiceBase : public SyncService, public SyncEngineHost {
// information.
const base::FilePath base_directory_;
- // The full path to the sync data directory.
- const base::FilePath directory_path_;
+ // The full path to the sync data folder. The folder is not fully deleted when
+ // sync is disabled, since it holds both Directory and ModelTypeStore data.
+ // Directory files will be selectively targeted instead.
+ const base::FilePath sync_data_folder_;
// An identifier representing this instance for debugging purposes.
const std::string debug_identifier_;

Powered by Google App Engine
This is Rietveld 408576698