Cleanup. Use RenderFrameHostBrowserTest::web_contents().
RenderFrameHostImplBrowserTest defines: web_contents(). Tests can uses it, this is shorter and avoid doing many static_cast everywhere. This patch updates all the tests. This removes a lot of noise. This is 97 line shorter and ~50 static_cast are removed. By updating the whole file, goal is to make others start using it, instead of copy-pasting the old lines over and over. Bug: NONE Change-Id: Id06e69150ace6d9ba70983411c4830cfa4012a43 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2396117 Commit-Queue: Arthur Sonzogni <arthursonzogni@chromium.org> Reviewed-by:Alex Moshchuk <alexmos@chromium.org> Cr-Commit-Position: refs/heads/master@{#805247}
Showing
This diff is collapsed.
Please register or sign in to comment