DescriptionRenderWidget: hoist synchronous IPC (needed to allocate routing IDs) out of Init methods.
[ Re-land of https://codereview.chromium.org/2483593002/ -- r431386 ]
RenderWidget now requires two Init phases that are always called, and always in this order:
- InitRoutingID (formerly SetRoutingID)
- Init (formerly DoInit).
Two distinct Init phases are needed to solve an ordering problem in RenderView.
Instead of Init being parameterized on a callback to allocate a
route ID, just do the IPC outside of Init, and pass the result in.
BUG=627852
Committed: https://crrev.com/4df698d8d1f107c9518f68c2b53213cc6c0086fa
Cr-Commit-Position: refs/heads/master@{#431627}
Patch Set 1 : [as originally landed / reverted] #Patch Set 2 : Remove DCHECKS which rediscovered an old bug. #
Dependent Patchsets: Messages
Total messages: 14 (9 generated)
|