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())); |
} |