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

Unified Diff: content/browser/android/java_interfaces_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/android/java_interfaces_impl.h ('k') | content/browser/frame_host/render_frame_host_impl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
« no previous file with comments | « content/browser/android/java_interfaces_impl.h ('k') | content/browser/frame_host/render_frame_host_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698