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

Unified Diff: content/gpu/gpu_service_factory.cc

Issue 2756793002: RELAND: Shape Detection: move the Mac service to the sandboxed GPU process (Closed)
Patch Set: moved shapedetection-security-test.html to non-fast LayoutTests to use the mock mojo service 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
Index: content/gpu/gpu_service_factory.cc
diff --git a/content/gpu/gpu_service_factory.cc b/content/gpu/gpu_service_factory.cc
index 5625a63a5a6470bb0c0c94aafa936e5375adc0df..06b777c73788ad5c9efc338a8f5e36ec2f2bad89 100644
--- a/content/gpu/gpu_service_factory.cc
+++ b/content/gpu/gpu_service_factory.cc
@@ -7,6 +7,8 @@
#include <memory>
#include "base/threading/thread_task_runner_handle.h"
+#include "services/shape_detection/public/interfaces/constants.mojom.h"
+#include "services/shape_detection/shape_detection_service.h"
#if defined(ENABLE_MOJO_MEDIA_IN_GPU_PROCESS)
#include "base/bind.h"
@@ -33,6 +35,12 @@ void GpuServiceFactory::RegisterServices(ServiceMap* services) {
info.use_own_thread = true;
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));
}
} // namespace content
« no previous file with comments | « content/gpu/DEPS ('k') | third_party/WebKit/LayoutTests/fast/shapedetection/shapedetection-security-test.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698