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

Unified Diff: components/payments/core/payment_instrument.h

Issue 2813203004: [Payments] Show what's missing for incomplete payment methods. (Closed)
Patch Set: addressed comments, now two functions Created 3 years, 8 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 | « components/payments/core/autofill_payment_instrument_unittest.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/payments/core/payment_instrument.h
diff --git a/components/payments/core/payment_instrument.h b/components/payments/core/payment_instrument.h
index 5d70847f4f273358ce06978c94fb60caf22e148d..608235be4eaef5f8685fdbca2c8184d34e2557b5 100644
--- a/components/payments/core/payment_instrument.h
+++ b/components/payments/core/payment_instrument.h
@@ -39,6 +39,9 @@ class PaymentInstrument {
// Returns whether the instrument is complete to be used as a payment method
// without further editing.
virtual bool IsCompleteForPayment() = 0;
+ // Returns a message to indicate to the user what's missing for the instrument
+ // to be complete for payment.
+ virtual base::string16 GetMissingInfoLabel() = 0;
// Returns whether the instrument is valid for the purposes of responding to
// canMakePayment.
virtual bool IsValidForCanMakePayment() = 0;
« no previous file with comments | « components/payments/core/autofill_payment_instrument_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698