[Cleanup] Use WebContentsConsoleObserver in RFHImpl tests
Update RenderFrameHostImpl browser tests to use WebContentsConsoleObserver instead of ConsoleObserverDelegate. This allows us to observe console messages added without overriding the existing delegate of the WebContents. Bonus cleanups: - Avoids the static_cast to WebContentsImpl - No need for a filter specifying "*" Bug: 1034150 Change-Id: I24513a79cbcce736cb003cb4fba3c966db9fcd19 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1976293Reviewed-by:Alex Moshchuk <alexmos@chromium.org> Commit-Queue: Devlin <rdevlin.cronin@chromium.org> Cr-Commit-Position: refs/heads/master@{#727272}
Showing
Please register or sign in to comment