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

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

Issue 2766353004: [Payments] Support canMakePayment on Desktop (Closed)
Patch Set: 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..b27e1b528525233eb8a0812a60b8da0d6582685b 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();
please use gerrit instead 2017/03/24 14:47:25 This method should be const.
Mathieu 2017/03/24 15:38:41 Done.
void AddObserver(Observer* observer);
void RemoveObserver(Observer* observer);

Powered by Google App Engine
This is Rietveld 408576698