cbui crostini: refactor away CrostiniAppRestartView
This change removes CrostiniAppRestartView, replacing it with: * Construction and configuration of a bare View + DialogDelegate pair * A pair of public functions that create and show this dialog This change also adds some unit test coverage for this dialog to ensure that I didn't break it when doing this refactor. This change also fixes a bug in the dialog found by the new tests: the message used for the body was being given a parameter that was never used, which would have caused a crash if it had ever happened in a debug build. Bug: 1075649 Change-Id: Ia29640e1e47bd96c2996eba6c39722c477ff4aab Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2490345 Commit-Queue: Elly Fong-Jones <ellyjones@chromium.org> Reviewed-by:Joel Hockey <joelhockey@chromium.org> Cr-Original-Commit-Position: refs/heads/master@{#819545} Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2490518 Cr-Commit-Position: refs/heads/master@{#819979}
Showing
Please register or sign in to comment