| 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 bbefd948fc6eee8837c51d4f2f38aa304c359274..14aea2196ba1860d7528fa487ad86f398c4263c5 100644
|
| --- a/third_party/WebKit/Source/modules/presentation/PresentationReceiver.cpp
|
| +++ b/third_party/WebKit/Source/modules/presentation/PresentationReceiver.cpp
|
| @@ -49,14 +49,15 @@ WebPresentationConnection* PresentationReceiver::onReceiverConnectionAvailable(
|
|
|
| // receiver.connectionList property not accessed
|
| if (!m_connectionListProperty)
|
| - return nullptr;
|
| + return connection;
|
|
|
| if (m_connectionListProperty->getState() ==
|
| - ScriptPromisePropertyBase::Pending)
|
| + ScriptPromisePropertyBase::Pending) {
|
| m_connectionListProperty->resolve(m_connectionList);
|
| - else if (m_connectionListProperty->getState() ==
|
| - ScriptPromisePropertyBase::Resolved)
|
| + } else if (m_connectionListProperty->getState() ==
|
| + ScriptPromisePropertyBase::Resolved) {
|
| m_connectionList->dispatchConnectionAvailableEvent(connection);
|
| + }
|
|
|
| return connection;
|
| }
|
|
|