Index: third_party/WebKit/Source/core/dom/Fullscreen.cpp |
diff --git a/third_party/WebKit/Source/core/dom/Fullscreen.cpp b/third_party/WebKit/Source/core/dom/Fullscreen.cpp |
index f0e48fbf779f72f15e131b0357344568cdd7f096..a40e830bb426dbd82b7898d3faeb7deee22442c8 100644 |
--- a/third_party/WebKit/Source/core/dom/Fullscreen.cpp |
+++ b/third_party/WebKit/Source/core/dom/Fullscreen.cpp |
@@ -49,6 +49,7 @@ |
#include "core/svg/SVGSVGElement.h" |
#include "platform/ScopedOrientationChangeIndicator.h" |
#include "platform/UserGestureIndicator.h" |
+#include "platform/feature_policy/FeaturePolicy.h" |
namespace blink { |
@@ -63,7 +64,7 @@ bool AllowedToUseFullscreen(const Frame* frame) { |
if (!frame) |
return false; |
- if (!RuntimeEnabledFeatures::featurePolicyEnabled()) { |
+ if (!IsSupportedInFeaturePolicy(WebFeaturePolicyFeature::kFullscreen)) { |
// 2. If |document|'s browsing context is a top-level browsing context, then |
// return true. |
if (frame->IsMainFrame()) |