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

Unified Diff: chrome/android/java/src/org/chromium/chrome/browser/payments/PaymentAppFactory.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/PaymentAppFactory.java
diff --git a/chrome/android/java/src/org/chromium/chrome/browser/payments/PaymentAppFactory.java b/chrome/android/java/src/org/chromium/chrome/browser/payments/PaymentAppFactory.java
index 69681e9fa519d71f7212d87263cbd26d3e0f5094..2c9720831e8591bbc200be24539fbb9573d04e51 100644
--- a/chrome/android/java/src/org/chromium/chrome/browser/payments/PaymentAppFactory.java
+++ b/chrome/android/java/src/org/chromium/chrome/browser/payments/PaymentAppFactory.java
@@ -4,6 +4,8 @@
package org.chromium.chrome.browser.payments;
+import android.content.Context;
+
import org.chromium.base.VisibleForTesting;
import org.chromium.content_public.browser.WebContents;
@@ -45,9 +47,9 @@ public class PaymentAppFactory {
*
* @param webContents The web contents where PaymentRequest was invoked.
*/
- public static List<PaymentApp> create(WebContents webContents) {
+ public static List<PaymentApp> create(Context context, WebContents webContents) {
List<PaymentApp> result = new ArrayList<>(2);
- result.add(new AutofillPaymentApp(webContents));
+ result.add(new AutofillPaymentApp(context, webContents));
if (sAdditionalFactory != null) result.addAll(sAdditionalFactory.create(webContents));
return result;
}

Powered by Google App Engine
This is Rietveld 408576698