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

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

Issue 2791903003: Pref service: have Mash and Chrome connect to the right pref stores (Closed)
Patch Set: ProfilePrefStoreManagerTest: explicit list stores to connect to Created 3 years, 8 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
Index: services/preferences/public/cpp/pref_service_factory.h
diff --git a/services/preferences/public/cpp/pref_service_factory.h b/services/preferences/public/cpp/pref_service_factory.h
index d3aca7d0520a0b277699016a4d2175ec710944f4..d138ad3583d75b79c0c2993666ca39bb216958a4 100644
--- a/services/preferences/public/cpp/pref_service_factory.h
+++ b/services/preferences/public/cpp/pref_service_factory.h
@@ -14,6 +14,7 @@
#include <memory>
#include "base/callback.h"
+#include "components/prefs/pref_value_store.h"
#include "services/preferences/public/interfaces/preferences.mojom.h"
class PrefRegistry;
@@ -35,10 +36,12 @@ using ConnectCallback = base::Callback<void(std::unique_ptr<::PrefService>)>;
// asynchronous and |callback| will be called when it has been established. All
// preferences that will be accessed need to be registered in |pref_registry|
// first.
-void ConnectToPrefService(service_manager::Connector* connector,
- scoped_refptr<PrefRegistry> pref_registry,
- ConnectCallback callback,
- base::StringPiece service_name = mojom::kServiceName);
+void ConnectToPrefService(
+ service_manager::Connector* connector,
+ scoped_refptr<PrefRegistry> pref_registry,
+ const std::vector<PrefValueStore::PrefStoreType>& already_connected_types,
+ ConnectCallback callback,
+ base::StringPiece service_name = mojom::kServiceName);
} // namespace prefs

Powered by Google App Engine
This is Rietveld 408576698