| Index: content/browser/presentation/presentation_service_impl.cc
|
| diff --git a/content/browser/presentation/presentation_service_impl.cc b/content/browser/presentation/presentation_service_impl.cc
|
| index 46ec67cf0158791d666a023c92abfb3e71e47546..ec09147694bb4139f0304b3378e9562fba246aaf 100644
|
| --- a/content/browser/presentation/presentation_service_impl.cc
|
| +++ b/content/browser/presentation/presentation_service_impl.cc
|
| @@ -307,6 +307,9 @@ void PresentationServiceImpl::OnStartSessionSucceeded(
|
| ListenForConnectionStateChange(session_info);
|
| pending_start_session_cb_.reset();
|
| start_session_request_id_ = kInvalidRequestSessionId;
|
| + OnConnectionStateChanged(session_info,
|
| + PresentationConnectionStateChangeInfo(
|
| + PRESENTATION_CONNECTION_STATE_CONNECTED));
|
| }
|
|
|
| void PresentationServiceImpl::OnStartSessionError(
|
| @@ -330,6 +333,9 @@ void PresentationServiceImpl::OnJoinSessionSucceeded(
|
| blink::mojom::PresentationSessionInfo::From(session_info),
|
| blink::mojom::PresentationErrorPtr())) {
|
| ListenForConnectionStateChange(session_info);
|
| + OnConnectionStateChanged(session_info,
|
| + PresentationConnectionStateChangeInfo(
|
| + PRESENTATION_CONNECTION_STATE_CONNECTED));
|
| }
|
| }
|
|
|
| @@ -421,6 +427,9 @@ void PresentationServiceImpl::Terminate(const GURL& presentation_url,
|
| void PresentationServiceImpl::OnConnectionStateChanged(
|
| const PresentationSessionInfo& connection,
|
| const PresentationConnectionStateChangeInfo& info) {
|
| + DVLOG(2) << "PresentationServiceImpl::OnConnectionStateChanged "
|
| + << "[presentation_id]: " << connection.presentation_id
|
| + << " [state]: " << info.state;
|
| DCHECK(client_.get());
|
| if (info.state == PRESENTATION_CONNECTION_STATE_CLOSED) {
|
| client_->OnConnectionClosed(
|
|
|