Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(109)

Unified Diff: third_party/WebKit/Source/modules/presentation/PresentationReceiver.cpp

Issue 2863903002: [Presentation API] Change controller connection to 'terminated' when receiver connection terminates (Closed)
Patch Set: fix layout test failures Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/modules/presentation/PresentationReceiver.cpp
diff --git a/third_party/WebKit/Source/modules/presentation/PresentationReceiver.cpp b/third_party/WebKit/Source/modules/presentation/PresentationReceiver.cpp
index a0df1f30b47a01bfe3d4f314a57cf259f4a71293..d3ba5d0af7c5370e92829728a8451b37175a4a07 100644
--- a/third_party/WebKit/Source/modules/presentation/PresentationReceiver.cpp
+++ b/third_party/WebKit/Source/modules/presentation/PresentationReceiver.cpp
@@ -84,8 +84,10 @@ void PresentationReceiver::DidChangeConnectionState(
// connection state change.
DCHECK(state == WebPresentationConnectionState::kTerminated);
- for (auto connection : connection_list_->connections())
+ for (auto connection : connection_list_->connections()) {
+ connection->NotifyTargetConnection(state);
connection->DidChangeState(state, false /* shouldDispatchEvent */);
+ }
}
void PresentationReceiver::TerminateConnection() {

Powered by Google App Engine
This is Rietveld 408576698