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

Unified Diff: chrome/browser/sync/profile_sync_service.h

Issue 551843003: Persist Directory to disk when the app is backgrounded. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add a thread check and fix a comment. Created 6 years, 3 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: chrome/browser/sync/profile_sync_service.h
diff --git a/chrome/browser/sync/profile_sync_service.h b/chrome/browser/sync/profile_sync_service.h
index e9238699042d097ddc0272043944ecab0bf9ab70..0e0ea93fb029c467483d75ce6bfc6774443b1568 100644
--- a/chrome/browser/sync/profile_sync_service.h
+++ b/chrome/browser/sync/profile_sync_service.h
@@ -794,6 +794,11 @@ class ProfileSyncService : public ProfileSyncServiceBase,
base::Time GetDeviceBackupTimeForTesting() const;
+ // This triggers a Directory::SaveChanges() call on the sync thread.
+ // It should be used to persist data to disk when the process might be
+ // killed in the near future.
+ void FlushDirectory() const;
+
protected:
// Helper to configure the priority data types.
void ConfigurePriorityDataTypes();

Powered by Google App Engine
This is Rietveld 408576698