Index: content/browser/android/java_interfaces_impl.cc |
diff --git a/content/browser/android/java_interfaces_impl.cc b/content/browser/android/java_interfaces_impl.cc |
index 4169654f5bf6d231bf8373d5b45332dc04994017..64ac6656e4cf15e3bd45ab99f436ba9cc1937424 100644 |
--- a/content/browser/android/java_interfaces_impl.cc |
+++ b/content/browser/android/java_interfaces_impl.cc |
@@ -11,6 +11,7 @@ |
#include "base/android/context_utils.h" |
#include "base/android/jni_android.h" |
#include "base/memory/singleton.h" |
+#include "content/browser/frame_host/render_frame_host_impl.h" |
#include "content/public/browser/browser_thread.h" |
#include "content/public/browser/web_contents.h" |
#include "jni/InterfaceRegistrarImpl_jni.h" |
@@ -60,4 +61,13 @@ void BindInterfaceRegistryForWebContents( |
web_contents->GetJavaWebContents().obj()); |
} |
+void BindInterfaceRegistryForRenderFrameHost( |
+ service_manager::mojom::InterfaceProviderRequest request, |
+ RenderFrameHostImpl* render_frame_host) { |
+ JNIEnv* env = base::android::AttachCurrentThread(); |
+ Java_InterfaceRegistrarImpl_createInterfaceRegistryForRenderFrameHost( |
+ env, request.PassMessagePipe().release().value(), |
+ render_frame_host->GetJavaRenderFrameHost().obj()); |
+} |
+ |
} // namespace content |