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

Unified Diff: base/prefs/overlay_user_pref_store.cc

Issue 1148323005: Add the ability to schedule any pending lossy prefs to be written. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: oops Created 5 years, 7 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: base/prefs/overlay_user_pref_store.cc
diff --git a/base/prefs/overlay_user_pref_store.cc b/base/prefs/overlay_user_pref_store.cc
index e93dffd961a9088178d3247ad90417d4bbe11916..4c236f10dd0da84240d1e790c26099f9160756e2 100644
--- a/base/prefs/overlay_user_pref_store.cc
+++ b/base/prefs/overlay_user_pref_store.cc
@@ -121,6 +121,10 @@ void OverlayUserPrefStore::CommitPendingWrite() {
// We do not write our content intentionally.
}
+void OverlayUserPrefStore::SchedulePendingLossyWrites() {
+ underlay_->SchedulePendingLossyWrites();
+}
+
void OverlayUserPrefStore::ReportValueChanged(const std::string& key,
uint32 flags) {
FOR_EACH_OBSERVER(PrefStore::Observer, observers_, OnPrefValueChanged(key));

Powered by Google App Engine
This is Rietveld 408576698