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

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

Issue 2399593005: ShapeDetectionImpl: Android implementation of detectFace() (Closed)
Patch Set: ShapeDetectionImpl: Added explanation on bitmap. 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 1cbc21c45a3e545729ba08a44968c432bd7e456b..c9236d889ca5c89cd9138e2f7096b8e1fc28bb07 100644
--- a/content/browser/frame_host/render_frame_host_impl.cc
+++ b/content/browser/frame_host/render_frame_host_impl.cc
@@ -93,6 +93,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"
@@ -2164,6 +2165,10 @@ void RenderFrameHostImpl::RegisterMojoInterfaces() {
GetInterfaceRegistry()->AddInterface(
GetGlobalJavaInterfaces()
->CreateInterfaceFactory<device::VibrationManager>());
+
+ GetInterfaceRegistry()->AddInterface(
+ GetGlobalJavaInterfaces()
+ ->CreateInterfaceFactory<blink::mojom::ShapeDetection>());
mcasas 2016/10/11 23:04:48 nit: move this before l.2165, so the VibrationMana
xianglu 2016/10/12 18:25:17 Done.
#else
GetInterfaceRegistry()->AddInterface(
base::Bind(&device::VibrationManagerImpl::Create));

Powered by Google App Engine
This is Rietveld 408576698