Index: Source/web/WebLocalFrameImpl.cpp |
diff --git a/Source/web/WebLocalFrameImpl.cpp b/Source/web/WebLocalFrameImpl.cpp |
index d6cd98afcfc33851aceab31721cd85945b931fba..60a50743a80c6a46949f075f0698cc7fa31189cd 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 "modules/speech/SpeechRecognitionController.h" |
@@ -1618,6 +1619,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); |
} |
} |