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

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

Issue 2815763002: Prevent usage of web payments API over insecure HTTPS. (Closed)
Patch Set: Self-review 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
Index: components/payments/content/payment_request_state.cc
diff --git a/components/payments/content/payment_request_state.cc b/components/payments/content/payment_request_state.cc
index c3f152640f2dfc5f3f3a10435ba887bfd6224670..284699feae9e06384b1ebbd53a7d944cbf00f940 100644
--- a/components/payments/content/payment_request_state.cc
+++ b/components/payments/content/payment_request_state.cc
@@ -59,6 +59,10 @@ bool PaymentRequestState::CanMakePayment() const {
return false;
}
+bool PaymentRequestState::AreRequestedMethodsSupported() const {
+ return !spec_->supported_card_networks().empty();
+}
+
void PaymentRequestState::AddObserver(Observer* observer) {
CHECK(observer);
observers_.AddObserver(observer);

Powered by Google App Engine
This is Rietveld 408576698