| 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 aa15f6757e5519fb5445f5056d7a7f0b84bcb0c8..d7097b9a0f18dc66eef472f7e884c97ed3cae1eb 100644
|
| --- a/third_party/WebKit/Source/modules/presentation/PresentationReceiver.cpp
|
| +++ b/third_party/WebKit/Source/modules/presentation/PresentationReceiver.cpp
|
| @@ -39,7 +39,7 @@ ScriptPromise PresentationReceiver::connectionList(ScriptState* scriptState) {
|
| return m_connectionListProperty->promise(scriptState->world());
|
| }
|
|
|
| -void PresentationReceiver::onReceiverConnectionAvailable(
|
| +WebPresentationConnection* PresentationReceiver::onReceiverConnectionAvailable(
|
| const WebPresentationSessionInfo& sessionInfo) {
|
| // take() will call PresentationReceiver::registerConnection()
|
| // and register the connection.
|
| @@ -47,7 +47,7 @@ void PresentationReceiver::onReceiverConnectionAvailable(
|
|
|
| // receiver.connectionList property not accessed
|
| if (!m_connectionListProperty)
|
| - return;
|
| + return nullptr;
|
|
|
| if (m_connectionListProperty->getState() ==
|
| ScriptPromisePropertyBase::Pending)
|
| @@ -55,6 +55,8 @@ void PresentationReceiver::onReceiverConnectionAvailable(
|
| else if (m_connectionListProperty->getState() ==
|
| ScriptPromisePropertyBase::Resolved)
|
| m_connectionList->dispatchConnectionAvailableEvent(connection);
|
| +
|
| + return connection;
|
| }
|
|
|
| void PresentationReceiver::registerConnection(
|
|
|