Swap ref_counted.h for scoped_refptr.h when appropriate in //components
At some point, scoped_refptr got split off into its own header. Use it
in //components headers when appropriate in place of ref_counted.h.
Mostly automated with the following commands:
git ls-files components | grep '\.h$' | \
xargs grep -l base/memory/ref_counted.h | xargs grep -L RefCounted | \
xargs grep -l 'scoped_refptr<' | \
xargs grep -L base/memory/scoped_refptr.h > list.txt
cat list.txt | \
xargs tools/add_header.py --header '"base/memory/scoped_refptr.h"'
cat list.txt | \
xargs tools/add_header.py --header '"base/memory/ref_counted.h"' \
--remove
Then do IWYU to fix the build.
Bug: 40245294
Change-Id: I680bbeb8e52e3c6d98d9ff63d50b43861581ee59
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7082315
Commit-Queue: Lei Zhang <thestig@chromium.org>
Reviewed-by: Sylvain Defresne <sdefresne@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1536064}
NOKEYCHECK=True
GitOrigin-RevId: 358efa50c232588a4bac39084a772f2eda3c9206
1 file changed