| Index: third_party/WebKit/Source/web/LocalFrameClientImpl.cpp
|
| diff --git a/third_party/WebKit/Source/web/LocalFrameClientImpl.cpp b/third_party/WebKit/Source/web/LocalFrameClientImpl.cpp
|
| index 0098a74c7df56d21f8ae5625965f14619200b80b..f1b88b1b6fb847b6052d74e06f916c355c2ee295 100644
|
| --- a/third_party/WebKit/Source/web/LocalFrameClientImpl.cpp
|
| +++ b/third_party/WebKit/Source/web/LocalFrameClientImpl.cpp
|
| @@ -59,6 +59,7 @@
|
| #include "modules/device_orientation/DeviceOrientationController.h"
|
| #include "modules/encryptedmedia/HTMLMediaElementEncryptedMedia.h"
|
| #include "modules/gamepad/NavigatorGamepad.h"
|
| +#include "modules/presentation/NavigatorPresentation.h"
|
| #include "modules/remoteplayback/HTMLMediaElementRemotePlayback.h"
|
| #include "modules/remoteplayback/RemotePlayback.h"
|
| #include "modules/serviceworkers/NavigatorServiceWorker.h"
|
| @@ -160,6 +161,10 @@ void LocalFrameClientImpl::dispatchDidClearWindowObjectInMainWorld() {
|
| if (RuntimeEnabledFeatures::webVREnabled() ||
|
| OriginTrials::webVREnabled(document->getExecutionContext()))
|
| NavigatorVR::from(*document);
|
| + if (RuntimeEnabledFeatures::presentationEnabled() &&
|
| + m_webFrame->frame()->settings()->getPresentationReceiver()) {
|
| + NavigatorPresentation::from(*document);
|
| + }
|
| }
|
| }
|
| // FIXME: when extensions go out of process, this whole concept stops working.
|
|
|