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

Issue 2525483006: Use TaskScheduler instead of WorkerPool in keystone_glue.mm. (Closed)

Created:
4 years ago by fdoray
Modified:
4 years ago
Reviewers:
robliao, Mark Mentovai, gab
CC:
chromium-reviews, mac-reviews_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Use TaskScheduler instead of WorkerPool in keystone_glue.mm. This CL replaces a base::WorkerPool::PostTask() call with a base::PostTaskWithTraits() call. The following traits are used: Priority: BACKGROUND User won't notice if this task takes an arbitrarily long time to complete. Shutdown behavior: CONTINUE_ON_SHUTDOWN Tasks posted with this mode which have not started executing before shutdown is initiated will never run. Tasks with this mode running at shutdown will be ignored (the worker will not be joined). With File IO: The task is allowed to perform synchronous IO operations. No Wait (default): The task does not wait on things other than synchronous file IO operations (e.g. WaitableEvent, ConditionVariable, join a thread, join a process, blocking system call that doesn't involve interactions with the file system). BUG=659191 Committed: https://crrev.com/7c5994f99f82726f4bc6d26181f7b29f449c3416 Cr-Commit-Position: refs/heads/master@{#435404}

Patch Set 1 #

Patch Set 2 : fix build error #

Patch Set 3 : CONITNUE_ON_SHUTDOWN #

Total comments: 8
Unified diffs Side-by-side diffs Delta from patch set Stats (+12 lines, -5 lines) Patch
M chrome/browser/mac/keystone_glue.mm View 1 2 3 chunks +9 lines, -5 lines 8 comments Download
M chrome/browser/mac/keystone_glue_unittest.mm View 2 chunks +3 lines, -0 lines 0 comments Download

Messages

Total messages: 36 (23 generated)
fdoray
PTAL
4 years ago (2016-11-23 21:05:35 UTC) #9
gab
lgtm (though OWNERS will have to ack that the traits are appropriate)
4 years ago (2016-11-23 21:29:41 UTC) #10
fdoray
thomasvl@: PTAL In particular, please make sure that we used appropriate TaskTraits for this task.
4 years ago (2016-11-23 21:32:40 UTC) #12
robliao
lgtm
4 years ago (2016-11-23 22:48:05 UTC) #15
fdoray
ping TVL Please review this CL. You should verify that the traits mentioned in the ...
4 years ago (2016-11-29 20:29:00 UTC) #21
fdoray
mark@: Please review this CL. You should verify that the traits mentioned in the CL ...
4 years ago (2016-11-29 20:31:03 UTC) #23
Mark Mentovai
LGTM. Notes follow. fdoray wrote: > mark@: Please review this CL. You should verify that ...
4 years ago (2016-11-29 21:55:49 UTC) #24
Mark Mentovai
https://codereview.chromium.org/2525483006/diff/40001/chrome/browser/mac/keystone_glue.mm File chrome/browser/mac/keystone_glue.mm (right): https://codereview.chromium.org/2525483006/diff/40001/chrome/browser/mac/keystone_glue.mm#newcode79 chrome/browser/mac/keystone_glue.mm:79: base::TaskShutdownBehavior::CONTINUE_ON_SHUTDOWN), Revise change description to match this. https://codereview.chromium.org/2525483006/diff/40001/chrome/browser/mac/keystone_glue.mm#newcode715 chrome/browser/mac/keystone_glue.mm:715: ...
4 years ago (2016-11-29 21:56:06 UTC) #25
fdoray
https://codereview.chromium.org/2525483006/diff/40001/chrome/browser/mac/keystone_glue.mm File chrome/browser/mac/keystone_glue.mm (right): https://codereview.chromium.org/2525483006/diff/40001/chrome/browser/mac/keystone_glue.mm#newcode79 chrome/browser/mac/keystone_glue.mm:79: base::TaskShutdownBehavior::CONTINUE_ON_SHUTDOWN), On 2016/11/29 21:56:06, Mark Mentovai wrote: > Revise ...
4 years ago (2016-11-30 19:25:22 UTC) #27
Mark Mentovai
LGTM https://codereview.chromium.org/2525483006/diff/40001/chrome/browser/mac/keystone_glue.mm File chrome/browser/mac/keystone_glue.mm (right): https://codereview.chromium.org/2525483006/diff/40001/chrome/browser/mac/keystone_glue.mm#newcode715 chrome/browser/mac/keystone_glue.mm:715: PerformBridge::PostPerform(self, @selector(determineUpdateStatus)); On 2016/11/30 19:25:21, fdoray wrote: > ...
4 years ago (2016-11-30 19:53:00 UTC) #28
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/2525483006/40001
4 years ago (2016-11-30 19:56:34 UTC) #31
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years ago (2016-11-30 20:34:09 UTC) #34
commit-bot: I haz the power
4 years ago (2016-11-30 20:37:10 UTC) #36
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/7c5994f99f82726f4bc6d26181f7b29f449c3416
Cr-Commit-Position: refs/heads/master@{#435404}

Powered by Google App Engine
This is Rietveld 408576698