cbui: remove SaveCardOfferBubbleViews CreateFootnoteView
For this dialog, the LegalMessageLines parameter comes from SaveCardBubbleControllerImpl, which has two code paths to show this dialog. Both those code paths look roughly like this: if (already_showing_dialog) return; legal_message_lines_ = ...; ShowDialog(); and there are no other places that change legal_message_lines_, so it is effectively const across the lifetime of the dialog. Unfortunately, because the same SaveCardBubbleControllerImpl is used for several different concrete bubble subclasses, changing the behavior of ShowDialog to simply pass the message lines in as a constructor parameter (which would make it obvious that it's const for the lifetime of the dialog) is not easy to do. Bug: 1011446 Change-Id: I9b0584de8495b97f685b2973134e9d04873c317e Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1917520Reviewed-by:Peter Boström <pbos@chromium.org> Commit-Queue: Elly Fong-Jones <ellyjones@chromium.org> Cr-Commit-Position: refs/heads/master@{#715447}
Showing
Please register or sign in to comment