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

Unified Diff: services/preferences/public/cpp/pref_observer_store.h

Issue 2474653003: PreferencesManager (Closed)
Patch Set: Update PreferencesManager to account for base::Value API change Created 4 years 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 | « chrome/test/BUILD.gn ('k') | services/preferences/public/cpp/pref_observer_store.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 ea474600b4b41de7d3fea5ba259dc3384a24794a..0b72346320a920c4dda70b33deb6c4f08bc7ec58 100644
--- a/services/preferences/public/cpp/pref_observer_store.h
+++ b/services/preferences/public/cpp/pref_observer_store.h
@@ -12,6 +12,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
@@ -30,9 +32,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_
« no previous file with comments | « chrome/test/BUILD.gn ('k') | services/preferences/public/cpp/pref_observer_store.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698