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

Unified Diff: services/preferences/public/cpp/persistent_pref_store_client.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/persistent_pref_store_client.h
diff --git a/services/preferences/public/cpp/persistent_pref_store_client.h b/services/preferences/public/cpp/persistent_pref_store_client.h
index a8fe15c70706d0a394fa15d3883790dead6cfa77..6ed2b1164d71e2d3ea4896648d1b79d822779db3 100644
--- a/services/preferences/public/cpp/persistent_pref_store_client.h
+++ b/services/preferences/public/cpp/persistent_pref_store_client.h
@@ -7,9 +7,11 @@
#include <memory>
#include <string>
+#include <vector>
#include "base/macros.h"
#include "components/prefs/persistent_pref_store.h"
+#include "components/prefs/pref_value_store.h"
#include "services/preferences/public/cpp/pref_store_client_mixin.h"
#include "services/preferences/public/interfaces/preferences.mojom.h"
@@ -26,8 +28,10 @@ namespace prefs {
class PersistentPrefStoreClient
: public PrefStoreClientMixin<PersistentPrefStore> {
public:
- PersistentPrefStoreClient(mojom::PrefStoreConnectorPtr connector,
- scoped_refptr<PrefRegistry> pref_registry);
+ PersistentPrefStoreClient(
+ mojom::PrefStoreConnectorPtr connector,
+ scoped_refptr<PrefRegistry> pref_registry,
+ std::vector<PrefValueStore::PrefStoreType> already_connected_types);
explicit PersistentPrefStoreClient(
mojom::PersistentPrefStoreConnectionPtr connection);
@@ -69,6 +73,7 @@ class PersistentPrefStoreClient
mojom::PersistentPrefStorePtr pref_store_;
std::unique_ptr<ReadErrorDelegate> error_delegate_;
+ std::vector<PrefValueStore::PrefStoreType> already_connected_types_;
DISALLOW_COPY_AND_ASSIGN(PersistentPrefStoreClient);
};
« no previous file with comments | « services/preferences/pref_store_manager_impl.cc ('k') | services/preferences/public/cpp/persistent_pref_store_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698