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

Unified Diff: content/browser/browser_context.cc

Issue 2635153002: Pref service: expose all read-only PrefStores through Mojo (Closed)
Patch Set: Create and register service Created 3 years, 10 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: content/browser/browser_context.cc
diff --git a/content/browser/browser_context.cc b/content/browser/browser_context.cc
index 2f14933f23671dbccfdb75af9bf429144e704f9b..4b668924180c2559bcc25655df680ff0e4f0febe 100644
--- a/content/browser/browser_context.cc
+++ b/content/browser/browser_context.cc
@@ -463,6 +463,13 @@ void BrowserContext::Initialize(
BrowserThread::GetTaskRunnerForThread(BrowserThread::DB));
connection->AddEmbeddedService(file::mojom::kServiceName, info);
}
+
+ ContentBrowserClient::StaticServiceMap services;
+ GetContentClient()->browser()->RegisterInProcessServices(browser_context,
+ &services);
+ for (const auto& entry : services) {
+ connection->AddEmbeddedService(entry.first, entry.second);
+ }
}
}

Powered by Google App Engine
This is Rietveld 408576698