Commit e6cd413f authored by arthursonzogni's avatar arthursonzogni Committed by Commit Bot

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: default avatarAlex Moshchuk <alexmos@chromium.org>
Cr-Commit-Position: refs/heads/master@{#805247}
parent ecd3ac70
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment