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

Issue 987693005: Get rid of ChannelInit::SetSingleProcessIOTaskRunner() (Closed)

Created:
5 years, 9 months ago by Hajime Morrita
Modified:
5 years, 9 months ago
CC:
chromium-reviews, mlamouri+watch-content_chromium.org, creis+watch_chromium.org, qsr+mojo_chromium.org, viettrungluu+watch_chromium.org, nasko+codewatch_chromium.org, yzshen+watch_chromium.org, abarth-chromium, Aaron Boodman, darin-cc_chromium.org, mkwst+moarreviews-renderer_chromium.org, piman+watch_chromium.org, darin (slow to review), ben+mojo_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Get rid of ChannelInit::SetSingleProcessIOTaskRunner() The globally-set TaskRunner doesn't work because some child thread can run inside the browser process even when other child threads run in their own processes. For example, there is a configuration where GpuChildThread being in-process while RenderThreadImpl isn't. It is troublesome once non-renderer child processes adopt ChannelMojo. This CL eliminates the global in-process IO task runner and instead, passes an IO runnner for each thread if it is configured as an in-process mode. Note that InProcessChildThreadParams object is introuced to clarify that the parameter is for in-process mode. This is a spin-off from https://codereview.chromium.org/960693003/. R=jamesr@chromium.org, rockot@chromium.org, jam@chromium.org BUG=377980 Committed: https://crrev.com/c6238ab6b40c8f0a291f75dbceb58535cf942eac Cr-Commit-Position: refs/heads/master@{#321047}

Patch Set 1 #

Patch Set 2 : Fixing build errors #

Total comments: 6

Patch Set 3 : Fixing test failures #

Patch Set 4 : MSVC bug workaround #

Patch Set 5 : Updated #

Total comments: 11

Patch Set 6 : Landing #

Unified diffs Side-by-side diffs Delta from patch set Stats (+197 lines, -131 lines) Patch
M content/browser/gpu/gpu_process_host.h View 1 chunk +3 lines, -1 line 0 comments Download
M content/browser/gpu/gpu_process_host.cc View 2 chunks +5 lines, -1 line 0 comments Download
M content/browser/renderer_host/render_process_host_impl.h View 2 chunks +2 lines, -1 line 0 comments Download
M content/browser/renderer_host/render_process_host_impl.cc View 1 2 3 4 5 3 chunks +5 lines, -4 lines 0 comments Download
M content/browser/utility_process_host_impl.h View 1 2 3 4 5 1 chunk +2 lines, -1 line 0 comments Download
M content/browser/utility_process_host_impl.cc View 1 2 3 4 5 2 chunks +5 lines, -1 line 0 comments Download
M content/child/child_thread_impl.h View 6 chunks +8 lines, -3 lines 0 comments Download
M content/child/child_thread_impl.cc View 1 2 3 4 8 chunks +29 lines, -19 lines 0 comments Download
M content/child/mojo/mojo_application.h View 3 chunks +8 lines, -1 line 0 comments Download
M content/child/mojo/mojo_application.cc View 2 chunks +5 lines, -8 lines 0 comments Download
A content/common/in_process_child_thread_params.h View 1 2 3 4 5 1 chunk +38 lines, -0 lines 0 comments Download
A content/common/in_process_child_thread_params.cc View 1 2 3 4 5 1 chunk +18 lines, -0 lines 0 comments Download
M content/common/mojo/channel_init.h View 1 chunk +0 lines, -5 lines 0 comments Download
M content/common/mojo/channel_init.cc View 2 chunks +0 lines, -18 lines 0 comments Download
M content/content_common.gypi View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
M content/gpu/gpu_child_thread.h View 1 chunk +1 line, -2 lines 0 comments Download
M content/gpu/gpu_child_thread.cc View 1 chunk +3 lines, -4 lines 0 comments Download
M content/gpu/in_process_gpu_thread.h View 1 2 3 4 5 4 chunks +6 lines, -3 lines 0 comments Download
M content/gpu/in_process_gpu_thread.cc View 3 chunks +6 lines, -5 lines 0 comments Download
M content/renderer/in_process_renderer_thread.h View 3 chunks +4 lines, -3 lines 0 comments Download
M content/renderer/in_process_renderer_thread.cc View 3 chunks +7 lines, -5 lines 0 comments Download
M content/renderer/render_thread_impl.h View 1 2 3 4 5 1 chunk +1 line, -4 lines 0 comments Download
M content/renderer/render_thread_impl.cc View 1 2 3 4 5 1 chunk +4 lines, -15 lines 0 comments Download
M content/renderer/render_thread_impl_browsertest.cc View 1 2 3 3 chunks +7 lines, -4 lines 0 comments Download
M content/test/render_thread_impl_browser_test_ipc_helper.h View 1 1 chunk +2 lines, -0 lines 0 comments Download
M content/test/render_thread_impl_browser_test_ipc_helper.cc View 1 2 chunks +5 lines, -1 line 0 comments Download
M content/utility/in_process_utility_thread.h View 3 chunks +4 lines, -3 lines 0 comments Download
M content/utility/in_process_utility_thread.cc View 2 chunks +7 lines, -5 lines 0 comments Download
M content/utility/utility_thread_impl.h View 1 2 3 2 chunks +1 line, -4 lines 0 comments Download
M content/utility/utility_thread_impl.cc View 1 2 3 4 5 4 chunks +9 lines, -10 lines 0 comments Download

Messages

Total messages: 21 (3 generated)
Hajime Morrita
5 years, 9 months ago (2015-03-06 22:20:33 UTC) #1
jam
Which parts do you want each of us to review?
5 years, 9 months ago (2015-03-09 15:40:52 UTC) #2
Hajime Morrita
On 2015/03/09 15:40:52, jam wrote: > Which parts do you want each of us to ...
5 years, 9 months ago (2015-03-09 17:05:54 UTC) #3
Ken Rockot(use gerrit already)
On 2015/03/09 17:05:54, morrita wrote: > On 2015/03/09 15:40:52, jam wrote: > > Which parts ...
5 years, 9 months ago (2015-03-09 17:16:49 UTC) #4
jamesr
error message is: [24192:24282:0306/172301:ERROR:ipc_mojo_bootstrap.cc(105)] Got inconsistent message from client.
5 years, 9 months ago (2015-03-09 17:49:12 UTC) #5
Hajime Morrita
On 2015/03/09 17:49:12, jamesr wrote: > error message is: > > [24192:24282:0306/172301:ERROR:ipc_mojo_bootstrap.cc(105)] Got inconsistent > ...
5 years, 9 months ago (2015-03-09 18:21:39 UTC) #6
Hajime Morrita
OK, now it's green. PTAL? - jam: content/ - jamesr: content/**/mojo - rockot: channel_init.*
5 years, 9 months ago (2015-03-12 19:42:35 UTC) #7
jamesr
lgtm, although I'm not an OWNER here
5 years, 9 months ago (2015-03-12 19:47:21 UTC) #8
Ken Rockot(use gerrit already)
also not an owner, but i've looked over everything here and it all lgtm. https://codereview.chromium.org/987693005/diff/20001/content/child/child_thread_impl.cc ...
5 years, 9 months ago (2015-03-12 20:06:37 UTC) #9
Hajime Morrita
Thanks for the review folks! John: PTAL for overall change under content/ ? Mojo-specific bits ...
5 years, 9 months ago (2015-03-12 22:08:19 UTC) #10
Hajime Morrita
@jam: PTAL as a content/ OWNER?
5 years, 9 months ago (2015-03-16 17:39:54 UTC) #11
Hajime Morrita
Nasko: Could you take a took as a content/ OWNER? I was told that John ...
5 years, 9 months ago (2015-03-17 17:23:35 UTC) #13
nasko
LGTM with a few nits https://codereview.chromium.org/987693005/diff/80001/content/common/in_process_child_thread_params.cc File content/common/in_process_child_thread_params.cc (right): https://codereview.chromium.org/987693005/diff/80001/content/common/in_process_child_thread_params.cc#newcode1 content/common/in_process_child_thread_params.cc:1: // Copyright (c) 2012 ...
5 years, 9 months ago (2015-03-18 00:12:45 UTC) #14
Hajime Morrita
Thanks much for the quick review! Landing with amendments. https://codereview.chromium.org/987693005/diff/80001/content/common/in_process_child_thread_params.cc File content/common/in_process_child_thread_params.cc (right): https://codereview.chromium.org/987693005/diff/80001/content/common/in_process_child_thread_params.cc#newcode1 content/common/in_process_child_thread_params.cc:1: ...
5 years, 9 months ago (2015-03-18 00:38:40 UTC) #15
Hajime Morrita
Landing
5 years, 9 months ago (2015-03-18 00:40:44 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/987693005/100001
5 years, 9 months ago (2015-03-18 00:41:22 UTC) #19
commit-bot: I haz the power
Committed patchset #6 (id:100001)
5 years, 9 months ago (2015-03-18 01:48:45 UTC) #20
commit-bot: I haz the power
5 years, 9 months ago (2015-03-18 01:52:34 UTC) #21
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/c6238ab6b40c8f0a291f75dbceb58535cf942eac
Cr-Commit-Position: refs/heads/master@{#321047}

Powered by Google App Engine
This is Rietveld 408576698