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

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

Issue 2686613003: [Payments] Move address normalization code from android to native. (Closed)
Patch Set: Renamed file and addressed comments Created 3 years, 10 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 b781280aa9138b4bb11c0756f08f32a091cc9305..ef0826e2c614f41cd8c2d3605e9acc50c5043263 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
@@ -154,6 +154,11 @@ public class AutofillPaymentInstrument extends PaymentInstrument
if (!mIsWaitingForFullCardDetails) sendIntrumentDetails();
}
+ @Override
+ public void onCouldNotNormalize(AutofillProfile profile) {
+ onAddressNormalized(null);
+ }
+
/**
* Stringify the card details and send the resulting string and the method name to the
* registered callback.

Powered by Google App Engine
This is Rietveld 408576698