Commit e260103e 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: Iade09088b5a7da8fb5bc0604facb2e0f9cb63218
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2500496
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@{#821088}
parent 70810942
...@@ -90,7 +90,7 @@ class HeadlessWebContentsImpl::Delegate : public content::WebContentsDelegate { ...@@ -90,7 +90,7 @@ class HeadlessWebContentsImpl::Delegate : public content::WebContentsDelegate {
} }
void ActivateContents(content::WebContents* contents) override { void ActivateContents(content::WebContents* contents) override {
contents->GetRenderViewHost()->GetWidget()->Focus(); contents->GetMainFrame()->GetRenderViewHost()->GetWidget()->Focus();
} }
void CloseContents(content::WebContents* source) override { void CloseContents(content::WebContents* source) override {
......
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