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

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

Issue 2874483002: [Presentation API] Remove closed connections from PresentationConnectionList (Closed)
Patch Set: rebase with master 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 d3ba5d0af7c5370e92829728a8451b37175a4a07..487cffeb85d43ebbb61750cd040f118acd49c0a4 100644
--- a/third_party/WebKit/Source/modules/presentation/PresentationReceiver.cpp
+++ b/third_party/WebKit/Source/modules/presentation/PresentationReceiver.cpp
@@ -101,6 +101,12 @@ void PresentationReceiver::TerminateConnection() {
window->close(GetFrame()->GetDocument());
}
+void PresentationReceiver::RemoveConnection(
+ WebPresentationConnection* connection) {
+ DCHECK(connection_list_);
+ connection_list_->RemoveConnection(connection);
+}
+
void PresentationReceiver::RegisterConnection(
PresentationConnection* connection) {
DCHECK(connection_list_);

Powered by Google App Engine
This is Rietveld 408576698