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

Issue 1777503003: More strict restrictions for content -> content/shell dependencies. (Closed)

Created:
4 years, 9 months ago by Łukasz Anforowicz
Modified:
4 years, 9 months ago
CC:
chromium-reviews, darin-cc_chromium.org, site-isolation-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

More strict restrictions for content -> content/shell dependencies. This CL removes content -> content/shell layering violation around swapped-out filtering, by moving the filtering code into LayoutTestContentClient in the appropriate layer. This CL also tweaks content/DEPS to restricts allowed dependencies, by expanding a comment into an actual DEPS rule that only allows content/shell dependency for browser tests. Additionally, a DEPS exception in content/common/DEPS is not needed anymore (per https://codereview.chromium.org/1777503003/diff/20001/content/common/DEPS#newcode70). BUG=357747, 596736 Committed: https://crrev.com/80f7f60ce8e7c651c0d3d5957fbbb4ffe9972309 Cr-Commit-Position: refs/heads/master@{#382725}

Patch Set 1 #

Patch Set 2 : Added a pointer to the "swapped out" bug. #

Total comments: 5

Patch Set 3 : Removing stale DEPS exception for java_bridge_messages.h #

Patch Set 4 : Swapped-out filtering via ContentClient interface - no layering violation this way. #

Total comments: 2

Patch Set 5 : Removed unnecessary namespace-qualification. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+73 lines, -15 lines) Patch
M content/DEPS View 1 2 3 2 chunks +9 lines, -1 line 0 comments Download
M content/common/DEPS View 1 2 3 1 chunk +0 lines, -7 lines 0 comments Download
M content/common/swapped_out_messages.cc View 1 2 3 2 chunks +1 line, -4 lines 0 comments Download
M content/content_shell.gypi View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
M content/shell/BUILD.gn View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
M content/shell/app/shell_main_delegate.h View 1 2 3 2 chunks +2 lines, -2 lines 0 comments Download
M content/shell/app/shell_main_delegate.cc View 1 2 3 2 chunks +9 lines, -1 line 0 comments Download
A content/shell/common/layout_test/layout_test_content_client.h View 1 2 3 4 1 chunk +24 lines, -0 lines 0 comments Download
A content/shell/common/layout_test/layout_test_content_client.cc View 1 2 3 1 chunk +24 lines, -0 lines 0 comments Download

Messages

Total messages: 32 (12 generated)
Łukasz Anforowicz
nasko@ + jochen@, could you please take a look? This is a follow-up to a ...
4 years, 9 months ago (2016-03-08 17:32:41 UTC) #3
jochen (gone - plz use gerrit)
https://codereview.chromium.org/1777503003/diff/20001/content/common/DEPS File content/common/DEPS (right): https://codereview.chromium.org/1777503003/diff/20001/content/common/DEPS#newcode70 content/common/DEPS:70: "java_bridge_messages\.h": [ that file doesn't exist anymore, right? https://codereview.chromium.org/1777503003/diff/20001/content/common/DEPS#newcode74 ...
4 years, 9 months ago (2016-03-09 14:57:19 UTC) #4
Łukasz Anforowicz
jochen@, can you take another look please? https://codereview.chromium.org/1777503003/diff/20001/content/common/DEPS File content/common/DEPS (right): https://codereview.chromium.org/1777503003/diff/20001/content/common/DEPS#newcode70 content/common/DEPS:70: "java_bridge_messages\.h": [ ...
4 years, 9 months ago (2016-03-09 21:47:42 UTC) #5
jochen (gone - plz use gerrit)
On 2016/03/09 at 21:47:42, lukasza wrote: > jochen@, can you take another look please? > ...
4 years, 9 months ago (2016-03-10 15:45:13 UTC) #6
Łukasz Anforowicz
On 2016/03/10 15:45:13, jochen wrote: > On 2016/03/09 at 21:47:42, lukasza wrote: > > jochen@, ...
4 years, 9 months ago (2016-03-14 20:35:57 UTC) #7
dcheng
On 2016/03/14 at 20:35:57, lukasza wrote: > On 2016/03/10 15:45:13, jochen wrote: > > On ...
4 years, 9 months ago (2016-03-14 20:53:43 UTC) #8
Łukasz Anforowicz
jochen@, can you take another look please? Changes since the last time: - Got rid ...
4 years, 9 months ago (2016-03-22 17:29:31 UTC) #10
jam
lgtm https://codereview.chromium.org/1777503003/diff/60001/content/shell/common/layout_test/layout_test_content_client.h File content/shell/common/layout_test/layout_test_content_client.h (right): https://codereview.chromium.org/1777503003/diff/60001/content/shell/common/layout_test/layout_test_content_client.h#newcode13 content/shell/common/layout_test/layout_test_content_client.h:13: class LayoutTestContentClient : public content::ShellContentClient { nit: no ...
4 years, 9 months ago (2016-03-22 19:36:00 UTC) #13
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1777503003/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1777503003/80001
4 years, 9 months ago (2016-03-22 20:31:22 UTC) #15
Łukasz Anforowicz
Thanks jam@. jochen@ - can you take a look? (patchset #4 addresses the swapped-out layering ...
4 years, 9 months ago (2016-03-22 20:36:15 UTC) #16
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 9 months ago (2016-03-22 22:02:38 UTC) #18
jam
On 2016/03/22 20:36:15, Łukasz Anforowicz wrote: > Thanks jam@. jochen@ - can you take a ...
4 years, 9 months ago (2016-03-22 22:04:28 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1777503003/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1777503003/80001
4 years, 9 months ago (2016-03-22 22:04:53 UTC) #22
Łukasz Anforowicz
On 2016/03/22 22:04:28, jam wrote: > On 2016/03/22 20:36:15, Łukasz Anforowicz wrote: > > Thanks ...
4 years, 9 months ago (2016-03-22 22:10:29 UTC) #23
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/159848)
4 years, 9 months ago (2016-03-22 22:14:43 UTC) #25
Łukasz Anforowicz
nasko@ - could you please take a look at content/common/swapped_out_messages.cc?
4 years, 9 months ago (2016-03-22 22:19:49 UTC) #26
nasko
content/common/swapped_out_messages.cc LGTM
4 years, 9 months ago (2016-03-22 23:06:59 UTC) #27
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1777503003/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1777503003/80001
4 years, 9 months ago (2016-03-22 23:08:30 UTC) #29
commit-bot: I haz the power
Committed patchset #5 (id:80001)
4 years, 9 months ago (2016-03-22 23:13:28 UTC) #30
commit-bot: I haz the power
4 years, 9 months ago (2016-03-22 23:14:33 UTC) #32
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/80f7f60ce8e7c651c0d3d5957fbbb4ffe9972309
Cr-Commit-Position: refs/heads/master@{#382725}

Powered by Google App Engine
This is Rietveld 408576698