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

Issue 2501033002: Redirect SequencedWorkerPool to TaskScheduler in the service process. (Closed)

Created:
4 years, 1 month ago by fdoray
Modified:
4 years, 1 month ago
Reviewers:
robliao, gab, Scott Byer
CC:
chromium-reviews
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Redirect SequencedWorkerPool to TaskScheduler in the service process. With this CL, in the service process: - TaskScheduler is initialized. - Tasks posted to a SequencedWorkerPool are redirected to TaskScheduler. These steps will be done separately: - Redirect the service process' file thread to TaskScheduler. - Migrate all file thread / SequencedWorkerPool post task call sites in the service process to the base/task_scheduler/post_task.h API. BUG=664996 Committed: https://crrev.com/b32d035990150135bd44f0ae90030bed469c9624 Cr-Commit-Position: refs/heads/master@{#433677}

Patch Set 1 #

Patch Set 2 : self-review #

Total comments: 2

Patch Set 3 : fix build error #

Total comments: 4

Patch Set 4 : CR robliao #15 (initialize before SWP, use 30 second reclaim time) #

Total comments: 2

Patch Set 5 : fix test error rebase #

Patch Set 6 : CR gab #16 (-> size_t instead of static_cast<size_t>) #

Patch Set 7 : Use SimpleTaskScheduler #

Patch Set 8 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+10 lines, -4 lines) Patch
M chrome/service/service_process.cc View 1 2 3 4 5 6 7 3 chunks +10 lines, -4 lines 0 comments Download

Messages

Total messages: 32 (20 generated)
fdoray
4 years, 1 month ago (2016-11-14 18:03:41 UTC) #3
fdoray
PTAL
4 years, 1 month ago (2016-11-14 18:03:48 UTC) #4
robliao
https://codereview.chromium.org/2501033002/diff/20001/chrome/service/service_process.cc File chrome/service/service_process.cc (right): https://codereview.chromium.org/2501033002/diff/20001/chrome/service/service_process.cc#newcode172 chrome/service/service_process.cc:172: {base::SchedulerWorkerPoolParams( Looks like this is being copy-constructed rather than ...
4 years, 1 month ago (2016-11-14 22:54:33 UTC) #9
fdoray
PTAnL https://codereview.chromium.org/2501033002/diff/20001/chrome/service/service_process.cc File chrome/service/service_process.cc (right): https://codereview.chromium.org/2501033002/diff/20001/chrome/service/service_process.cc#newcode172 chrome/service/service_process.cc:172: {base::SchedulerWorkerPoolParams( On 2016/11/14 22:54:33, robliao wrote: > Looks ...
4 years, 1 month ago (2016-11-15 16:43:34 UTC) #10
robliao
https://codereview.chromium.org/2501033002/diff/40001/chrome/service/service_process.cc File chrome/service/service_process.cc (right): https://codereview.chromium.org/2501033002/diff/40001/chrome/service/service_process.cc#newcode164 chrome/service/service_process.cc:164: blocking_pool_ = new base::SequencedWorkerPool( Should this happen after TaskScheduler ...
4 years, 1 month ago (2016-11-15 18:43:57 UTC) #15
gab
lgtm % comment https://codereview.chromium.org/2501033002/diff/60001/chrome/service/service_process.cc File chrome/service/service_process.cc (right): https://codereview.chromium.org/2501033002/diff/60001/chrome/service/service_process.cc#newcode175 chrome/service/service_process.cc:175: worker_pool_params_vector, base::Bind([](const base::TaskTraits&) { [](const base::TaskTraits&) ...
4 years, 1 month ago (2016-11-15 20:46:02 UTC) #16
fdoray
scottbyer@: PTAL https://codereview.chromium.org/2501033002/diff/40001/chrome/service/service_process.cc File chrome/service/service_process.cc (right): https://codereview.chromium.org/2501033002/diff/40001/chrome/service/service_process.cc#newcode164 chrome/service/service_process.cc:164: blocking_pool_ = new base::SequencedWorkerPool( On 2016/11/15 18:43:57, ...
4 years, 1 month ago (2016-11-15 21:37:13 UTC) #20
fdoray
scottbyer@: PTAL
4 years, 1 month ago (2016-11-17 20:53:16 UTC) #23
Scott Byer
lgtm
4 years, 1 month ago (2016-11-21 20:50:22 UTC) #24
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/2501033002/140001
4 years, 1 month ago (2016-11-21 21:07:26 UTC) #27
commit-bot: I haz the power
Committed patchset #8 (id:140001)
4 years, 1 month ago (2016-11-21 22:31:14 UTC) #30
commit-bot: I haz the power
4 years, 1 month ago (2016-11-21 22:35:46 UTC) #32
Message was sent while issue was closed.
Patchset 8 (id:??) landed as
https://crrev.com/b32d035990150135bd44f0ae90030bed469c9624
Cr-Commit-Position: refs/heads/master@{#433677}

Powered by Google App Engine
This is Rietveld 408576698