DialogDelegate: begin supplanting GetDialogButtonLabel
This change introduces DialogDelegate::Params::button_labels and DialogDelegate::set_button_label(), and makes the default behavior of DialogDelegate::GetDialogButtonLabel() check Params::button_labels for a label assigned to the specified button. This change also converts a random handful of dialogs in //chrome to using this method to demonstrate how it will eventually look. There are many, many more to convert (~200) so subsequent CLs will be necessary. One big open question is what to do with dialogs like LocalCardMigrationDialogView, which change the reults of GetDialogButtonLabel based on the dialog's internal state... Bug: 1011446 Change-Id: Idbf9464fe32e519a2150b00a2179558cd7b78adb Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1853045Reviewed-by:Robert Liao <robliao@chromium.org> Reviewed-by:
Scott Violet <sky@chromium.org> Commit-Queue: Elly Fong-Jones <ellyjones@chromium.org> Cr-Commit-Position: refs/heads/master@{#705048}
Showing
Please register or sign in to comment