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

Unified Diff: content/utility/utility_service_factory.cc

Issue 2528743002: Shape Detection: Implement FaceDetection on Mac as out-of-process service (Closed)
Patch Set: Rebase Created 3 years, 11 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 | « content/utility/DEPS ('k') | services/service_manager/public/cpp/connector.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/utility/utility_service_factory.cc
diff --git a/content/utility/utility_service_factory.cc b/content/utility/utility_service_factory.cc
index 68dff9f98e112bc51084682163971b92cd5500e1..e70647c261d6349a67e5d21998154ebcc9c0dcd2 100644
--- a/content/utility/utility_service_factory.cc
+++ b/content/utility/utility_service_factory.cc
@@ -9,6 +9,8 @@
#include "content/public/utility/content_utility_client.h"
#include "content/public/utility/utility_thread.h"
#include "content/utility/utility_thread_impl.h"
+#include "services/shape_detection/public/interfaces/constants.mojom.h"
+#include "services/shape_detection/shape_detection_service.h"
#if defined(ENABLE_MOJO_MEDIA_IN_UTILITY_PROCESS)
#include "media/mojo/services/media_service_factory.h" // nogncheck
@@ -28,6 +30,11 @@ void UtilityServiceFactory::RegisterServices(ServiceMap* services) {
info.factory = base::Bind(&media::CreateMediaService);
services->insert(std::make_pair("media", info));
#endif
+ ServiceInfo shape_detection_info;
+ shape_detection_info.factory =
+ base::Bind(&shape_detection::ShapeDetectionService::Create);
+ services->insert(std::make_pair(shape_detection::mojom::kServiceName,
+ shape_detection_info));
}
void UtilityServiceFactory::OnServiceQuit() {
« no previous file with comments | « content/utility/DEPS ('k') | services/service_manager/public/cpp/connector.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698