| 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 d20a52919ae54a9f4886c00058428d9b6c77c0a1..950e9f74d2cfadabe61c42eaafae1a0ff094ffec 100644
|
| --- a/third_party/WebKit/Source/modules/presentation/Presentation.cpp
|
| +++ b/third_party/WebKit/Source/modules/presentation/Presentation.cpp
|
| @@ -56,11 +56,13 @@ void Presentation::setDefaultRequest(PresentationRequest* request)
|
|
|
| PresentationReceiver* Presentation::receiver()
|
| {
|
| - // TODO(mlamouri): only return something if the Blink instance is running in
|
| + PresentationController* controller = PresentationController::from(*frame());
|
| + auto* client = controller ? controller->client() : nullptr;
|
| + // TODO(crbug.com/647296): only return something if the Blink instance is running in
|
| // presentation receiver mode. The flag PresentationReceiver could be used
|
| // for that.
|
| if (!m_receiver)
|
| - m_receiver = new PresentationReceiver(frame());
|
| + m_receiver = new PresentationReceiver(frame(), client);
|
| return m_receiver;
|
| }
|
|
|
|
|