Chromium Code Reviews| Index: Source/modules/presentation/PresentationSessionClientCallbacks.cpp |
| diff --git a/Source/modules/presentation/PresentationSessionClientCallbacks.cpp b/Source/modules/presentation/PresentationSessionClientCallbacks.cpp |
| index 10033511af7fd644826875b4e18c519f6635feb6..18e55120e03ba6829bb90204af3c0787316c274b 100644 |
| --- a/Source/modules/presentation/PresentationSessionClientCallbacks.cpp |
| +++ b/Source/modules/presentation/PresentationSessionClientCallbacks.cpp |
| @@ -39,7 +39,9 @@ void PresentationSessionClientCallbacks::onSuccess(WebPresentationSessionClient* |
| return; |
| } |
| - m_resolver->resolve(PresentationSession::take(client, m_presentation)); |
| + PresentationSession* session = PresentationSession::take(client, m_presentation); |
| + session->didChangeState(WebPresentationSessionState::Connected); |
|
whywhat
2015/06/25 17:33:45
Seems wasteful to dispatch an event to just create
haibinlu
2015/06/25 18:45:36
Make sense. Pass in the initial state.
|
| + m_resolver->resolve(session); |
| } |
| void PresentationSessionClientCallbacks::onError(WebPresentationError* error) |