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

Unified Diff: content/browser/renderer_host/render_process_host_impl.cc

Issue 2629523008: Shape Detection: Remove ConstructorCallWith=Document (Closed)
Patch Set: Add layout test for worker 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
Index: content/browser/renderer_host/render_process_host_impl.cc
diff --git a/content/browser/renderer_host/render_process_host_impl.cc b/content/browser/renderer_host/render_process_host_impl.cc
index de8b9ed2b810399478ddc26d5eda3f55db8da34f..5011f6bb5dde8c465272969c9a7b79fbd32858b6 100644
--- a/content/browser/renderer_host/render_process_host_impl.cc
+++ b/content/browser/renderer_host/render_process_host_impl.cc
@@ -187,6 +187,9 @@
#include "services/service_manager/public/cpp/interface_registry.h"
#include "services/service_manager/runner/common/client_util.h"
#include "services/service_manager/runner/common/switches.h"
+#include "services/shape_detection/public/interfaces/barcodedetection.mojom.h"
+#include "services/shape_detection/public/interfaces/facedetection_provider.mojom.h"
+#include "services/shape_detection/public/interfaces/textdetection.mojom.h"
#include "storage/browser/fileapi/sandbox_file_system_backend.h"
#include "third_party/WebKit/public/public_features.h"
#include "third_party/skia/include/core/SkBitmap.h"
@@ -1202,6 +1205,18 @@ void RenderProcessHostImpl::RegisterMojoInterfaces() {
AddUIThreadInterface(registry.get(),
GetGlobalJavaInterfaces()
->CreateInterfaceFactory<device::BatteryMonitor>());
+ AddUIThreadInterface(
+ registry.get(), GetGlobalJavaInterfaces()
+ ->CreateInterfaceFactory<
+ shape_detection::mojom::FaceDetectionProvider>());
+ AddUIThreadInterface(
+ registry.get(),
+ GetGlobalJavaInterfaces()
+ ->CreateInterfaceFactory<shape_detection::mojom::BarcodeDetection>());
+ AddUIThreadInterface(
+ registry.get(),
+ GetGlobalJavaInterfaces()
+ ->CreateInterfaceFactory<shape_detection::mojom::TextDetection>());
#else
AddUIThreadInterface(
registry.get(), base::Bind(&device::BatteryMonitorImpl::Create));
« no previous file with comments | « content/browser/frame_host/render_frame_host_impl.cc ('k') | content/public/app/mojo/content_browser_manifest.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698