Elly Fong-Jones
18ca2de542
views: rename some DialogDelegate methods
This change renames:
* set_default_button -> SetDefaultButton
* set_buttons -> SetButtons
* set_button_label -> SetButtonLabel
* set_accept_callback -> SetAcceptCallback
* set_cancel_callback -> SetCancelCallback
* set_close_callback -> SetCloseCallback
so that these methods can start having side-effects (specifically, some
consistency DCHECKs).
This change was generated by this shell script:
#!/bin/sh
DD=DialogDelegate
find . -type f -name '*.cc' -o -name '*.h' -o -name '*.mm' | \
xargs sed -i \
-e "s/$DD::set_default_button/$DD::SetDefaultButton/g" \
-e "s/$DD::set_buttons/$DD::SetButtons/g" \
-e "s/$DD::set_button_label/$DD::SetButtonLabel/g" \
-e "s/$DD::set_accept_callback/$DD::SetAcceptCallback/g" \
-e "s/$DD::set_cancel_callback/$DD::SetCancelCallback/g" \
-e "s/$DD::set_close_callback/$DD::SetCloseCallback/g"
with a tiny amount of manual fixing-up afterwards.
Bug: 1011446
Change-Id: Ic9d34ac05c759e9bcb0bd2ce3d26d2fc0dd2f611
Tbr: joedow@chromium.org,avi@chromium.org
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2099084
Commit-Queue: Elly Fong-Jones <ellyjones@chromium.org>
Reviewed-by: Scott Violet <sky@chromium.org>
Cr-Commit-Position: refs/heads/master@{#750206}
2020-03-13 17:06:59 +00:00
..
2020-03-12 23:12:58 +00:00
2020-02-28 18:24:46 +00:00
2020-03-12 15:56:52 +00:00
2020-02-20 00:03:19 +00:00
2020-01-13 23:31:42 +00:00
2020-03-13 17:06:59 +00:00
2020-02-20 00:03:19 +00:00
2020-03-06 22:47:58 +00:00
2020-03-12 02:02:22 +00:00
2020-03-10 02:14:15 +00:00
2019-12-06 18:19:25 +00:00
2020-03-06 20:48:04 +00:00
2020-03-04 23:36:57 +00:00
2020-01-13 23:31:42 +00:00
2020-01-13 23:31:42 +00:00
2019-12-06 18:19:25 +00:00