| Index: chrome/browser/chrome_content_browser_client.cc
|
| diff --git a/chrome/browser/chrome_content_browser_client.cc b/chrome/browser/chrome_content_browser_client.cc
|
| index 5ff1d247bccc2ec4a7d10b7ffcbab6b67dbf605b..90a0c5666254b05d59410476e36790d8a13f4669 100644
|
| --- a/chrome/browser/chrome_content_browser_client.cc
|
| +++ b/chrome/browser/chrome_content_browser_client.cc
|
| @@ -196,6 +196,7 @@
|
| #include "ppapi/host/ppapi_host.h"
|
| #include "printing/features/features.h"
|
| #include "services/image_decoder/public/interfaces/constants.mojom.h"
|
| +#include "services/preferences/public/cpp/pref_store_manager_impl.h"
|
| #include "services/preferences/public/interfaces/preferences.mojom.h"
|
| #include "services/service_manager/public/cpp/interface_provider.h"
|
| #include "services/service_manager/public/cpp/interface_registry.h"
|
| @@ -3226,6 +3227,20 @@ void ChromeContentBrowserClient::RegisterInProcessServices(
|
| #endif // OS_CHROMEOS
|
| }
|
|
|
| +void ChromeContentBrowserClient::RegisterInProcessServices(
|
| + content::BrowserContext* browser_context,
|
| + StaticServiceMap* services) {
|
| + {
|
| + content::ServiceInfo info;
|
| + info.factory = base::Bind([] {
|
| + return std::unique_ptr<service_manager::Service>(
|
| + base::MakeUnique<prefs::PrefStoreManagerImpl>(
|
| + prefs::PrefStoreManagerImpl::DefaultStores()));
|
| + });
|
| + services->insert(std::make_pair(prefs::mojom::kPrefStoreServiceName, info));
|
| + }
|
| +}
|
| +
|
| void ChromeContentBrowserClient::RegisterOutOfProcessServices(
|
| OutOfProcessServiceMap* services) {
|
| #if defined(ENABLE_MOJO_MEDIA_IN_UTILITY_PROCESS)
|
|
|