Switch prefs to use ObserverList::might_have_observers instead of ObserverList::size.
See issue for rationale behind this change.
BUG=278526
TEST=no change
[email protected]
(TBR'ing for prefs API change).
Review URL: https://chromiumcodereview.appspot.com/22986034
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@219622 0039d316-1c4b-4281-b951-d872f2087c98
diff --git a/base/prefs/pref_store.h b/base/prefs/pref_store.h
index 2239528..b736ac3 100644
--- a/base/prefs/pref_store.h
+++ b/base/prefs/pref_store.h
@@ -41,7 +41,7 @@
// Add and remove observers.
virtual void AddObserver(Observer* observer) {}
virtual void RemoveObserver(Observer* observer) {}
- virtual size_t NumberOfObservers() const;
+ virtual bool HasObservers() const;
// Whether the store has completed all asynchronous initialization.
virtual bool IsInitializationComplete() const;