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

Unified Diff: content/browser/frame_host/render_frame_host_impl.cc

Issue 2399593005: ShapeDetectionImpl: Android implementation of detectFace() (Closed)
Patch Set: Reorder alphabetically Created 4 years, 2 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/frame_host/render_frame_host_impl.cc
diff --git a/content/browser/frame_host/render_frame_host_impl.cc b/content/browser/frame_host/render_frame_host_impl.cc
index e5826c6489a6ce4ed56d28f210f938afb15d8e0b..f22c32831fa8cd6ae61e390a3683d8dace09fcdd 100644
--- a/content/browser/frame_host/render_frame_host_impl.cc
+++ b/content/browser/frame_host/render_frame_host_impl.cc
@@ -96,6 +96,7 @@
#include "media/mojo/interfaces/media_service.mojom.h"
#include "media/mojo/interfaces/service_factory.mojom.h"
#include "mojo/public/cpp/bindings/associated_interface_ptr.h"
+#include "public/platform/modules/shapedetection/shapedetection.mojom.h"
#include "services/shell/public/cpp/connector.h"
#include "services/shell/public/cpp/interface_provider.h"
#include "ui/accessibility/ax_tree.h"
@@ -2186,6 +2187,10 @@ void RenderFrameHostImpl::RegisterMojoInterfaces() {
#if defined(OS_ANDROID)
GetInterfaceRegistry()->AddInterface(
GetGlobalJavaInterfaces()
+ ->CreateInterfaceFactory<blink::mojom::ShapeDetection>());
ncarter (slow) 2016/10/12 20:08:35 Is it possible to only do AddInterface if the flag
xianglu 2016/10/13 00:02:32 There is a flag in Blink https://cs.chromium.org/c
+
+ GetInterfaceRegistry()->AddInterface(
+ GetGlobalJavaInterfaces()
->CreateInterfaceFactory<device::VibrationManager>());
#else
GetInterfaceRegistry()->AddInterface(

Powered by Google App Engine
This is Rietveld 408576698