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

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

Issue 2772673002: mash: switch to the new pref service (Closed)
Patch Set: Remove no longer needed tests 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
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..69d398e0b10053a2c8cb894c8b943060476c2abc 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,
+ const std::string& service_name = mojom::kPrefStoreServiceName);
Sam McNally 2017/03/27 05:42:11 base::StringPiece
tibell 2017/03/28 00:34:31 Done.
} // namespace prefs

Powered by Google App Engine
This is Rietveld 408576698