| Index: content/renderer/presentation/presentation_dispatcher.cc
|
| diff --git a/content/renderer/presentation/presentation_dispatcher.cc b/content/renderer/presentation/presentation_dispatcher.cc
|
| index eacf1aa36c64fec1a11f1755f3e38f998a2ca4a0..b3dd95550274345fd02c71d5ce9843de25971990 100644
|
| --- a/content/renderer/presentation/presentation_dispatcher.cc
|
| +++ b/content/renderer/presentation/presentation_dispatcher.cc
|
| @@ -330,16 +330,11 @@ void PresentationDispatcher::OnScreenAvailabilityNotSupported(
|
| UpdateListeningState(status);
|
| }
|
|
|
| -void PresentationDispatcher::OnDefaultSessionStarted(
|
| +void PresentationDispatcher::OnDefaultPresentationStarted(
|
| presentation::PresentationSessionInfoPtr session_info) {
|
| 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()));
|
| @@ -425,10 +420,6 @@ void PresentationDispatcher::ConnectToPresentationServiceIfNeeded() {
|
| presentation::PresentationServiceClientPtr client_ptr;
|
| binding_.Bind(GetProxy(&client_ptr), 16);
|
| presentation_service_->SetClient(client_ptr.Pass());
|
| -
|
| - presentation_service_->ListenForDefaultSessionStart(base::Bind(
|
| - &PresentationDispatcher::OnDefaultSessionStarted,
|
| - base::Unretained(this)));
|
| }
|
|
|
| void PresentationDispatcher::UpdateListeningState(AvailabilityStatus* status) {
|
|
|