Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(707)

Unified Diff: third_party/WebKit/Source/web/LocalFrameClientImpl.cpp

Issue 2801823003: [Presentation API] Change connection to 'connected' if start a presentation with "https://www.googl… (Closed)
Patch Set: fix content_unittest and layout test failures Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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.

Powered by Google App Engine
This is Rietveld 408576698