Commit 402fd1dd 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=caseq@chromium.org

Bug: 1142671
Change-Id: I3f7d51a37c7a4343cb5e5c891992f4a21aa3fef1
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2500615
Auto-Submit: Lucas Gadani <lfg@chromium.org>
Reviewed-by: default avatarAndrey Kosyakov <caseq@chromium.org>
Commit-Queue: Andrey Kosyakov <caseq@chromium.org>
Cr-Commit-Position: refs/heads/master@{#821115}
parent d209add6
......@@ -256,8 +256,11 @@ IN_PROC_BROWSER_TEST_F(SyntheticKeyEventTest, DISABLED_KeyboardEventAck) {
"document.body.addEventListener('keydown', () => {debugger;});"));
auto filter = std::make_unique<InputMsgWatcher>(
RenderWidgetHostImpl::From(
shell()->web_contents()->GetRenderViewHost()->GetWidget()),
RenderWidgetHostImpl::From(shell()
->web_contents()
->GetMainFrame()
->GetRenderViewHost()
->GetWidget()),
blink::WebInputEvent::Type::kRawKeyDown);
SendCommand("Debugger.enable", nullptr);
......@@ -282,8 +285,11 @@ IN_PROC_BROWSER_TEST_F(SyntheticMouseEventTest, MouseEventAck) {
"document.body.addEventListener('mousedown', () => {debugger;});"));
auto filter = std::make_unique<InputMsgWatcher>(
RenderWidgetHostImpl::From(
shell()->web_contents()->GetRenderViewHost()->GetWidget()),
RenderWidgetHostImpl::From(shell()
->web_contents()
->GetMainFrame()
->GetRenderViewHost()
->GetWidget()),
blink::WebInputEvent::Type::kMouseDown);
SendCommand("Debugger.enable", nullptr);
......
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