Index: services/preferences/public/cpp/pref_observer_store.h |
diff --git a/services/preferences/public/cpp/pref_observer_store.h b/services/preferences/public/cpp/pref_observer_store.h |
index 1e408e1101301ab98aca43e42c7d93a96f7c9d1e..a8c1d515bf1856b7798f04d51b84464d121cf229 100644 |
--- a/services/preferences/public/cpp/pref_observer_store.h |
+++ b/services/preferences/public/cpp/pref_observer_store.h |
@@ -13,6 +13,8 @@ |
#include "mojo/public/cpp/bindings/binding.h" |
#include "services/preferences/public/interfaces/preferences.mojom.h" |
+namespace preferences { |
+ |
class PrefObserverStoreTest; |
// An implementation of PrefStore which uses prefs::mojom::PreferenceManager as |
@@ -31,9 +33,9 @@ class PrefObserverStore : public ValueMapPrefStore, |
explicit PrefObserverStore( |
prefs::mojom::PreferencesManagerPtr prefs_manager_ptr); |
- // Defines the set of |keys| which PrefOvserverStore will handle. Begins |
- // listening for changes to these from |prefs_manager_|. |
- void Init(const std::set<std::string>& keys); |
+ // Adds a set of |keys| which PrefObserverStore will handle. Begins listening |
+ // for changes to these from |prefs_manager_|. |
+ void Subscribe(const std::set<std::string>& keys); |
// PrefStore: |
bool GetValue(const std::string& key, |
@@ -75,4 +77,5 @@ class PrefObserverStore : public ValueMapPrefStore, |
DISALLOW_COPY_AND_ASSIGN(PrefObserverStore); |
}; |
+} // namespace preferences |
#endif // SERVICES_PREFERENCES_PUBLIC_CPP_PREFS_OBSERVER_STORE_H_ |