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

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

Issue 2528743002: Shape Detection: Implement FaceDetection on Mac as out-of-process service (Closed)
Patch Set: avi@ comments, rebase Created 4 years 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/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 c6076ce6e0b7c1cb56f9c433032dd5dc5718b80d..9145c380759db1da19e24ba140d3368ebe420a39 100644
--- a/content/browser/service_manager/service_manager_context.cc
+++ b/content/browser/service_manager/service_manager_context.cc
@@ -14,6 +14,7 @@
#include "base/macros.h"
#include "base/memory/ptr_util.h"
#include "base/single_thread_task_runner.h"
+#include "base/strings/utf_string_conversions.h"
#include "content/browser/gpu/gpu_process_host.h"
#include "content/browser/service_manager/merge_dictionary.h"
#include "content/common/service_manager/service_manager_connection_impl.h"
@@ -37,6 +38,7 @@
#include "services/service_manager/public/interfaces/service.mojom.h"
#include "services/service_manager/runner/common/client_util.h"
#include "services/service_manager/service_manager.h"
+#include "services/shape_detection/public/interfaces/constants.mojom.h"
namespace content {
@@ -279,6 +281,7 @@ ServiceManagerContext::ServiceManagerContext() {
for (const auto& entry : services) {
ServiceManagerConnection::GetForProcess()->AddEmbeddedService(entry.first,
entry.second);
+ DLOG(ERROR) << entry.first;
}
// This is safe to assign directly from any thread, because
@@ -298,17 +301,23 @@ ServiceManagerContext::ServiceManagerContext() {
service.first,
base::Bind(&StartServiceInUtilityProcess, service.first, service.second,
true /* use_sandbox */));
+ DLOG(ERROR) << service.first;
}
ContentBrowserClient::OutOfProcessServiceMap unsandboxed_services;
GetContentClient()
->browser()
->RegisterUnsandboxedOutOfProcessServices(&unsandboxed_services);
+ DLOG(ERROR) << "Register shape_detection in content browser";
+ unsandboxed_services.insert(
+ std::make_pair(shape_detection::mojom::kServiceName,
+ base::ASCIIToUTF16("Shape Detection Service")));
for (const auto& service : unsandboxed_services) {
ServiceManagerConnection::GetForProcess()->AddServiceRequestHandler(
service.first,
base::Bind(&StartServiceInUtilityProcess, service.first, service.second,
false /* use_sandbox */));
+ DLOG(ERROR) << service.first;
}
#if (ENABLE_MOJO_MEDIA_IN_GPU_PROCESS)

Powered by Google App Engine
This is Rietveld 408576698