Skip to content

Commit

Permalink
Use the new PaymentRequestUI class defined in Chromium
Browse files Browse the repository at this point in the history
  • Loading branch information
javifernandez committed Jan 20, 2025
1 parent 18d02c2 commit a235e33
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
import org.chromium.ui.base.WindowAndroid;
import org.chromium.url.GURL;
import org.chromium.wolvic.Tab;
import org.chromium.wolvic.payments.ui.PaymentRequestUI;
import org.chromium.wolvic.TabCompositorView;
import org.chromium.wolvic.WolvicWebContentsFactory;

Expand Down Expand Up @@ -130,7 +131,8 @@ public void onCreateNewPaymentHandler(final WebContents newWebContents) {
}

Context context = mWebContents.get().getTopLevelNativeWindow().getContext().get();
final TabCompositorView compositorView = Tab.createNewTab(context, newWebContents);
PaymentRequestUI paymentHandler = new PaymentRequestUI(context, newWebContents, null);
final TabCompositorView compositorView = paymentHandler.getCompositorView();
assert newWebContents.getViewAndroidDelegate() != null
: "WebContents should be initialized.";

Expand Down

0 comments on commit a235e33

Please sign in to comment.