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

Unified Diff: base/prefs/pref_service.h

Issue 1180693002: Update from https://crrev.com/333737 (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: rebased Created 5 years, 6 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
« no previous file with comments | « base/prefs/pref_notifier_impl.h ('k') | base/prefs/pref_service.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
« no previous file with comments | « base/prefs/pref_notifier_impl.h ('k') | base/prefs/pref_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698