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

Unified Diff: third_party/WebKit/Source/modules/payments/PaymentRequest.cpp

Issue 2580893002: Gate web payments iframe support on runtime enabled feature. (Closed)
Patch Set: Created 4 years 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/modules/payments/PaymentRequest.cpp
diff --git a/third_party/WebKit/Source/modules/payments/PaymentRequest.cpp b/third_party/WebKit/Source/modules/payments/PaymentRequest.cpp
index 95a48b3223cf17c088e4c0ed8ad0fcabe7e3d13e..3170f08b9a4c710cd7331c9c7f23f22db4d89739 100644
--- a/third_party/WebKit/Source/modules/payments/PaymentRequest.cpp
+++ b/third_party/WebKit/Source/modules/payments/PaymentRequest.cpp
@@ -482,8 +482,10 @@ bool allowedToUsePaymentRequest(const Frame* frame) {
// is an iframe element with an |allowpaymentrequest| attribute specified, and
// whose node document is allowed to use the feature indicated by
// |allowpaymentrequest|, then return true.
- if (frame->owner() && frame->owner()->allowPaymentRequest())
+ if (RuntimeEnabledFeatures::paymentRequestIFrameEnabled() && frame->owner() &&
+ frame->owner()->allowPaymentRequest()) {
return allowedToUsePaymentRequest(frame->tree().parent());
+ }
// 4. Return false.
return false;
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698