diff options
Diffstat (limited to 'chrome/browser/pref_service.h')
-rw-r--r-- | chrome/browser/pref_service.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/chrome/browser/pref_service.h b/chrome/browser/pref_service.h index 85dd42c..f1819ad 100644 --- a/chrome/browser/pref_service.h +++ b/chrome/browser/pref_service.h @@ -27,6 +27,7 @@ class NotificationObserver; class Preference; +class ScopedPrefUpdate; class PrefService : public NonThreadSafe, public ImportantFileWriter::DataSerializer { @@ -158,7 +159,8 @@ class PrefService : public NonThreadSafe, // This method returns NULL only if you're requesting an unregistered pref or // a non-dict/non-list pref. // WARNING: Changes to the dictionary or list will not automatically notify - // pref observers. TODO(tc): come up with a way to still fire observers. + // pref observers. + // Use a ScopedPrefUpdate to update observers on changes. DictionaryValue* GetMutableDictionary(const wchar_t* path); ListValue* GetMutableList(const wchar_t* path); @@ -216,6 +218,8 @@ class PrefService : public NonThreadSafe, PrefObserverMap; PrefObserverMap pref_observers_; + friend class ScopedPrefUpdate; + DISALLOW_COPY_AND_ASSIGN(PrefService); }; |