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

Unified Diff: third_party/WebKit/Source/modules/presentation/Presentation.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/modules/presentation/Presentation.cpp
diff --git a/third_party/WebKit/Source/modules/presentation/Presentation.cpp b/third_party/WebKit/Source/modules/presentation/Presentation.cpp
index 6cab8ca71f5ea99a50964823dcdf37e5ae45a09b..9dee78c3a43b8f6d7d2b0eb8768c1e10f60b1e63 100644
--- a/third_party/WebKit/Source/modules/presentation/Presentation.cpp
+++ b/third_party/WebKit/Source/modules/presentation/Presentation.cpp
@@ -24,6 +24,11 @@ Presentation* Presentation::create(LocalFrame* frame) {
PresentationController* controller = PresentationController::from(*frame);
ASSERT(controller);
controller->setPresentation(presentation);
+
+ if (frame->settings() && frame->settings()->getPresentationReceiver()) {
+ presentation->m_receiver =
+ new PresentationReceiver(frame, controller->client());
+ }
return presentation;
}

Powered by Google App Engine
This is Rietveld 408576698