| Index: Source/web/WebLocalFrameImpl.cpp
|
| diff --git a/Source/web/WebLocalFrameImpl.cpp b/Source/web/WebLocalFrameImpl.cpp
|
| index 3df622c6a65f3df19209258b24f9a049d57bc149..584666cc9e1620327a75017dff2024217dc7583a 100644
|
| --- a/Source/web/WebLocalFrameImpl.cpp
|
| +++ b/Source/web/WebLocalFrameImpl.cpp
|
| @@ -160,6 +160,7 @@
|
| #include "modules/push_messaging/PushController.h"
|
| #include "modules/screen_orientation/ScreenOrientationController.h"
|
| #include "modules/vr/VRController.h"
|
| +#include "modules/wake_lock/ScreenWakeLock.h"
|
| #include "platform/ScriptForbiddenScope.h"
|
| #include "platform/TraceEvent.h"
|
| #include "platform/UserGestureIndicator.h"
|
| @@ -1717,6 +1718,8 @@ void WebLocalFrameImpl::setCoreFrame(PassRefPtrWillBeRawPtr<LocalFrame> frame)
|
| PermissionController::provideTo(*m_frame, m_client ? m_client->permissionClient() : nullptr);
|
| if (RuntimeEnabledFeatures::webVREnabled())
|
| VRController::provideTo(*m_frame, m_client ? m_client->webVRClient() : nullptr);
|
| + if (RuntimeEnabledFeatures::wakeLockEnabled())
|
| + ScreenWakeLock::provideTo(*m_frame, m_client ? m_client->wakeLockClient() : nullptr);
|
| }
|
| }
|
|
|
|
|