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

Unified Diff: chrome/android/java/src/org/chromium/chrome/browser/payments/PaymentRequestDialog.java

Issue 1902913002: Provide web contents to Chrome's mojo services (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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/android/java/src/org/chromium/chrome/browser/payments/PaymentRequestDialog.java
diff --git a/chrome/android/java/src/org/chromium/chrome/browser/payments/PaymentRequestDialog.java b/chrome/android/java/src/org/chromium/chrome/browser/payments/PaymentRequestDialog.java
deleted file mode 100644
index 5002b9d32597024dc4229ff9a754d15cee876199..0000000000000000000000000000000000000000
--- a/chrome/android/java/src/org/chromium/chrome/browser/payments/PaymentRequestDialog.java
+++ /dev/null
@@ -1,58 +0,0 @@
-// Copyright 2016 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-package org.chromium.chrome.browser.payments;
-
-import android.content.Context;
-
-import org.chromium.mojo.system.MojoException;
-import org.chromium.mojom.payments.PaymentDetails;
-import org.chromium.mojom.payments.PaymentOptions;
-import org.chromium.mojom.payments.PaymentRequest;
-import org.chromium.mojom.payments.PaymentRequestClient;
-
-/**
- * Android implementation of the PaymentRequest service defined in
- * third_party/WebKit/public/platform/modules/payments/payment_request.mojom.
- */
-public class PaymentRequestDialog implements PaymentRequest {
- private final Context mApplicationContext;
- private PaymentRequestClient mClient;
-
- /**
- * Builds the dialog.
- *
- * @param applicationContext The application context.
- */
- public PaymentRequestDialog(Context applicationContext) {
- mApplicationContext = applicationContext;
- }
-
- @Override
- public void setClient(PaymentRequestClient client) {
- mClient = client;
- }
-
- @Override
- public void show(String[] supportedMethods, PaymentDetails details, PaymentOptions options,
- String stringifiedData) {
- assert mClient != null;
- mClient.onError();
- }
-
- @Override
- public void abort() {}
-
- @Override
- public void complete(boolean success) {
- assert mClient != null;
- mClient.onComplete();
- }
-
- @Override
- public void close() {}
-
- @Override
- public void onConnectionError(MojoException e) {}
-}

Powered by Google App Engine
This is Rietveld 408576698