[Cleanup] Use WebContentsConsoleObserver in NavigationBrowserTests
Update NavigationBrowserTests to use WebContentsConsoleObserver instead of ConsoleObserverDelegate. This allows us to observe console messages added without overriding the existing delegate of the WebContents. Additionally, we no longer have to worry about the lifetime of the observer (since it handles its own cleanup), so these can be properly scoped. Bug: 1034150 Change-Id: Idf52898484da7e5ec3fd0d3210580acba8294096 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1983591Reviewed-by:Alex Moshchuk <alexmos@chromium.org> Commit-Queue: Devlin <rdevlin.cronin@chromium.org> Cr-Commit-Position: refs/heads/master@{#729546}
Showing
This diff is collapsed.
Please register or sign in to comment