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

Unified Diff: chrome/browser/chrome_content_browser_client.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
Index: chrome/browser/chrome_content_browser_client.cc
diff --git a/chrome/browser/chrome_content_browser_client.cc b/chrome/browser/chrome_content_browser_client.cc
index cc303c1d20d8000af36dbe77d71f0fa289ca70f1..ba1452bf4b2ad09d2e580cbacb3dd2ac105b8252 100644
--- a/chrome/browser/chrome_content_browser_client.cc
+++ b/chrome/browser/chrome_content_browser_client.cc
@@ -3164,13 +3164,13 @@ void ChromeContentBrowserClient::RegisterRenderFrameMojoInterfaces(
render_frame_host));
#if defined(OS_ANDROID)
+ registry->AddInterface(
+ render_frame_host->GetJavaInterfaces()
+ ->CreateInterfaceFactory<payments::mojom::PaymentRequest>());
content::WebContents* web_contents =
content::WebContents::FromRenderFrameHost(render_frame_host);
if (web_contents) {
registry->AddInterface(
- web_contents->GetJavaInterfaces()
- ->CreateInterfaceFactory<payments::mojom::PaymentRequest>());
- registry->AddInterface(
base::Bind(&ForwardShareServiceRequest,
web_contents->GetJavaInterfaces()->GetWeakPtr()));
}

Powered by Google App Engine
This is Rietveld 408576698