[Paint Preview] Avoid orphaning extra previews in demo mode
If one attempts to show multiple paint previews of the same tab we currently layer multiple atop each other resulting in prior versions being orphaned and stuck in the Tab's ContentView. Instead we should prevent showing multiple times. We could optionally add a toast here to indicate an abort occurred, but it would be better to just use the UI elements we intend to use for other usecases when they are ready. Bug: 1069177 Change-Id: I0251a17cd7ce819c9d2644a3efe58d9d8b6204da Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2142398 Commit-Queue: Calder Kitagawa <ckitagawa@chromium.org> Reviewed-by:Mehran Mahmoudi <mahmoudi@chromium.org> Cr-Commit-Position: refs/heads/master@{#757582}
Showing
Please register or sign in to comment