Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(678)

Issue 2483593002: RenderWidget: hoist synchronous IPC out of Init methods. (Closed)

Created:
4 years, 1 month ago by ncarter (slow)
Modified:
4 years, 1 month ago
Reviewers:
Jay Civelli, lfg
CC:
chromium-reviews, mlamouri+watch-content_chromium.org, jam, darin-cc_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

RenderWidget: hoist synchronous IPC (needed to allocate routing IDs) out of Init methods. 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/ab31e24367180e818edd6065f8b43277d99e6944 Cr-Commit-Position: refs/heads/master@{#431386}

Patch Set 1 #

Patch Set 2 : Rework #

Total comments: 4

Patch Set 3 : Rebase to pick up render_widget_fullscreen mojification #

Patch Set 4 : Fix correctness issues. #

Patch Set 5 : Fix unittest compile. #

Patch Set 6 : Fix unittest compile. #

Total comments: 4

Patch Set 7 : Handle IPC failure #

Unified diffs Side-by-side diffs Delta from patch set Stats (+67 lines, -108 lines) Patch
M content/renderer/render_view_impl.cc View 1 2 3 4 2 chunks +7 lines, -6 lines 0 comments Download
M content/renderer/render_widget.h View 1 2 3 6 chunks +11 lines, -15 lines 0 comments Download
M content/renderer/render_widget.cc View 1 2 3 4 5 6 5 chunks +38 lines, -62 lines 0 comments Download
M content/renderer/render_widget_fullscreen.h View 1 2 3 1 chunk +0 lines, -3 lines 0 comments Download
M content/renderer/render_widget_fullscreen.cc View 1 2 3 4 5 6 1 chunk +9 lines, -18 lines 0 comments Download
M content/renderer/render_widget_unittest.cc View 1 2 3 4 2 chunks +2 lines, -4 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 40 (28 generated)
ncarter (slow)
Hi Jay, Here's a sketch of the idea we were discussing. Please let me know ...
4 years, 1 month ago (2016-11-07 18:54:55 UTC) #6
Jay Civelli
Nice clean-up. Overall looks good to me.
4 years, 1 month ago (2016-11-07 19:28:30 UTC) #7
ncarter (slow)
On 2016/11/07 19:28:30, Jay Civelli wrote: > Nice clean-up. Overall looks good to me. Great, ...
4 years, 1 month ago (2016-11-07 19:39:14 UTC) #10
ncarter (slow)
+lfg, please review https://codereview.chromium.org/2483593002/diff/100001/content/renderer/render_widget.cc File content/renderer/render_widget.cc (left): https://codereview.chromium.org/2483593002/diff/100001/content/renderer/render_widget.cc#oldcode292 content/renderer/render_widget.cc:292: if (widget->Init(opener_id)) { // adds reference ...
4 years, 1 month ago (2016-11-09 22:52:38 UTC) #25
lfg
Overall looks good, just one question. https://codereview.chromium.org/2483593002/diff/100001/content/renderer/render_widget.cc File content/renderer/render_widget.cc (right): https://codereview.chromium.org/2483593002/diff/100001/content/renderer/render_widget.cc#newcode296 content/renderer/render_widget.cc:296: if (routing_id == ...
4 years, 1 month ago (2016-11-09 23:27:30 UTC) #26
ncarter (slow)
https://codereview.chromium.org/2483593002/diff/100001/content/renderer/render_widget.cc File content/renderer/render_widget.cc (right): https://codereview.chromium.org/2483593002/diff/100001/content/renderer/render_widget.cc#newcode296 content/renderer/render_widget.cc:296: if (routing_id == MSG_ROUTING_NONE) On 2016/11/09 23:27:30, lfg wrote: ...
4 years, 1 month ago (2016-11-10 18:44:45 UTC) #29
lfg
On 2016/11/10 18:44:45, ncarter wrote: > https://codereview.chromium.org/2483593002/diff/100001/content/renderer/render_widget.cc > File content/renderer/render_widget.cc (right): > > https://codereview.chromium.org/2483593002/diff/100001/content/renderer/render_widget.cc#newcode296 > ...
4 years, 1 month ago (2016-11-10 19:05:13 UTC) #30
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2483593002/120001
4 years, 1 month ago (2016-11-10 22:30:11 UTC) #34
commit-bot: I haz the power
Committed patchset #7 (id:120001)
4 years, 1 month ago (2016-11-10 22:43:25 UTC) #36
commit-bot: I haz the power
Patchset 7 (id:??) landed as https://crrev.com/ab31e24367180e818edd6065f8b43277d99e6944 Cr-Commit-Position: refs/heads/master@{#431386}
4 years, 1 month ago (2016-11-10 23:10:33 UTC) #38
Dirk Pranke
A revert of this CL (patchset #7 id:120001) has been created in https://codereview.chromium.org/2496633004/ by dpranke@chromium.org. ...
4 years, 1 month ago (2016-11-11 00:30:09 UTC) #39
ncarter (slow)
4 years, 1 month ago (2016-11-11 16:24:51 UTC) #40
Message was sent while issue was closed.
On 2016/11/11 00:30:09, Dirk Pranke wrote:
> A revert of this CL (patchset #7 id:120001) has been created in
> https://codereview.chromium.org/2496633004/ by mailto:dpranke@chromium.org.
> 
> The reason for reverting is: Well, this is dcheck'ing all over the place,
> congrats :).
> 
> Any number of builders are failing as a result, so I'm reverting this.
> 
> See
>
https://build.chromium.org/p/chromium.webkit/builders/WebKit%20Mac10.11%20%28...
> for the main waterfall builder's failures..

Thanks for the revert.

Powered by Google App Engine
This is Rietveld 408576698