| 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 cf4f2f2456fdb9064a8b30600399f1de293c54eb..cee3ca5bb27873e4f34b5e547fb645da8f89bff8 100644
|
| --- a/third_party/WebKit/Source/modules/presentation/PresentationConnectionList.cpp
|
| +++ b/third_party/WebKit/Source/modules/presentation/PresentationConnectionList.cpp
|
| @@ -40,6 +40,17 @@ void PresentationConnectionList::AddConnection(
|
| connections_.push_back(connection);
|
| }
|
|
|
| +bool PresentationConnectionList::RemoveConnection(
|
| + WebPresentationConnection* connection) {
|
| + for (size_t i = 0; i < connections_.size(); i++) {
|
| + if (connections_[i] == connection) {
|
| + connections_.erase(i);
|
| + return true;
|
| + }
|
| + }
|
| + return false;
|
| +}
|
| +
|
| void PresentationConnectionList::DispatchConnectionAvailableEvent(
|
| PresentationConnection* connection) {
|
| DispatchEvent(PresentationConnectionAvailableEvent::Create(
|
|
|