Chromium Code Reviews
Descriptionui/views: convert usage of FOR_EACH_OBSERVER macro
ObserverList now supports range-based for loops and thus this can be
used to iterate through a list of observers as the FOR_EACH_OBSERVER
macro was deprecated.
This patch was generated by the following command line:
$ cd ui/views
$ perl -0777 -pi -e
's/FOR_EACH_OBSERVER\(\s*([\w:]+?)\s*,\s*([\w:()]+?)\s*,\s*([^;]+?)\);/for
(\1& observer : \2) observer.\3;/mg' $(git gs FOR_EACH_OBSERVER | cut -d: -f1 | uniq)
And then manually inspected for line indentation fixes.
BUG=655021
TEST=views_unittests
R=sadrul@chromium.org
Committed: https://crrev.com/725a3dbcf54b79a10d1eba8f8164f7e22d4dab06
Cr-Commit-Position: refs/heads/master@{#425359}
Patch Set 1 #
Messages
Total messages: 20 (9 generated)
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||