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

Unified Diff: chrome/browser/chrome_content_browser_client.cc

Issue 2692023002: Make PaymentRequestImpl work with RenderFrameHost (Closed)
Patch Set: Rebase after https://codereview.chromium.org/2708243004 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 add454a73af479000cb0732ffc762e8e6a25c5a3..eb66755ea756aebfa07593fe449b9aff563b78d6 100644
--- a/chrome/browser/chrome_content_browser_client.cc
+++ b/chrome/browser/chrome_content_browser_client.cc
@@ -3165,13 +3165,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