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

Issue 2487713002: Resolves layering violation in SynchronousCompositorHost creation (Closed)

Created:
4 years, 1 month ago by Jinsuk Kim
Modified:
4 years, 1 month ago
Reviewers:
boliu
CC:
chromium-reviews, yusukes+watch_chromium.org, shuchen+watch_chromium.org, jam, nona+watch_chromium.org, darin-cc_chromium.org, James Su
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Resolves layering violation in SynchronousCompositorHost creation SynchronousCompositorHost created in RWHVA has a reference to WebContents, which violates the hierarchical access rule. This CL resolves it by having WebContentsViewAndroid keep SynchronousCompositorClient instance and pass it to RWHVA. BUG=626765 Committed: https://crrev.com/8f60271614652b6110081128604470460af5dadb Committed: https://crrev.com/b53b9955b59a6884ccf6f57ee906e37e2caac26f Cr-Original-Commit-Position: refs/heads/master@{#431383} Cr-Commit-Position: refs/heads/master@{#431565}

Patch Set 1 #

Total comments: 8

Patch Set 2 : comments #

Total comments: 2

Patch Set 3 : comments #

Patch Set 4 : fixing tests #

Total comments: 4

Patch Set 5 : sc/cvc part ways #

Total comments: 2

Patch Set 6 : checking synchronous_compositor_client_ #

Unified diffs Side-by-side diffs Delta from patch set Stats (+58 lines, -43 lines) Patch
M content/browser/android/synchronous_compositor_host.h View 2 chunks +1 line, -3 lines 0 comments Download
M content/browser/android/synchronous_compositor_host.cc View 1 2 chunks +4 lines, -23 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_view_android.h View 1 2 3 4 3 chunks +9 lines, -0 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_view_android.cc View 1 2 3 4 5 3 chunks +9 lines, -5 lines 0 comments Download
M content/browser/web_contents/web_contents_android.h View 3 chunks +0 lines, -9 lines 0 comments Download
M content/browser/web_contents/web_contents_android.cc View 1 chunk +0 lines, -1 line 0 comments Download
M content/browser/web_contents/web_contents_view_android.h View 1 3 chunks +13 lines, -0 lines 0 comments Download
M content/browser/web_contents/web_contents_view_android.cc View 1 2 3 4 3 chunks +22 lines, -2 lines 0 comments Download

Messages

Total messages: 70 (40 generated)
Jinsuk Kim
4 years, 1 month ago (2016-11-08 16:17:38 UTC) #2
boliu
https://codereview.chromium.org/2487713002/diff/1/content/browser/web_contents/web_contents_view_android.cc File content/browser/web_contents/web_contents_view_android.cc (right): https://codereview.chromium.org/2487713002/diff/1/content/browser/web_contents/web_contents_view_android.cc#newcode93 content/browser/web_contents/web_contents_view_android.cc:93: SetSynchronousCompositorClientFor(rwhv); I don't think this needs to be tied ...
4 years, 1 month ago (2016-11-08 16:50:13 UTC) #3
boliu
https://codereview.chromium.org/2487713002/diff/1/content/browser/android/synchronous_compositor_host.cc File content/browser/android/synchronous_compositor_host.cc (right): https://codereview.chromium.org/2487713002/diff/1/content/browser/android/synchronous_compositor_host.cc#newcode16 content/browser/android/synchronous_compositor_host.cc:16: #include "content/browser/web_contents/web_contents_android.h" can these two includes be removed now?
4 years, 1 month ago (2016-11-08 16:50:47 UTC) #4
Jinsuk Kim
https://codereview.chromium.org/2487713002/diff/1/content/browser/android/synchronous_compositor_host.cc File content/browser/android/synchronous_compositor_host.cc (right): https://codereview.chromium.org/2487713002/diff/1/content/browser/android/synchronous_compositor_host.cc#newcode16 content/browser/android/synchronous_compositor_host.cc:16: #include "content/browser/web_contents/web_contents_android.h" On 2016/11/08 16:50:47, boliu wrote: > can ...
4 years, 1 month ago (2016-11-08 17:18:30 UTC) #6
boliu
https://codereview.chromium.org/2487713002/diff/40001/content/browser/web_contents/web_contents_view_android.cc File content/browser/web_contents/web_contents_view_android.cc (right): https://codereview.chromium.org/2487713002/diff/40001/content/browser/web_contents/web_contents_view_android.cc#newcode59 content/browser/web_contents/web_contents_view_android.cc:59: RenderWidgetHostViewAndroid* rwhv = static_cast<RenderWidgetHostViewAndroid*>( probably needs null check
4 years, 1 month ago (2016-11-08 17:41:05 UTC) #7
Jinsuk Kim
https://codereview.chromium.org/2487713002/diff/40001/content/browser/web_contents/web_contents_view_android.cc File content/browser/web_contents/web_contents_view_android.cc (right): https://codereview.chromium.org/2487713002/diff/40001/content/browser/web_contents/web_contents_view_android.cc#newcode59 content/browser/web_contents/web_contents_view_android.cc:59: RenderWidgetHostViewAndroid* rwhv = static_cast<RenderWidgetHostViewAndroid*>( On 2016/11/08 17:41:05, boliu wrote: ...
4 years, 1 month ago (2016-11-08 18:05:54 UTC) #8
boliu
lgtm
4 years, 1 month ago (2016-11-08 18:10:49 UTC) #9
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/2487713002/60001
4 years, 1 month ago (2016-11-08 23:33:44 UTC) #11
commit-bot: I haz the power
Try jobs failed on following builders: android_n5x_swarming_rel on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/android_n5x_swarming_rel/builds/64122)
4 years, 1 month ago (2016-11-09 00:58:39 UTC) #13
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/2487713002/120001
4 years, 1 month ago (2016-11-10 17:50:11 UTC) #30
boliu
this is a big enough additional change that it needs to be reviewed again https://codereview.chromium.org/2487713002/diff/120001/content/browser/renderer_host/render_widget_host_view_android.h ...
4 years, 1 month ago (2016-11-10 17:52:34 UTC) #32
Jinsuk Kim
https://codereview.chromium.org/2487713002/diff/120001/content/browser/renderer_host/render_widget_host_view_android.h File content/browser/renderer_host/render_widget_host_view_android.h (right): https://codereview.chromium.org/2487713002/diff/120001/content/browser/renderer_host/render_widget_host_view_android.h#newcode83 content/browser/renderer_host/render_widget_host_view_android.h:83: SynchronousCompositorClient* compositor_client); On 2016/11/10 17:52:34, boliu wrote: > is ...
4 years, 1 month ago (2016-11-10 17:55:15 UTC) #33
boliu
https://codereview.chromium.org/2487713002/diff/120001/content/browser/renderer_host/render_widget_host_view_android.h File content/browser/renderer_host/render_widget_host_view_android.h (right): https://codereview.chromium.org/2487713002/diff/120001/content/browser/renderer_host/render_widget_host_view_android.h#newcode83 content/browser/renderer_host/render_widget_host_view_android.h:83: SynchronousCompositorClient* compositor_client); On 2016/11/10 17:55:15, Jinsuk Kim wrote: > ...
4 years, 1 month ago (2016-11-10 17:59:21 UTC) #34
Jinsuk Kim
https://codereview.chromium.org/2487713002/diff/120001/content/browser/renderer_host/render_widget_host_view_android.h File content/browser/renderer_host/render_widget_host_view_android.h (right): https://codereview.chromium.org/2487713002/diff/120001/content/browser/renderer_host/render_widget_host_view_android.h#newcode83 content/browser/renderer_host/render_widget_host_view_android.h:83: SynchronousCompositorClient* compositor_client); On 2016/11/10 17:59:21, boliu wrote: > On ...
4 years, 1 month ago (2016-11-10 21:22:19 UTC) #43
boliu
https://codereview.chromium.org/2487713002/diff/160001/content/browser/renderer_host/render_widget_host_view_android.cc File content/browser/renderer_host/render_widget_host_view_android.cc (right): https://codereview.chromium.org/2487713002/diff/160001/content/browser/renderer_host/render_widget_host_view_android.cc#newcode1212 content/browser/renderer_host/render_widget_host_view_android.cc:1212: if (!sync_compositor_) { || !synchronous_compositor_client_ too maybe? just to ...
4 years, 1 month ago (2016-11-10 21:24:34 UTC) #44
Jinsuk Kim
https://codereview.chromium.org/2487713002/diff/160001/content/browser/renderer_host/render_widget_host_view_android.cc File content/browser/renderer_host/render_widget_host_view_android.cc (right): https://codereview.chromium.org/2487713002/diff/160001/content/browser/renderer_host/render_widget_host_view_android.cc#newcode1212 content/browser/renderer_host/render_widget_host_view_android.cc:1212: if (!sync_compositor_) { On 2016/11/10 21:24:33, boliu wrote: > ...
4 years, 1 month ago (2016-11-10 21:33:34 UTC) #47
boliu
lgtm
4 years, 1 month ago (2016-11-10 21:34:37 UTC) #48
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/2487713002/180001
4 years, 1 month ago (2016-11-10 22:25:05 UTC) #52
commit-bot: I haz the power
Committed patchset #6 (id:180001)
4 years, 1 month ago (2016-11-10 22:38:43 UTC) #53
commit-bot: I haz the power
Patchset 6 (id:??) landed as https://crrev.com/273cccbc60b358d06c332f64a8b3cc9f5ee42dd6 Cr-Commit-Position: refs/heads/master@{#431380}
4 years, 1 month ago (2016-11-10 23:10:20 UTC) #55
commit-bot: I haz the power
Patchset 6 (id:??) landed as https://crrev.com/8f60271614652b6110081128604470460af5dadb Cr-Commit-Position: refs/heads/master@{#431383}
4 years, 1 month ago (2016-11-10 23:10:27 UTC) #57
boliu
A revert of this CL (patchset #6 id:180001) has been created in https://codereview.chromium.org/2490383002/ by boliu@chromium.org. ...
4 years, 1 month ago (2016-11-10 23:28:22 UTC) #58
boliu
wait, wat, this got committed twice? https://chromium.googlesource.com/chromium/src/+/273cccbc60b358d06c332f64a8b3cc9f5ee42dd6 https://chromium.googlesource.com/chromium/src/+/8f60271614652b6110081128604470460af5dadb
4 years, 1 month ago (2016-11-10 23:31:00 UTC) #59
boliu
On 2016/11/10 23:31:00, boliu wrote: > wait, wat, this got committed twice? > https://chromium.googlesource.com/chromium/src/+/273cccbc60b358d06c332f64a8b3cc9f5ee42dd6 > ...
4 years, 1 month ago (2016-11-10 23:32:01 UTC) #60
Jinsuk Kim
On 2016/11/10 23:32:01, boliu wrote: > On 2016/11/10 23:31:00, boliu wrote: > > wait, wat, ...
4 years, 1 month ago (2016-11-10 23:37:28 UTC) #61
Jinsuk Kim
On 2016/11/10 23:32:01, boliu wrote: > On 2016/11/10 23:31:00, boliu wrote: > > wait, wat, ...
4 years, 1 month ago (2016-11-10 23:37:28 UTC) #62
findit-for-me
FYI: Findit identified this CL at revision 431383 as the culprit for failures in the ...
4 years, 1 month ago (2016-11-10 23:37:33 UTC) #63
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/2487713002/180001
4 years, 1 month ago (2016-11-11 15:29:35 UTC) #66
commit-bot: I haz the power
Committed patchset #6 (id:180001)
4 years, 1 month ago (2016-11-11 15:34:10 UTC) #68
commit-bot: I haz the power
4 years, 1 month ago (2016-11-11 15:37:09 UTC) #70
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/b53b9955b59a6884ccf6f57ee906e37e2caac26f
Cr-Commit-Position: refs/heads/master@{#431565}

Powered by Google App Engine
This is Rietveld 408576698