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

Issue 2607273002: Use TaskScheduler instead of WorkerPool in fake_auth_policy_client.cc. (Closed)

Created:
3 years, 11 months ago by fdoray
Modified:
3 years, 11 months ago
Reviewers:
hashimoto
CC:
chromium-reviews, oshima+watch_chromium.org, hashimoto+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Use TaskScheduler instead of WorkerPool in fake_auth_policy_client.cc. The following traits are used to post a task to TaskScheduler from this file: 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). Note: Tasks that were previously posted to base::WorkerPool should use this shutdown behavior because this is how base::WorkerPool handles all its tasks. May Block: Tasks posted with MayBlock() may block. This includes but is not limited to tasks that wait on synchronous file I/O operations: read or write a file from disk, interact with a pipe or a socket, rename or delete a file, enumerate files in a directory, etc. This trait isn't required for the mere use of locks. BUG=659191 Review-Url: https://codereview.chromium.org/2607273002 Cr-Commit-Position: refs/heads/master@{#441681} Committed: https://chromium.googlesource.com/chromium/src/+/9be76765fef84481195dd96339c8fa011257f402

Patch Set 1 #

Patch Set 2 : rebase #

Patch Set 3 : fix build error #

Unified diffs Side-by-side diffs Delta from patch set Stats (+18 lines, -16 lines) Patch
M chromeos/dbus/fake_auth_policy_client.cc View 1 2 3 chunks +18 lines, -16 lines 0 comments Download

Messages

Total messages: 22 (17 generated)
fdoray
PTAL. WorkerPool is being deprecated in favor of TaskScheduler.
3 years, 11 months ago (2017-01-01 19:31:39 UTC) #15
hashimoto
qq: Should we use BACKGROUND whenever it's acceptable? By default, the priority of a task ...
3 years, 11 months ago (2017-01-05 05:00:24 UTC) #16
fdoray
On 2017/01/05 05:00:24, hashimoto wrote: > qq: Should we use BACKGROUND whenever it's acceptable? By ...
3 years, 11 months ago (2017-01-05 16:38:43 UTC) #17
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/2607273002/40001
3 years, 11 months ago (2017-01-05 16:39:14 UTC) #19
commit-bot: I haz the power
3 years, 11 months ago (2017-01-05 17:17:57 UTC) #22
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as
https://chromium.googlesource.com/chromium/src/+/9be76765fef84481195dd96339c8...

Powered by Google App Engine
This is Rietveld 408576698