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

Unified Diff: services/preferences/persistent_pref_store_impl.h

Issue 2777483002: Pref service: Add initial support for pref registration. (Closed)
Patch Set: rebase Created 3 years, 9 months 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 | « services/preferences/BUILD.gn ('k') | services/preferences/persistent_pref_store_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/preferences/persistent_pref_store_impl.h
diff --git a/services/preferences/persistent_pref_store_impl.h b/services/preferences/persistent_pref_store_impl.h
index b57e67be7ef3a4308833ccb5687ca41f39d96d8f..544cbe2f533d68b3f0593f59b3ab879ce3da7a1b 100644
--- a/services/preferences/persistent_pref_store_impl.h
+++ b/services/preferences/persistent_pref_store_impl.h
@@ -22,6 +22,8 @@ namespace prefs {
class PersistentPrefStoreImpl : public PrefStore::Observer {
public:
+ using ObservedPrefs = std::set<std::string>;
+
// If |initialized()| is false after construction, |on_initialized| will be
// called when it becomes true.
PersistentPrefStoreImpl(
@@ -31,7 +33,8 @@ class PersistentPrefStoreImpl : public PrefStore::Observer {
~PersistentPrefStoreImpl() override;
- mojom::PersistentPrefStoreConnectionPtr CreateConnection();
+ mojom::PersistentPrefStoreConnectionPtr CreateConnection(
+ ObservedPrefs observed_prefs);
bool initialized() { return !initializing_; }
« no previous file with comments | « services/preferences/BUILD.gn ('k') | services/preferences/persistent_pref_store_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698