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

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

Issue 2436883002: Make PaymentOption store a Drawable instead of id (Closed)
Patch Set: Fix presubmit warning Created 4 years, 2 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/PaymentInstrument.java
diff --git a/chrome/android/java/src/org/chromium/chrome/browser/payments/PaymentInstrument.java b/chrome/android/java/src/org/chromium/chrome/browser/payments/PaymentInstrument.java
index c799a7814d292cdd7bc2d8c0ae2cbdbe67d61180..dc4795953278635a2f3711916f0d40ea8ed5a294 100644
--- a/chrome/android/java/src/org/chromium/chrome/browser/payments/PaymentInstrument.java
+++ b/chrome/android/java/src/org/chromium/chrome/browser/payments/PaymentInstrument.java
@@ -4,11 +4,13 @@
package org.chromium.chrome.browser.payments;
-import org.chromium.chrome.browser.payments.ui.PaymentOption;
-import org.chromium.payments.mojom.PaymentItem;
+import android.graphics.drawable.Drawable;
import org.json.JSONObject;
+import org.chromium.chrome.browser.payments.ui.PaymentOption;
+import org.chromium.payments.mojom.PaymentItem;
+
import java.util.List;
/**
@@ -33,7 +35,7 @@ public abstract class PaymentInstrument extends PaymentOption {
void onInstrumentDetailsError();
}
- protected PaymentInstrument(String id, String label, String sublabel, int icon) {
+ protected PaymentInstrument(String id, String label, String sublabel, Drawable icon) {
super(id, label, sublabel, icon);
}

Powered by Google App Engine
This is Rietveld 408576698