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

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

Issue 2925063003: [Payments] Implement payment instrument icons (Closed)
Patch Set: fix comment lines Created 3 years, 6 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/ServiceWorkerPaymentInstrument.java
diff --git a/chrome/android/java/src/org/chromium/chrome/browser/payments/ServiceWorkerPaymentInstrument.java b/chrome/android/java/src/org/chromium/chrome/browser/payments/ServiceWorkerPaymentInstrument.java
index c3d56c0509316b3525f4aa282fc0bac5595fb796..4579a9c810077bb3b383c493c56178e9f7b415ba 100644
--- a/chrome/android/java/src/org/chromium/chrome/browser/payments/ServiceWorkerPaymentInstrument.java
+++ b/chrome/android/java/src/org/chromium/chrome/browser/payments/ServiceWorkerPaymentInstrument.java
@@ -4,6 +4,8 @@
package org.chromium.chrome.browser.payments;
+import android.graphics.drawable.Drawable;
+
import org.chromium.content_public.browser.WebContents;
import org.chromium.payments.mojom.PaymentDetailsModifier;
import org.chromium.payments.mojom.PaymentItem;
@@ -39,11 +41,12 @@ public class ServiceWorkerPaymentInstrument extends PaymentInstrument {
* @param instrumentId The unique id of the payment instrument.
* @param label The label of the payment instrument.
* @param methodNames A set of payment method names supported by the payment instrument.
+ * @param icon The drawable icon of the payment instrument.
*/
public ServiceWorkerPaymentInstrument(WebContents webContents, long swRegistrationId,
- String instrumentId, String label, Set<String> methodNames) {
+ String instrumentId, String label, Set<String> methodNames, Drawable icon) {
super(Long.toString(swRegistrationId) + "#" + instrumentId, label, null /* sublabel */,
- null /* icon */);
+ icon);
mWebContents = webContents;
mSWRegistrationId = swRegistrationId;
mInstrumentId = instrumentId;

Powered by Google App Engine
This is Rietveld 408576698