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

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

Issue 2805263003: [Payments] Selecting incomplete items will open editors (Closed)
Patch Set: fix ios test for realz 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/BUILD.gn ('k') | components/payments/core/autofill_payment_instrument.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/payments/core/autofill_payment_instrument.h
diff --git a/components/payments/core/autofill_payment_instrument.h b/components/payments/core/autofill_payment_instrument.h
index 5968a21fe50820227b11da95c2ddabe92daa7298..84b343ab4c60b0002233c648ea91b9132098f22b 100644
--- a/components/payments/core/autofill_payment_instrument.h
+++ b/components/payments/core/autofill_payment_instrument.h
@@ -40,13 +40,16 @@ class AutofillPaymentInstrument
// PaymentInstrument:
void InvokePaymentApp(PaymentInstrument::Delegate* delegate) override;
- bool IsValid() override;
+ bool IsCompleteForPayment() override;
+ bool IsValidForCanMakePayment() override;
// autofill::payments::FullCardRequest::ResultDelegate:
void OnFullCardRequestSucceeded(const autofill::CreditCard& card,
const base::string16& cvc) override;
void OnFullCardRequestFailed() override;
+ autofill::CreditCard* credit_card() { return &credit_card_; }
+
private:
// A copy of the card is owned by this object.
autofill::CreditCard credit_card_;
« no previous file with comments | « components/payments/core/BUILD.gn ('k') | components/payments/core/autofill_payment_instrument.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698