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

Unified Diff: components/payments/content/payment_request_state.h

Issue 2766353004: [Payments] Support canMakePayment on Desktop (Closed)
Patch Set: only support valid instruments, added test Created 3 years, 9 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: components/payments/content/payment_request_state.h
diff --git a/components/payments/content/payment_request_state.h b/components/payments/content/payment_request_state.h
index ae2519f46782aacb42488d6e3032383dbb692182..11dc00f84151019a48596d36ec5f9d8dfc9eb3d8 100644
--- a/components/payments/content/payment_request_state.h
+++ b/components/payments/content/payment_request_state.h
@@ -56,6 +56,9 @@ class PaymentRequestState : public PaymentInstrument::Delegate {
autofill::PersonalDataManager* personal_data_manager);
~PaymentRequestState() override;
+ // Returns whether the user has at least one instrument that satisfies the
+ // specified supported payment methods.
+ bool CanMakePayment() const;
void AddObserver(Observer* observer);
void RemoveObserver(Observer* observer);
« no previous file with comments | « components/payments/content/payment_request.cc ('k') | components/payments/content/payment_request_state.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698