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..49ef4301d8567404270b4b4b5cd691ddb5e0d80f 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; |
dcheng
2016/09/28 23:55:13
Nit: auto*
zhaobin
2016/09/29 18:38:53
Done.
|
+ // 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; |
} |