| Index: third_party/WebKit/Source/modules/presentation/PresentationConnection.cpp
|
| diff --git a/third_party/WebKit/Source/modules/presentation/PresentationConnection.cpp b/third_party/WebKit/Source/modules/presentation/PresentationConnection.cpp
|
| index c53e1566af5bdd926c9d71049c4e1798cad4078d..aff5037bc1ac75e4fe5449193fcd08692915f982 100644
|
| --- a/third_party/WebKit/Source/modules/presentation/PresentationConnection.cpp
|
| +++ b/third_party/WebKit/Source/modules/presentation/PresentationConnection.cpp
|
| @@ -462,11 +462,19 @@ void PresentationConnection::DidChangeState(
|
| NOTREACHED();
|
| }
|
|
|
| +void PresentationConnection::NotifyTargetConnection(
|
| + WebPresentationConnectionState state) {
|
| + if (proxy_)
|
| + proxy_->NotifyTargetConnection(state);
|
| +}
|
| +
|
| void PresentationConnection::DidClose(
|
| WebPresentationConnectionCloseReason reason,
|
| const String& message) {
|
| - if (state_ == WebPresentationConnectionState::kClosed)
|
| + if (state_ == WebPresentationConnectionState::kClosed ||
|
| + state_ == WebPresentationConnectionState::kTerminated) {
|
| return;
|
| + }
|
|
|
| state_ = WebPresentationConnectionState::kClosed;
|
| DispatchStateChangeEvent(PresentationConnectionCloseEvent::Create(
|
|
|