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

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

Issue 2434333005: Introduce method data map in getInstrument (Closed)
Patch Set: Fix compilation 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
« no previous file with comments | « no previous file | chrome/android/java/src/org/chromium/chrome/browser/payments/AutofillPaymentInstrument.java » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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";
}
}
« no previous file with comments | « no previous file | chrome/android/java/src/org/chromium/chrome/browser/payments/AutofillPaymentInstrument.java » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698