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

Unified Diff: base/prefs/pref_filter.h

Issue 226633002: Commit changes after a reset. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Don't commit, just schedule. Created 6 years, 8 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/json_pref_store.cc ('k') | chrome/browser/prefs/pref_hash_filter.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/prefs/pref_filter.h
diff --git a/base/prefs/pref_filter.h b/base/prefs/pref_filter.h
index 0cf78a93f3604b6ecdcbcfb23f4fb28af924a5ac..ce07f929c7a7fc94f1569f66d3e403eee0f3c355 100644
--- a/base/prefs/pref_filter.h
+++ b/base/prefs/pref_filter.h
@@ -24,7 +24,9 @@ class BASE_PREFS_EXPORT PrefFilter {
// Observers are notified.
// Changes made by a PrefFilter during FilterOnLoad do not result in
// notifications to |PrefStore::Observer|s.
- virtual void FilterOnLoad(base::DictionaryValue* pref_store_contents) = 0;
+ // Implementations should return true if they modify the dictionary, to allow
+ // the changes to be persisted.
+ virtual bool FilterOnLoad(base::DictionaryValue* pref_store_contents) = 0;
// Receives notification when a pref store value is changed, before Observers
// are notified.
« no previous file with comments | « base/prefs/json_pref_store.cc ('k') | chrome/browser/prefs/pref_hash_filter.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698