Refactor: Reorder PostRenderViewReady in RFHM::CommitPending().
As it name implies, RenderViewHost::PostRenderViewReady() posts a task to the UI thread. So it should be able to reorder this instruction easily. On the other side, RenderViewHost::SetMainFrameRoutingId() isn't posting tasks to the UI thread. I don't see any good reasons not to reorder the two instructions. Reordering allow a slight simplification of RenderFrameHostManager::CommitPending(); Bug: 936696 Change-Id: I7730a5943a69aa3266cc79704775a95664a3354a Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1702411 Commit-Queue: Arthur Sonzogni <arthursonzogni@chromium.org> Reviewed-by:Alex Moshchuk <alexmos@chromium.org> Cr-Commit-Position: refs/heads/master@{#688995}
Showing
Please register or sign in to comment