Index: Source/web/WebLocalFrameImpl.cpp |
diff --git a/Source/web/WebLocalFrameImpl.cpp b/Source/web/WebLocalFrameImpl.cpp |
index e67844eeff183abf2cf38160829757437e54303b..ba62e8809b598da01dc79dc2ac179e9702c4d497 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" |
@@ -1617,6 +1618,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); |
} |
} |