| Index: content/renderer/presentation/presentation_dispatcher.cc
|
| diff --git a/content/renderer/presentation/presentation_dispatcher.cc b/content/renderer/presentation/presentation_dispatcher.cc
|
| index a2c7bc864083451d882759d71de7d608c5a065a3..d229b6fcaa0fd08e00a6ab128e2e7ad7afe28db7 100644
|
| --- a/content/renderer/presentation/presentation_dispatcher.cc
|
| +++ b/content/renderer/presentation/presentation_dispatcher.cc
|
| @@ -335,11 +335,6 @@ void PresentationDispatcher::OnDefaultSessionStarted(
|
| if (!controller_)
|
| return;
|
|
|
| - // Reset the callback to get the next event.
|
| - presentation_service_->ListenForDefaultSessionStart(base::Bind(
|
| - &PresentationDispatcher::OnDefaultSessionStarted,
|
| - base::Unretained(this)));
|
| -
|
| if (!session_info.is_null()) {
|
| controller_->didStartDefaultSession(
|
| new PresentationConnectionClient(session_info.Clone()));
|
| @@ -424,9 +419,6 @@ void PresentationDispatcher::ConnectToPresentationServiceIfNeeded() {
|
| binding_.Bind(GetProxy(&client_ptr));
|
| presentation_service_->SetClient(client_ptr.Pass());
|
|
|
| - presentation_service_->ListenForDefaultSessionStart(base::Bind(
|
| - &PresentationDispatcher::OnDefaultSessionStarted,
|
| - base::Unretained(this)));
|
| presentation_service_->ListenForSessionStateChange();
|
| }
|
|
|
|
|