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

Unified Diff: chrome/android/java/src/org/chromium/chrome/browser/payments/AutofillPaymentInstrument.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
Index: chrome/android/java/src/org/chromium/chrome/browser/payments/AutofillPaymentInstrument.java
diff --git a/chrome/android/java/src/org/chromium/chrome/browser/payments/AutofillPaymentInstrument.java b/chrome/android/java/src/org/chromium/chrome/browser/payments/AutofillPaymentInstrument.java
index bd0f5cd3b51a117532fa2d4316c34a3e93f70187..a9d8b971564823359dc7eb7c20ca74779f332e0d 100644
--- a/chrome/android/java/src/org/chromium/chrome/browser/payments/AutofillPaymentInstrument.java
+++ b/chrome/android/java/src/org/chromium/chrome/browser/payments/AutofillPaymentInstrument.java
@@ -34,7 +34,7 @@ public class AutofillPaymentInstrument
private CreditCard mCard;
private boolean mIsComplete;
@Nullable private AutofillProfile mBillingAddress;
- @Nullable private DetailsCallback mCallback;
+ @Nullable private InstrumentDetailsCallback mCallback;
/**
* Builds a payment instrument for the given credit card.
@@ -59,13 +59,14 @@ public class AutofillPaymentInstrument
}
@Override
- public String getMethodName() {
+ public String getInstrumentMethodName() {
return mCard.getBasicCardPaymentType();
}
@Override
- public void getDetails(String unusedMerchantName, String unusedOrigin, PaymentItem unusedTotal,
- List<PaymentItem> unusedCart, JSONObject unusedDetails, DetailsCallback callback) {
+ public void getInstrumentDetails(String unusedMerchantName, String unusedOrigin,
+ PaymentItem unusedTotal, List<PaymentItem> unusedCart, JSONObject unusedDetails,
+ InstrumentDetailsCallback callback) {
assert mIsComplete;
assert mCallback == null;
mCallback = callback;
@@ -132,7 +133,7 @@ public class AutofillPaymentInstrument
}
@Override
- public void dismiss() {}
+ public void dismissInstrument() {}
/** @return Whether the card is complete and ready to be sent to the merchant as-is. */
public boolean isComplete() {

Powered by Google App Engine
This is Rietveld 408576698