appview: Fix crash when embedding app which doesn't listen for embed requests
AppViewGuest::LaunchAppAndFireEvent rejects guest contents creation if the app to be embedded does not listen for embed requests. However, the callback has already been moved into a pending response, so this is a use-after-move. We now create the pending response after checking for the existence of the embed request listener and before sending the request. Bug: 1124060 Change-Id: I27e6e2b0752be733d3415f5dd88eae314f90572b Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2440266Reviewed-by:Istiaque Ahmed <lazyboy@chromium.org> Reviewed-by:
James MacLean <wjmaclean@chromium.org> Commit-Queue: Kevin McNee <mcnee@chromium.org> Cr-Commit-Position: refs/heads/master@{#813195}
Showing
Please register or sign in to comment