Index: chrome/android/java/src/org/chromium/chrome/browser/payments/AutofillPaymentApp.java |
diff --git a/chrome/android/java/src/org/chromium/chrome/browser/payments/AutofillPaymentApp.java b/chrome/android/java/src/org/chromium/chrome/browser/payments/AutofillPaymentApp.java |
index 279ede6a2243df440f77ebcb891b162514464918..53acba8200b7ddb818ad1a1f49db30363dad038b 100644 |
--- a/chrome/android/java/src/org/chromium/chrome/browser/payments/AutofillPaymentApp.java |
+++ b/chrome/android/java/src/org/chromium/chrome/browser/payments/AutofillPaymentApp.java |
@@ -18,6 +18,7 @@ import org.chromium.content_public.browser.WebContents; |
import java.util.ArrayList; |
import java.util.HashSet; |
import java.util.List; |
+import java.util.Map; |
import java.util.Set; |
/** |
@@ -39,7 +40,8 @@ public class AutofillPaymentApp implements PaymentApp { |
} |
@Override |
- public void getInstruments(JSONObject unusedDetails, final InstrumentsCallback callback) { |
+ public void getInstruments( |
+ Map<String, JSONObject> unusedMethodData, final InstrumentsCallback callback) { |
PersonalDataManager pdm = PersonalDataManager.getInstance(); |
List<CreditCard> cards = pdm.getCreditCardsToSuggest(); |
final List<PaymentInstrument> instruments = new ArrayList<>(cards.size()); |
@@ -61,7 +63,7 @@ public class AutofillPaymentApp implements PaymentApp { |
} |
@Override |
- public Set<String> getSupportedMethodNames() { |
+ public Set<String> getAppMethodNames() { |
// https://w3c.github.io/webpayments-methods-card/#method-id |
// The spec also includes more detailed card types, e.g., "visa/credit" and "visa/debit". |
// Autofill does not distinguish between these types of cards, so they are not in the list |
@@ -84,7 +86,7 @@ public class AutofillPaymentApp implements PaymentApp { |
} |
@Override |
- public String getIdentifier() { |
+ public String getAppIdentifier() { |
return "Chrome_Autofill_Payment_App"; |
} |
} |