AgentSchedulingGroupHost::SetUpMojo() is only called when set up is needed
Before crrev.com/c/2490442, we had SetUpMojoIfNeeded() calls in places where it was ambiguous whether the AgentSchedulingGroupHost mojos needed to be initialized or not. After that CL, the lifetimes of the AgentSchedulingGroupHost mojos match those of the RenderProcessHostImpl, and we removed some calls to SetUpMojoIfNeeded(), and left the only callsites that were required to actually setup mojo. By way of a follow-up, this CL renames the method to SetUpMojo(), and changes its implementation to assert that the AgentSchedulingGroupHost mojos are unbound and need to be bound. Bug: 1111231 Change-Id: I963fc51a99a665ed729abca6f023f33338d4e2c1 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2533161 Commit-Queue: Dominic Farolino <dom@chromium.org> Reviewed-by:Kentaro Hara <haraken@chromium.org> Reviewed-by:
Kouhei Ueno <kouhei@chromium.org> Reviewed-by:
Tal Pressman <talp@chromium.org> Cr-Commit-Position: refs/heads/master@{#827332}
Showing
Please register or sign in to comment