[iOS] Early return when cancelling UI that hasn't been presented.
OverlayPresentationContext::CancelOverlayUI() has no guarantees that the UI being cancelled has been requested yet. For example, the referenced crash occurs when cancelling a queued request whose UI has never been shown. The previous code assumed that CancelOverlayUI() was only ever called for OverlayRequests for which ShowOverlayUI() has been called previously. This CL updates the logic to early return if it's called for requests that haven't been passed to ShowOverlayUI(). Bug: 991614 Change-Id: I63532e13a32c10498901ae9b70082ded1b348c16 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1762354 Commit-Queue: Kurt Horimoto <kkhorimoto@chromium.org> Auto-Submit: Kurt Horimoto <kkhorimoto@chromium.org> Reviewed-by:Sergio Collazos <sczs@chromium.org> Cr-Commit-Position: refs/heads/master@{#688671}
Showing
Please register or sign in to comment