Index: base/prefs/pref_service.h |
diff --git a/base/prefs/pref_service.h b/base/prefs/pref_service.h |
index 1fc6c127c050f6780fb31b38c6ffef226218fa4e..25c2f8bac1453a0fd3f862669eab8405cc1a20f8 100644 |
--- a/base/prefs/pref_service.h |
+++ b/base/prefs/pref_service.h |
@@ -165,6 +165,12 @@ class BASE_PREFS_EXPORT PrefService : public base::NonThreadSafe { |
// immediately (basically, during shutdown). |
void CommitPendingWrite(); |
+ // Schedule a write if there is any lossy data pending. Unlike |
+ // CommitPendingWrite() this does not immediately sync to disk, instead it |
+ // triggers an eventual write if there is lossy data pending and if there |
+ // isn't one scheduled already. |
+ void SchedulePendingLossyWrites(); |
+ |
// Returns true if the preference for the given preference name is available |
// and is managed. |
bool IsManagedPreference(const std::string& pref_name) const; |