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

Issue 2493293002: RenderWidget: make routing_id be a parameter of the ctor (Closed)

Created:
4 years, 1 month ago by ncarter (slow)
Modified:
4 years, 1 month ago
Reviewers:
lfg
CC:
chromium-reviews, mlamouri+watch-content_chromium.org, creis+watch_chromium.org, mlamouri+watch-test-runner_chromium.org, nasko+codewatch_chromium.org, jam, darin-cc_chromium.org, einbinder+watch-test-runner_chromium.org, jochen+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

RenderWidget: make routing_id be a parameter of the ctor This fixes a longstanding issue where, in layout-test-specific code, a RenderViewObserver was instantiated before the RenderView was fully initialized with a routing ID. RenderViewObserver internally caches the routing id, so that's dangerous. BUG=627852 Committed: https://crrev.com/8331f8ad9053ee1effd499ad29b5a806d9959ef4 Cr-Commit-Position: refs/heads/master@{#432246}

Patch Set 1 #

Patch Set 2 : Fix unittest issue #

Patch Set 3 : Re-upload #

Patch Set 4 : Rebase. #

Patch Set 5 : Remove InitRoutingID #

Patch Set 6 : Move input handler init later (maybe too late?) #

Total comments: 1

Patch Set 7 : Re-add a InitInputHandler method. #

Patch Set 8 : Tweak. #

Total comments: 2

Patch Set 9 : Solve the unittest riddle. #

Total comments: 3

Patch Set 10 : Add a release for asan bots. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+89 lines, -69 lines) Patch
M content/public/renderer/render_view_observer.cc View 2 chunks +1 line, -2 lines 0 comments Download
M content/renderer/mus/compositor_mus_connection_unittest.cc View 1 2 3 1 chunk +2 lines, -1 line 0 comments Download
M content/renderer/render_frame_impl.cc View 1 2 3 4 1 chunk +13 lines, -3 lines 0 comments Download
M content/renderer/render_view_impl.cc View 1 2 3 4 7 8 2 chunks +2 lines, -3 lines 0 comments Download
M content/renderer/render_widget.h View 1 2 3 4 5 7 8 5 chunks +12 lines, -17 lines 0 comments Download
M content/renderer/render_widget.cc View 1 2 3 4 5 7 8 5 chunks +16 lines, -17 lines 0 comments Download
M content/renderer/render_widget_fullscreen.h View 1 chunk +4 lines, -1 line 0 comments Download
M content/renderer/render_widget_fullscreen.cc View 1 2 3 4 2 chunks +3 lines, -9 lines 0 comments Download
M content/renderer/render_widget_fullscreen_pepper.h View 1 2 3 4 2 chunks +3 lines, -1 line 0 comments Download
M content/renderer/render_widget_fullscreen_pepper.cc View 1 2 3 4 1 chunk +6 lines, -3 lines 0 comments Download
M content/renderer/render_widget_unittest.cc View 1 2 3 4 5 6 7 8 9 5 chunks +21 lines, -8 lines 0 comments Download
M content/test/layouttest_support.cc View 1 2 3 2 chunks +6 lines, -4 lines 0 comments Download

Depends on Patchset:

Dependent Patchsets:

Messages

Total messages: 45 (37 generated)
ncarter (slow)
Please review https://codereview.chromium.org/2493293002/diff/90001/content/renderer/render_widget.cc File content/renderer/render_widget.cc (right): https://codereview.chromium.org/2493293002/diff/90001/content/renderer/render_widget.cc#newcode399 content/renderer/render_widget.cc:399: input_handler_.reset(new RenderWidgetInputHandler( The ordering change here is ...
4 years, 1 month ago (2016-11-14 19:31:51 UTC) #23
lfg
lgtm with nit. https://codereview.chromium.org/2493293002/diff/130001/content/renderer/render_view_impl.cc File content/renderer/render_view_impl.cc (right): https://codereview.chromium.org/2493293002/diff/130001/content/renderer/render_view_impl.cc#newcode701 content/renderer/render_view_impl.cc:701: RenderWidget::InitInputHandler(); Why do you need to ...
4 years, 1 month ago (2016-11-14 22:09:59 UTC) #29
ncarter (slow)
ptal https://codereview.chromium.org/2493293002/diff/130001/content/renderer/render_view_impl.cc File content/renderer/render_view_impl.cc (right): https://codereview.chromium.org/2493293002/diff/130001/content/renderer/render_view_impl.cc#newcode701 content/renderer/render_view_impl.cc:701: RenderWidget::InitInputHandler(); On 2016/11/14 22:09:59, lfg wrote: > Why ...
4 years, 1 month ago (2016-11-14 23:33:56 UTC) #34
lfg
Thanks for figuring it out! lgtm https://codereview.chromium.org/2493293002/diff/150001/content/renderer/render_widget_unittest.cc File content/renderer/render_widget_unittest.cc (right): https://codereview.chromium.org/2493293002/diff/150001/content/renderer/render_widget_unittest.cc#newcode463 content/renderer/render_widget_unittest.cc:463: new PopupRenderWidget(&compositor_deps_)); asan ...
4 years, 1 month ago (2016-11-15 04:48:37 UTC) #37
ncarter (slow)
https://codereview.chromium.org/2493293002/diff/150001/content/renderer/render_widget_unittest.cc File content/renderer/render_widget_unittest.cc (right): https://codereview.chromium.org/2493293002/diff/150001/content/renderer/render_widget_unittest.cc#newcode463 content/renderer/render_widget_unittest.cc:463: new PopupRenderWidget(&compositor_deps_)); On 2016/11/15 04:48:37, lfg wrote: > asan ...
4 years, 1 month ago (2016-11-15 18:04:15 UTC) #40
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/2493293002/170001
4 years, 1 month ago (2016-11-15 18:04:41 UTC) #41
commit-bot: I haz the power
Committed patchset #10 (id:170001)
4 years, 1 month ago (2016-11-15 20:43:15 UTC) #43
commit-bot: I haz the power
4 years, 1 month ago (2016-11-15 20:55:42 UTC) #45
Message was sent while issue was closed.
Patchset 10 (id:??) landed as
https://crrev.com/8331f8ad9053ee1effd499ad29b5a806d9959ef4
Cr-Commit-Position: refs/heads/master@{#432246}

Powered by Google App Engine
This is Rietveld 408576698