Commit 55238866 authored by Tal Pressman's avatar Tal Pressman Committed by Commit Bot

Remove RenderViewHostImpl::InitProcessAndAgentSchedulingGroup().

Use GetAgentSchedulingGroup().InitProcessAndMojos() instead.

Bug: 1111231
Change-Id: Iee0addc20fa11a7bbeb8fd437455ed26aaf6e2db
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2434107Reviewed-by: default avatarKentaro Hara <haraken@chromium.org>
Commit-Queue: Tal Pressman <talp@chromium.org>
Cr-Commit-Position: refs/heads/master@{#811126}
parent 9cc48b43
......@@ -25,6 +25,7 @@
#include "content/browser/child_process_security_policy_impl.h"
#include "content/browser/devtools/render_frame_devtools_agent_host.h"
#include "content/browser/net/cross_origin_opener_policy_reporter.h"
#include "content/browser/renderer_host/agent_scheduling_group_host.h"
#include "content/browser/renderer_host/debug_urls.h"
#include "content/browser/renderer_host/frame_navigation_entry.h"
#include "content/browser/renderer_host/frame_tree.h"
......@@ -2488,7 +2489,7 @@ bool RenderFrameHostManager::InitRenderView(
RenderFrameProxyHost* proxy) {
// Ensure the renderer process is initialized before creating the
// RenderView.
if (!render_view_host->InitProcessAndAgentSchedulingGroup())
if (!render_view_host->GetAgentSchedulingGroup().InitProcessAndMojos())
return false;
// We may have initialized this RenderViewHost for another RenderFrameHost.
......
......@@ -624,10 +624,6 @@ void RenderViewHostImpl::DispatchRenderViewCreated() {
has_notified_about_creation_ = true;
}
bool RenderViewHostImpl::InitProcessAndAgentSchedulingGroup() {
return GetAgentSchedulingGroup().InitProcessAndMojos();
}
void RenderViewHostImpl::ClosePage() {
is_waiting_for_page_close_completion_ = true;
......
......@@ -176,7 +176,9 @@ class CONTENT_EXPORT RenderViewHostImpl
// https://crbug.com/763548.
void DispatchRenderViewCreated();
bool InitProcessAndAgentSchedulingGroup();
// Returns the `AgentSchedulingGroupHost` this view is associated with (via
// the widget).
AgentSchedulingGroupHost& GetAgentSchedulingGroup();
// Tells the renderer process to request a page-scale animation based on the
// specified point/rect.
......@@ -355,10 +357,6 @@ class CONTENT_EXPORT RenderViewHostImpl
void OnPageClosed();
// Returns the `AgentSchedulingGroupHost` this view is associated with (via
// the widget).
AgentSchedulingGroupHost& GetAgentSchedulingGroup();
// TODO(creis): Move to a private namespace on RenderFrameHostImpl.
// Delay to wait on closing the WebContents for a beforeunload/unload handler
// to fire.
......
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