Commit 45a1ccf9 authored by Lucas Furukawa Gadani's avatar Lucas Furukawa Gadani Committed by Commit Bot

Remove usages of WebContents::GetRenderViewHost().

This CL was uploaded by git cl split.

R=sadrul@chromium.org

Bug: 1142671
Change-Id: Idf1a6a3c792f968c39a3f22eea057d58b35f6c24
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2501126
Auto-Submit: Lucas Gadani <lfg@chromium.org>
Reviewed-by: default avatarSadrul Chowdhury <sadrul@chromium.org>
Commit-Queue: Sadrul Chowdhury <sadrul@chromium.org>
Cr-Commit-Position: refs/heads/master@{#821067}
parent 95c2f4e5
...@@ -28,8 +28,11 @@ class EventLatencyBrowserTest : public ContentBrowserTest { ...@@ -28,8 +28,11 @@ class EventLatencyBrowserTest : public ContentBrowserTest {
protected: protected:
RenderWidgetHostImpl* GetWidgetHost() { RenderWidgetHostImpl* GetWidgetHost() {
return RenderWidgetHostImpl::From( return RenderWidgetHostImpl::From(shell()
shell()->web_contents()->GetRenderViewHost()->GetWidget()); ->web_contents()
->GetMainFrame()
->GetRenderViewHost()
->GetWidget());
} }
// Starts the test server and navigates to the test page. Returns after the // Starts the test server and navigates to the test page. Returns after the
......
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