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

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

Issue 2692023002: Make PaymentRequestImpl work with RenderFrameHost (Closed)
Patch Set: Address review comment Created 3 years, 9 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 | « content/browser/frame_host/render_frame_host_impl.h ('k') | content/public/android/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
« no previous file with comments | « content/browser/frame_host/render_frame_host_impl.h ('k') | content/public/android/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698