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

Issue 1715573002: Replicating LayoutDumpFlags across OOPIFs. (Closed)

Created:
4 years, 10 months ago by Łukasz Anforowicz
Modified:
4 years, 9 months ago
CC:
dcheng, chromium-reviews, jochen+watch_chromium.org, mlamouri+watch-test-runner_chromium.org, site-isolation-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@replicating-pixel-dump-flag
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Replicating LayoutDumpFlags across OOPIFs. This CL makes sure that LayoutDumpFLags are replicated across OOPIFs. This allows to get rid of all the incorrect "missing" expectations from third_party/WebKit/LayoutTests/FlagExpectations/site-per-process. Replication is done by messages passed between browser and renderers. TestRunner that changes LayoutDumpFlags notifies BlinkTestRunner which sends a message to the browser. The browser 1) broadcasts the changes to all the renderers and 2) stashes accumulated changes so it can send them to new renderers in the future. BUG=587175 Committed: https://crrev.com/c9cbe71dd85bad04bf4f0b516614be820bb82b32 Cr-Commit-Position: refs/heads/master@{#380967}

Patch Set 1 #

Patch Set 2 : Work in progress... #

Patch Set 3 : Rebasing... #

Patch Set 4 : Rebasing... #

Patch Set 5 : Local layout tests pass. Keeping fingers crossed for the bots. #

Patch Set 6 : Still work-in-progress... #

Patch Set 7 : Maybe this is ready for review. #

Total comments: 8

Patch Set 8 : Using WCO::OnMsgRcvd(..., RFH*) rather than BlinkTestRunner::guid_ to detect change originator. #

Patch Set 9 : Previous patchset accidentally reverted some changes - fixing this. #

Patch Set 10 : Removing unnecessary forward declaration. #

Patch Set 11 : Rebasing... #

Total comments: 16

Patch Set 12 : Rebasing... #

Patch Set 13 : Addressed dcheng@'s feedback. #

Patch Set 14 : Rebasing... #

Patch Set 15 : Removed unneeded include. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+427 lines, -225 lines) Patch
M components/test_runner/BUILD.gn View 1 2 3 4 2 chunks +3 lines, -0 lines 0 comments Download
M components/test_runner/layout_dump.cc View 1 2 3 4 5 3 chunks +5 lines, -5 lines 0 comments Download
M components/test_runner/layout_dump_flags.h View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +55 lines, -33 lines 0 comments Download
A components/test_runner/layout_dump_flags.cc View 1 2 3 4 5 1 chunk +32 lines, -0 lines 0 comments Download
M components/test_runner/test_runner.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 4 chunks +5 lines, -6 lines 0 comments Download
M components/test_runner/test_runner.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 18 chunks +72 lines, -48 lines 0 comments Download
M components/test_runner/test_runner.gyp View 1 2 3 4 2 chunks +3 lines, -0 lines 0 comments Download
A components/test_runner/tracked_dictionary.h View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +57 lines, -0 lines 0 comments Download
A components/test_runner/tracked_dictionary.cc View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +44 lines, -0 lines 0 comments Download
M components/test_runner/web_test_delegate.h View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +8 lines, -0 lines 0 comments Download
M components/test_runner/web_test_runner.h View 1 2 3 4 2 chunks +9 lines, -1 line 0 comments Download
M content/common/swapped_out_messages.cc View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M content/shell/DEPS View 1 1 chunk +0 lines, -1 line 0 comments Download
M content/shell/browser/layout_test/blink_test_controller.h View 1 2 3 4 5 6 7 8 9 10 11 4 chunks +10 lines, -6 lines 0 comments Download
M content/shell/browser/layout_test/blink_test_controller.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 6 chunks +34 lines, -6 lines 0 comments Download
M content/shell/common/shell_messages.h View 1 2 3 4 5 7 4 chunks +19 lines, -20 lines 0 comments Download
M content/shell/renderer/layout_test/blink_test_runner.h View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +6 lines, -0 lines 0 comments Download
M content/shell/renderer/layout_test/blink_test_runner.cc View 1 2 3 4 5 6 7 8 9 10 11 12 6 chunks +28 lines, -2 lines 0 comments Download
M content/shell/renderer/layout_test/layout_test_render_frame_observer.h View 1 2 3 4 7 2 chunks +11 lines, -7 lines 0 comments Download
M content/shell/renderer/layout_test/layout_test_render_frame_observer.cc View 1 2 3 4 5 6 7 8 2 chunks +20 lines, -3 lines 0 comments Download
M third_party/WebKit/LayoutTests/FlagExpectations/site-per-process View 1 2 3 4 5 6 7 6 chunks +5 lines, -87 lines 0 comments Download

Messages

Total messages: 35 (15 generated)
Łukasz Anforowicz
jochen@, can you please take a look? Feel free to review this CL last (after ...
4 years, 9 months ago (2016-03-03 21:46:34 UTC) #3
Łukasz Anforowicz
<updating review title and CL description>
4 years, 9 months ago (2016-03-03 21:55:28 UTC) #6
Łukasz Anforowicz
+dcheng@ to CC
4 years, 9 months ago (2016-03-03 22:34:33 UTC) #7
jochen (gone - plz use gerrit)
https://codereview.chromium.org/1715573002/diff/120001/content/shell/browser/layout_test/blink_test_controller.cc File content/shell/browser/layout_test/blink_test_controller.cc (right): https://codereview.chromium.org/1715573002/diff/120001/content/shell/browser/layout_test/blink_test_controller.cc#newcode401 content/shell/browser/layout_test/blink_test_controller.cc:401: bool BlinkTestController::OnMessageReceived(const IPC::Message& message) { just override OnMessageReceived(const IPC::Message& ...
4 years, 9 months ago (2016-03-04 12:50:37 UTC) #8
Łukasz Anforowicz
https://codereview.chromium.org/1715573002/diff/120001/content/shell/browser/layout_test/blink_test_controller.cc File content/shell/browser/layout_test/blink_test_controller.cc (right): https://codereview.chromium.org/1715573002/diff/120001/content/shell/browser/layout_test/blink_test_controller.cc#newcode401 content/shell/browser/layout_test/blink_test_controller.cc:401: bool BlinkTestController::OnMessageReceived(const IPC::Message& message) { On 2016/03/04 12:50:37, jochen ...
4 years, 9 months ago (2016-03-04 19:58:56 UTC) #9
jochen (gone - plz use gerrit)
lgtm https://codereview.chromium.org/1715573002/diff/200001/content/shell/DEPS File content/shell/DEPS (left): https://codereview.chromium.org/1715573002/diff/200001/content/shell/DEPS#oldcode29 content/shell/DEPS:29: "+components/test_runner/layout_dump_flags.h", # POD only. \o/
4 years, 9 months ago (2016-03-08 16:31:47 UTC) #10
Łukasz Anforowicz
nasko@, could you take a look at content/common/swapped_out_messages.cc? Disclaimer: jochen@ raised [1] some concerns about ...
4 years, 9 months ago (2016-03-08 18:33:19 UTC) #12
nasko
On 2016/03/08 18:33:19, Łukasz Anforowicz wrote: > nasko@, could you take a look at content/common/swapped_out_messages.cc? ...
4 years, 9 months ago (2016-03-08 22:56:31 UTC) #13
dcheng
Just a few drive-by comments. https://codereview.chromium.org/1715573002/diff/200001/components/test_runner/layout_dump_flags.h File components/test_runner/layout_dump_flags.h (right): https://codereview.chromium.org/1715573002/diff/200001/components/test_runner/layout_dump_flags.h#newcode68 components/test_runner/layout_dump_flags.h:68: #undef DEFINE_BOOL_LAYOUT_DUMP_FLAG. https://codereview.chromium.org/1715573002/diff/200001/components/test_runner/test_runner.cc File ...
4 years, 9 months ago (2016-03-08 23:09:37 UTC) #14
Łukasz Anforowicz
dcheng@, can you take another look please? https://codereview.chromium.org/1715573002/diff/200001/components/test_runner/layout_dump_flags.h File components/test_runner/layout_dump_flags.h (right): https://codereview.chromium.org/1715573002/diff/200001/components/test_runner/layout_dump_flags.h#newcode68 components/test_runner/layout_dump_flags.h:68: On 2016/03/08 ...
4 years, 9 months ago (2016-03-10 22:24:21 UTC) #16
dcheng
https://codereview.chromium.org/1715573002/diff/200001/content/shell/browser/layout_test/blink_test_controller.cc File content/shell/browser/layout_test/blink_test_controller.cc (right): https://codereview.chromium.org/1715573002/diff/200001/content/shell/browser/layout_test/blink_test_controller.cc#newcode687 content/shell/browser/layout_test/blink_test_controller.cc:687: std::set<int> already_covered_process_ids; On 2016/03/10 at 22:24:21, Łukasz Anforowicz wrote: ...
4 years, 9 months ago (2016-03-12 01:21:50 UTC) #17
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1715573002/260001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1715573002/260001
4 years, 9 months ago (2016-03-13 20:44:15 UTC) #19
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: linux_chromium_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_rel_ng/builds/196027)
4 years, 9 months ago (2016-03-13 22:52:01 UTC) #21
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1715573002/280001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1715573002/280001
4 years, 9 months ago (2016-03-13 23:08:29 UTC) #23
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 9 months ago (2016-03-14 01:45:24 UTC) #25
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1715573002/280001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1715573002/280001
4 years, 9 months ago (2016-03-14 14:01:46 UTC) #28
commit-bot: I haz the power
Committed patchset #15 (id:280001)
4 years, 9 months ago (2016-03-14 14:06:53 UTC) #30
commit-bot: I haz the power
Patchset 15 (id:??) landed as https://crrev.com/c9cbe71dd85bad04bf4f0b516614be820bb82b32 Cr-Commit-Position: refs/heads/master@{#380967}
4 years, 9 months ago (2016-03-14 14:08:17 UTC) #32
Łukasz Anforowicz
Thanks for the feedback Daniel. https://codereview.chromium.org/1715573002/diff/200001/content/shell/browser/layout_test/blink_test_controller.cc File content/shell/browser/layout_test/blink_test_controller.cc (right): https://codereview.chromium.org/1715573002/diff/200001/content/shell/browser/layout_test/blink_test_controller.cc#newcode687 content/shell/browser/layout_test/blink_test_controller.cc:687: std::set<int> already_covered_process_ids; On 2016/03/12 ...
4 years, 9 months ago (2016-03-14 16:23:13 UTC) #33
brettw
4 years, 9 months ago (2016-03-22 00:04:37 UTC) #35
Message was sent while issue was closed.
From https://bugs.chromium.org/p/chromium/issues/detail?id=596736 I just filed:

https://codereview.chromium.org/1715573002
https://codereview.chromium.org/1067373005

Introduced includes from content/common to content/shell for
swapped_out_messages.cc

I am trying to make GN's header checker pass on content so we don't introduce
layering violations, and that's blocked on this laying violation.

content/shell is a test harness browser while content/common is linked into
every process in the browser. Including content_shell_messages here also brings
in other parts of content shell like shell_test_configuration.h and
leak_detection_result.h into content/common. We need to find a way to do this
that's not a layering violation.

Perhaps content_shell needs it's own superclass of the swapped out messages
filter.

Powered by Google App Engine
This is Rietveld 408576698