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

Unified Diff: content/browser/service_manager/service_manager_context.cc

Issue 2739163003: Shape Detection: move the Mac service to the sandboxed GPU process (Closed)
Patch Set: rebase 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 | « no previous file | content/gpu/BUILD.gn » ('j') | content/gpu/BUILD.gn » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/service_manager/service_manager_context.cc
diff --git a/content/browser/service_manager/service_manager_context.cc b/content/browser/service_manager/service_manager_context.cc
index c400726c1c84c109691fb8abe0e8234fb2138f97..52cb1b9f077675dbcad313769c9f7d105f61b5a1 100644
--- a/content/browser/service_manager/service_manager_context.cc
+++ b/content/browser/service_manager/service_manager_context.cc
@@ -71,8 +71,6 @@ void StartServiceInUtilityProcess(
service_factory->CreateService(std::move(request), service_name);
}
-#if (ENABLE_MOJO_MEDIA_IN_GPU_PROCESS)
-
// Request service_manager::mojom::ServiceFactory from GPU process host. Must be
// called on IO thread.
void StartServiceInGpuProcess(const std::string& service_name,
@@ -95,8 +93,6 @@ void StartServiceInGpuProcess(const std::string& service_name,
service_factory->CreateService(std::move(request), service_name);
}
-#endif // ENABLE_MOJO_MEDIA_IN_GPU_PROCESS
-
// A ManifestProvider which resolves application names to builtin manifest
// resources for the catalog service to consume.
class BuiltinManifestProvider : public catalog::ManifestProvider {
@@ -321,9 +317,6 @@ ServiceManagerContext::ServiceManagerContext() {
GetContentClient()
->browser()
->RegisterUnsandboxedOutOfProcessServices(&unsandboxed_services);
- unsandboxed_services.insert(
- std::make_pair(shape_detection::mojom::kServiceName,
- base::ASCIIToUTF16("Shape Detection Service")));
for (const auto& service : unsandboxed_services) {
packaged_services_connection_->AddServiceRequestHandler(
service.first, base::Bind(&StartServiceInUtilityProcess, service.first,
@@ -334,6 +327,12 @@ ServiceManagerContext::ServiceManagerContext() {
packaged_services_connection_->AddServiceRequestHandler(
"media", base::Bind(&StartServiceInGpuProcess, "media"));
#endif
+
+ packaged_services_connection_->AddServiceRequestHandler(
+ shape_detection::mojom::kServiceName,
+ base::Bind(&StartServiceInGpuProcess,
+ shape_detection::mojom::kServiceName));
+
packaged_services_connection_->Start();
ServiceManagerConnection::GetForProcess()->Start();
}
« no previous file with comments | « no previous file | content/gpu/BUILD.gn » ('j') | content/gpu/BUILD.gn » ('J')

Powered by Google App Engine
This is Rietveld 408576698