| Index: content/renderer/presentation/presentation_dispatcher.cc
|
| diff --git a/content/renderer/presentation/presentation_dispatcher.cc b/content/renderer/presentation/presentation_dispatcher.cc
|
| index 8100c03b94ed8b117aa243379d37bd18328ef2eb..23909672f944a79a53acbbcb8212d12ee7d57f00 100644
|
| --- a/content/renderer/presentation/presentation_dispatcher.cc
|
| +++ b/content/renderer/presentation/presentation_dispatcher.cc
|
| @@ -344,6 +344,9 @@ void PresentationDispatcher::OnSessionCreated(
|
|
|
| DCHECK(!session_info.is_null());
|
| callback->onSuccess(new PresentationSessionClient(session_info.Pass()));
|
| + presentation_service_->ListenForSessionMessages(
|
| + base::Bind(&PresentationDispatcher::OnSessionMessagesReceived,
|
| + base::Unretained(this)));
|
| }
|
|
|
| void PresentationDispatcher::OnSessionStateChange(
|
| @@ -404,9 +407,6 @@ void PresentationDispatcher::ConnectToPresentationServiceIfNeeded() {
|
| presentation_service_->ListenForSessionStateChange(base::Bind(
|
| &PresentationDispatcher::OnSessionStateChange,
|
| base::Unretained(this)));
|
| - presentation_service_->ListenForSessionMessages(
|
| - base::Bind(&PresentationDispatcher::OnSessionMessagesReceived,
|
| - base::Unretained(this)));
|
| */
|
| }
|
|
|
|
|