Index: Source/web/WebLocalFrameImpl.cpp |
diff --git a/Source/web/WebLocalFrameImpl.cpp b/Source/web/WebLocalFrameImpl.cpp |
index f76896c3f23fb65b580a2ba22ff88e51abc7668d..db97b982cd71baa31f586121e08c1c8b99279c09 100644 |
--- a/Source/web/WebLocalFrameImpl.cpp |
+++ b/Source/web/WebLocalFrameImpl.cpp |
@@ -150,6 +150,7 @@ |
#include "core/timing/Performance.h" |
#include "modules/geolocation/GeolocationController.h" |
#include "modules/notifications/NotificationPermissionClient.h" |
+#include "modules/presentation/PresentationController.h" |
#include "modules/push_messaging/PushController.h" |
#include "modules/screen_orientation/ScreenOrientationController.h" |
#include "platform/ScriptForbiddenScope.h" |
@@ -1615,6 +1616,8 @@ void WebLocalFrameImpl::setCoreFrame(PassRefPtrWillBeRawPtr<LocalFrame> frame) |
if (RuntimeEnabledFeatures::screenOrientationEnabled()) |
ScreenOrientationController::provideTo(*m_frame, m_client ? m_client->webScreenOrientationClient() : nullptr); |
+ if (RuntimeEnabledFeatures::presentationEnabled()) |
+ PresentationController::provideTo(*m_frame, m_client ? m_client->presentationClient() : nullptr); |
} |
} |