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

Unified Diff: chrome/browser/prefs/pref_service.h

Issue 6713032: Provide lazy CommitPendingWrites in addition to eager SavePersistentPrefs. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: removed notification + rebase Created 9 years, 9 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/prefs/pref_service.h
diff --git a/chrome/browser/prefs/pref_service.h b/chrome/browser/prefs/pref_service.h
index 2ab7b96d4e7756d384c0f39f8d4fa3fde3e276cf..5ca24fd5ad9ef8ec31cade550e1fa37371d7a2a3 100644
--- a/chrome/browser/prefs/pref_service.h
+++ b/chrome/browser/prefs/pref_service.h
@@ -148,6 +148,9 @@ class PrefService : public base::NonThreadSafe {
// Serializes the data and schedules save using ImportantFileWriter.
void ScheduleSavePersistentPrefs();
+ // Lands pending writes to disk.
+ void CommitPendingWrite();
+
// Make the PrefService aware of a pref.
void RegisterBooleanPref(const char* path, bool default_value);
void RegisterIntegerPref(const char* path, int default_value);

Powered by Google App Engine
This is Rietveld 408576698