[iOS] Remove coordinator checks from OverlayPresentationContextImpl
After crrev.com/c/1787562, OverlayPresenter will only present upon the presentation context when its presentation capabilities are sufficient to support the current request. Before that CL, OverlayPresenterImpl simply used the presence of a non-null presentation context as a signal for when presentation was possible, and would call ShowOverlayUI() on that context even if it was not yet provided with a coordinator capable of showing that request's UI. OverlayPresentationContextImpl simulated the presentation flow for requests sent by OverlayPresenter when the backing coordinator was null. After crrev.com/c/1787562, these condition blocks can be replaced with DCHECKs since the overlay UI presentating/cancelling/hiding functionality will not be called for unsupported requests. Bug: none Change-Id: Ia3bed1ffbf771f1b0deb0d17a81662111fec79c7 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2056206 Commit-Queue: Kurt Horimoto <kkhorimoto@chromium.org> Reviewed-by:Mike Dougherty <michaeldo@chromium.org> Cr-Commit-Position: refs/heads/master@{#741642}
Showing
Please register or sign in to comment