Skip to content

Commit

Permalink
fixes widget host fetching from render view host (#21013)
Browse files Browse the repository at this point in the history
  • Loading branch information
trop[bot] authored and codebytere committed Nov 6, 2019
1 parent 6871b44 commit 5b33e9d
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions shell/browser/api/atom_api_web_contents.cc
Original file line number Diff line number Diff line change
Expand Up @@ -837,9 +837,8 @@ void WebContents::BeforeUnloadFired(bool proceed,
}

void WebContents::RenderViewCreated(content::RenderViewHost* render_view_host) {
auto* const impl = content::RenderWidgetHostImpl::FromID(
render_view_host->GetProcess()->GetID(),
render_view_host->GetRoutingID());
auto* impl = static_cast<content::RenderWidgetHostImpl*>(
render_view_host->GetWidget());
if (impl)
impl->disable_hidden_ = !background_throttling_;
}
Expand Down

0 comments on commit 5b33e9d

Please sign in to comment.