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

Unified Diff: third_party/WebKit/Source/core/dom/Fullscreen.cpp

Issue 2651883008: Make content::FeaturePolicy implement WebFeaturePolicy, and use it in blink code (Closed)
Patch Set: Cleanup Created 3 years, 10 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/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 7d3ee2056cb1247c5be7ab1cd725bc0787e2b8f0..ddb8d21e7349a0e10c4444521e10de89227cb667 100644
--- a/third_party/WebKit/Source/core/dom/Fullscreen.cpp
+++ b/third_party/WebKit/Source/core/dom/Fullscreen.cpp
@@ -50,6 +50,7 @@
#include "core/svg/SVGSVGElement.h"
#include "platform/ScopedOrientationChangeIndicator.h"
#include "platform/UserGestureIndicator.h"
+#include "public/platform/Platform.h"
namespace blink {
@@ -86,8 +87,7 @@ bool allowedToUseFullscreen(const Frame* frame) {
// 1. If FP, by itself, enables fullscreen in this document, then fullscreen
// is allowed.
- if (frame->securityContext()->getFeaturePolicy()->isFeatureEnabled(
- kFullscreenFeature)) {
+ if (isFeatureEnabledInFrame(WebFeaturePolicyFeature::Fullscreen, frame)) {
return true;
}

Powered by Google App Engine
This is Rietveld 408576698