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

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

Issue 2772673002: mash: switch to the new pref service (Closed)
Patch Set: Address review comments 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 | « chrome/common/chrome_features.cc ('k') | services/preferences/public/cpp/pref_service_factory.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 2967af3e685c6f4c4bc6b2375e35ae04a99a517c..04234359d95e8a9ef138ad2453f8c13a59327bcc 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 "services/preferences/public/interfaces/preferences.mojom.h"
class PrefRegistry;
class PrefService;
@@ -34,9 +35,11 @@ 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);
+void ConnectToPrefService(
+ service_manager::Connector* connector,
+ scoped_refptr<PrefRegistry> pref_registry,
+ ConnectCallback callback,
+ base::StringPiece service_name = mojom::kPrefStoreServiceName);
} // namespace prefs
« no previous file with comments | « chrome/common/chrome_features.cc ('k') | services/preferences/public/cpp/pref_service_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698