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

Issue 2687903003: Add TaskScheduler initialization arguments to ChildProcess. (Closed)

Created:
3 years, 10 months ago by fdoray
Modified:
3 years, 10 months ago
Reviewers:
gab, jam
CC:
chromium-reviews, darin-cc_chromium.org, mlamouri+watch-content_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add TaskScheduler initialization arguments to ChildProcess. Previously, the constructor of ChildProcess called ChildProcess::InitializeTaskScheduler() to initialize TaskScheduler. RenderProcessImpl overrode this method to initialize TaskScheduler with custom arguments. Unfortunately, the constructor of a base class cannot call methods from a derived class. This CL removes the virtual ChildProcess::InitializeTaskScheduler() method. RnederProcessImpl passes its custom TaskScheduler initialization arguments to the constructor of ChildProcess. BUG=664996 Review-Url: https://codereview.chromium.org/2687903003 Cr-Commit-Position: refs/heads/master@{#449785} Committed: https://chromium.googlesource.com/chromium/src/+/31cc6f8573abb454414ab2bdd26b07980eac2f8c

Patch Set 1 #

Total comments: 4

Patch Set 2 : CR gab #8 + fix build errors #

Patch Set 3 : default #

Unified diffs Side-by-side diffs Delta from patch set Stats (+110 lines, -45 lines) Patch
M content/child/child_process.h View 3 chunks +16 lines, -6 lines 0 comments Download
M content/child/child_process.cc View 5 chunks +16 lines, -10 lines 0 comments Download
M content/renderer/BUILD.gn View 1 chunk +1 line, -0 lines 0 comments Download
M content/renderer/in_process_renderer_thread.cc View 1 chunk +1 line, -1 line 0 comments Download
M content/renderer/render_process.h View 1 2 2 chunks +9 lines, -1 line 0 comments Download
A content/renderer/render_process.cc View 2 1 chunk +19 lines, -0 lines 0 comments Download
M content/renderer/render_process_impl.h View 1 2 chunks +16 lines, -2 lines 0 comments Download
M content/renderer/render_process_impl.cc View 1 3 chunks +30 lines, -23 lines 0 comments Download
M content/renderer/renderer_main.cc View 2 chunks +2 lines, -2 lines 0 comments Download

Depends on Patchset:

Messages

Total messages: 28 (19 generated)
fdoray
PTAL
3 years, 10 months ago (2017-02-09 17:22:08 UTC) #3
gab
Nice catch! lgtm % comments https://codereview.chromium.org/2687903003/diff/1/content/renderer/render_process_impl.cc File content/renderer/render_process_impl.cc (right): https://codereview.chromium.org/2687903003/diff/1/content/renderer/render_process_impl.cc#newcode138 content/renderer/render_process_impl.cc:138: : RenderProcess(worker_pool_params, worker_pool_index_for_traits_callback), std::move ...
3 years, 10 months ago (2017-02-09 17:43:45 UTC) #8
fdoray
jam@: PTAL https://codereview.chromium.org/2687903003/diff/1/content/renderer/render_process_impl.cc File content/renderer/render_process_impl.cc (right): https://codereview.chromium.org/2687903003/diff/1/content/renderer/render_process_impl.cc#newcode138 content/renderer/render_process_impl.cc:138: : RenderProcess(worker_pool_params, worker_pool_index_for_traits_callback), On 2017/02/09 17:43:45, gab ...
3 years, 10 months ago (2017-02-10 18:47:12 UTC) #18
jam
lgtm are you going to experiment with changing the IO thread priority?
3 years, 10 months ago (2017-02-10 21:34:47 UTC) #19
fdoray
On 2017/02/10 21:34:47, jam wrote: > lgtm > > are you going to experiment with ...
3 years, 10 months ago (2017-02-10 23:22:53 UTC) #20
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/2687903003/40001
3 years, 10 months ago (2017-02-10 23:23:42 UTC) #23
commit-bot: I haz the power
Committed patchset #3 (id:40001) as https://chromium.googlesource.com/chromium/src/+/31cc6f8573abb454414ab2bdd26b07980eac2f8c
3 years, 10 months ago (2017-02-10 23:36:38 UTC) #26
jam
On 2017/02/10 23:22:53, fdoray wrote: > On 2017/02/10 21:34:47, jam wrote: > > lgtm > ...
3 years, 10 months ago (2017-02-11 00:16:31 UTC) #27
gab
3 years, 10 months ago (2017-02-13 15:01:36 UTC) #28
Message was sent while issue was closed.
On 2017/02/11 00:16:31, jam wrote:
> On 2017/02/10 23:22:53, fdoray wrote:
> > On 2017/02/10 21:34:47, jam wrote:
> > > lgtm
> > > 
> > > are you going to experiment with changing the IO thread priority?
> > 
> > No, that's not a short-term plan.
> 
> so why is it an argument to ChildProcess?

@jam: I also initially read the change that way but note that that parameter was
already there in previous version of the constructor so this change is merely
keeping it and adding a few more

Powered by Google App Engine
This is Rietveld 408576698