| Index: content/renderer/presentation/presentation_dispatcher.cc
|
| diff --git a/content/renderer/presentation/presentation_dispatcher.cc b/content/renderer/presentation/presentation_dispatcher.cc
|
| index 9eb9c679569150bb720d5c320bf872014cf3cbdf..1a249e8ad08b8883e459bd383960f605dc803fea 100644
|
| --- a/content/renderer/presentation/presentation_dispatcher.cc
|
| +++ b/content/renderer/presentation/presentation_dispatcher.cc
|
| @@ -337,11 +337,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()));
|
| @@ -426,9 +421,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();
|
| }
|
|
|
|
|