views: de-virtualize DialogDelegate::Close
This change makes DialogDelegate::Close non-virtual. It also splits DialogTest.AcceptAndCancel into several smaller tests, to avoid it needing to return false from Accept/Cancel/Close; this also makes the tests easier to follow. A followup CL will delete DialogDelegate::Close completely, replacing it with a new method DialogDelegate::CloseDialog(), for unit tests that want to simulate closing a dialog but have not created a Widget for it. Bug: 1011446 Change-Id: I2cb64c3c757e7685d32c1d3b99406999a2cf626d Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2068299 Commit-Queue: Elly Fong-Jones <ellyjones@chromium.org> Reviewed-by:Peter Boström <pbos@chromium.org> Cr-Commit-Position: refs/heads/master@{#744044}
Showing
Please register or sign in to comment