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 29517e02b3c4f00d3d6e0371e8441f5dd647dd54..a5d9043f46d34f0032290a76285f1b85d5e24c00 100644 |
--- a/content/browser/frame_host/render_frame_host_impl.cc |
+++ b/content/browser/frame_host/render_frame_host_impl.cc |
@@ -114,6 +114,7 @@ |
#include "url/gurl.h" |
#if defined(OS_ANDROID) |
+#include "content/browser/android/java_interfaces_impl.h" |
#include "content/browser/frame_host/render_frame_host_android.h" |
#include "content/browser/media/android/media_player_renderer.h" |
#include "content/public/browser/android/java_interfaces.h" |
@@ -3502,6 +3503,16 @@ RenderFrameHostImpl::GetJavaRenderFrameHost() { |
} |
return render_frame_host_android->GetJavaObject(); |
} |
+ |
+service_manager::InterfaceProvider* RenderFrameHostImpl::GetJavaInterfaces() { |
+ if (!java_interfaces_) { |
+ service_manager::mojom::InterfaceProviderPtr provider; |
+ BindInterfaceRegistryForRenderFrameHost(mojo::MakeRequest(&provider), this); |
+ java_interfaces_.reset(new service_manager::InterfaceProvider); |
+ java_interfaces_->Bind(std::move(provider)); |
+ } |
+ return java_interfaces_.get(); |
+} |
#endif |
} // namespace content |