Commit 90e6b3b3 authored by Devlin Cronin's avatar Devlin Cronin Committed by Commit Bot

[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: default avatarAlex Moshchuk <alexmos@chromium.org>
Commit-Queue: Devlin <rdevlin.cronin@chromium.org>
Cr-Commit-Position: refs/heads/master@{#729546}
parent 927e8f8c
This diff is collapsed.
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