Index: third_party/WebKit/Source/modules/presentation/PresentationConnectionList.cpp |
diff --git a/third_party/WebKit/Source/modules/presentation/PresentationConnectionList.cpp b/third_party/WebKit/Source/modules/presentation/PresentationConnectionList.cpp |
index 1253eae3432abffa09a6b4b266eba0997d1cf6bc..909ad0ca4fce790d1a6596a9fd173e915312ccee 100644 |
--- a/third_party/WebKit/Source/modules/presentation/PresentationConnectionList.cpp |
+++ b/third_party/WebKit/Source/modules/presentation/PresentationConnectionList.cpp |
@@ -54,6 +54,16 @@ bool PresentationConnectionList::isEmpty() |
return m_connections.isEmpty(); |
} |
+PresentationConnection* PresentationConnectionList::findConnection(WebPresentationConnectionClient* connectionClient) |
+{ |
+ for (const auto& connection : m_connections) { |
+ if (connection->matches(connectionClient)) |
+ return connection.get(); |
+ } |
+ |
+ return nullptr; |
+} |
+ |
DEFINE_TRACE(PresentationConnectionList) |
{ |
visitor->trace(m_connections); |