Two pieces of cleanup for ui/views/controls/.
(1) Link() calls Init() unconditionally from its constructor and nowhere else. Inline this. (2) No one calls MessageBoxView::SetLink() with empty |text|. Remove the handling for that case and add DCHECKs. Bug: none Change-Id: Id5d95010d8c06340d30707db42515f4769d2cba5 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1983431 Commit-Queue: Peter Kasting <pkasting@chromium.org> Reviewed-by:Peter Boström <pbos@chromium.org> Auto-Submit: Peter Kasting <pkasting@chromium.org> Cr-Commit-Position: refs/heads/master@{#728140}
Showing
Please register or sign in to comment