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

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

Issue 2525813003: Mark IFrame support in PaymentRequest experimental (Closed)
Patch Set: Remove duplicate check Created 4 years, 1 month 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 | third_party/WebKit/Source/modules/payments/HTMLIFrameElementPayments.idl » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/modules/payments/HTMLIFrameElementPayments.cpp
diff --git a/third_party/WebKit/Source/modules/payments/HTMLIFrameElementPayments.cpp b/third_party/WebKit/Source/modules/payments/HTMLIFrameElementPayments.cpp
index 6ce4b014a285edca5a6ecd3dc35d15b6d407c7c0..d06a96aa83bb6c16bae2f37c095fae416456a5c7 100644
--- a/third_party/WebKit/Source/modules/payments/HTMLIFrameElementPayments.cpp
+++ b/third_party/WebKit/Source/modules/payments/HTMLIFrameElementPayments.cpp
@@ -6,6 +6,7 @@
#include "core/dom/QualifiedName.h"
#include "core/html/HTMLIFrameElement.h"
+#include "platform/RuntimeEnabledFeatures.h"
namespace blink {
@@ -48,7 +49,8 @@ HTMLIFrameElementPayments& HTMLIFrameElementPayments::from(
// static
bool HTMLIFrameElementPayments::allowPaymentRequest(
HTMLIFrameElement& element) {
- return element.fastHasAttribute(HTMLNames::allowpaymentrequestAttr);
+ return RuntimeEnabledFeatures::paymentRequestIFrameEnabled() &&
+ element.fastHasAttribute(HTMLNames::allowpaymentrequestAttr);
}
DEFINE_TRACE(HTMLIFrameElementPayments) {
« no previous file with comments | « no previous file | third_party/WebKit/Source/modules/payments/HTMLIFrameElementPayments.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698