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

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

Issue 2855203003: Shape Detection: move {BarcodeDetectionImpl,TextDetectionImpl}.java to //services/shape_detection (Closed)
Patch Set: Make |java_interface_provider_| a std::unique_ptr<> Created 3 years, 7 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 | « chrome/android/java_sources.gni ('k') | services/shape_detection/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 5f240939bd6b287f24c74995c3fe69e609443e94..d70a91e98e1c127779eddac50b8cbaccc41cd633 100644
--- a/content/browser/renderer_host/render_process_host_impl.cc
+++ b/content/browser/renderer_host/render_process_host_impl.cc
@@ -1229,28 +1229,21 @@ void RenderProcessHostImpl::RegisterMojoInterfaces() {
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(&ForwardShapeDetectionRequest<
- shape_detection::mojom::BarcodeDetectionRequest>));
+ shape_detection::mojom::FaceDetectionProviderRequest>));
+#endif
AddUIThreadInterface(
registry.get(),
base::Bind(&ForwardShapeDetectionRequest<
- shape_detection::mojom::FaceDetectionProviderRequest>));
+ shape_detection::mojom::BarcodeDetectionRequest>));
AddUIThreadInterface(
registry.get(),
base::Bind(&ForwardShapeDetectionRequest<
shape_detection::mojom::TextDetectionRequest>));
-#endif
+
AddUIThreadInterface(
registry.get(),
base::Bind(&PermissionServiceContext::CreateService,
« no previous file with comments | « chrome/android/java_sources.gni ('k') | services/shape_detection/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698