Commit b9fe1605 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=lazyboy@chromium.org

Bug: 1142671
Change-Id: I7c026fe91d2a8333295694d6b9bae1aaf62a0bd4
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2501124
Auto-Submit: Lucas Gadani <lfg@chromium.org>
Reviewed-by: default avatarIstiaque Ahmed <lazyboy@chromium.org>
Commit-Queue: Istiaque Ahmed <lazyboy@chromium.org>
Cr-Commit-Position: refs/heads/master@{#821129}
parent f18f897a
...@@ -295,7 +295,7 @@ void RenderViewContextMenuBase::RemoveAdjacentSeparators() { ...@@ -295,7 +295,7 @@ void RenderViewContextMenuBase::RemoveAdjacentSeparators() {
} }
RenderViewHost* RenderViewContextMenuBase::GetRenderViewHost() const { RenderViewHost* RenderViewContextMenuBase::GetRenderViewHost() const {
return source_web_contents_->GetRenderViewHost(); return source_web_contents_->GetMainFrame()->GetRenderViewHost();
} }
WebContents* RenderViewContextMenuBase::GetWebContents() const { WebContents* RenderViewContextMenuBase::GetWebContents() const {
......
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