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

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

Issue 2474653003: PreferencesManager (Closed)
Patch Set: Update mojom to support separate subscriptions Created 4 years, 1 month 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
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 16f9fe5d31de2fa83fd6ba7b278d35fcbbc313e9..9e4acd939874a74cd386508016dfaeebea739ba8 100644
--- a/services/preferences/public/cpp/pref_observer_store.h
+++ b/services/preferences/public/cpp/pref_observer_store.h
@@ -35,9 +35,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,

Powered by Google App Engine
This is Rietveld 408576698