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

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

Issue 2730303002: Move Feature Policy test to Frame (Closed)
Patch Set: Fix rebase 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: 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 c0de6d55b8f18b0621e3bc6e8d67a6b2f2d3889e..00c5752b282ec758ab79a473d34ea40369fcee09 100644
--- a/third_party/WebKit/Source/modules/payments/PaymentRequest.cpp
+++ b/third_party/WebKit/Source/modules/payments/PaymentRequest.cpp
@@ -6,7 +6,6 @@
#include <stddef.h>
#include <utility>
-#include "bindings/core/v8/ConditionalFeaturesForCore.h"
#include "bindings/core/v8/ExceptionState.h"
#include "bindings/core/v8/ScriptPromiseResolver.h"
#include "bindings/core/v8/ScriptState.h"
@@ -598,7 +597,7 @@ bool allowedToUsePaymentRequest(const Frame* frame) {
// 1. If FP, by itself, enables paymentrequest in this document, then
// paymentrequest is allowed.
- if (isFeatureEnabledInFrame(WebFeaturePolicyFeature::Payment, frame)) {
+ if (frame->isFeatureEnabled(WebFeaturePolicyFeature::Payment)) {
return true;
}
« no previous file with comments | « third_party/WebKit/Source/core/frame/Frame.cpp ('k') | third_party/WebKit/Source/modules/vibration/NavigatorVibration.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698