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

Issue 2534513002: Use TaskScheduler instead of WorkerPool in platform_keys.cc. (Closed)

Created:
4 years ago by fdoray
Modified:
4 years ago
Reviewers:
gab, emaxx
CC:
chromium-reviews, oshima+watch_chromium.org, davemoore+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Use TaskScheduler instead of WorkerPool in platform_keys.cc. This CL replaces base::WorkerPool::PostTask() with base::PostTaskWithTraits(). 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). No File IO (default): The task does not 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/7d18421543cc20d9d37a5709e4c9d08eaa5e8e62 Cr-Commit-Position: refs/heads/master@{#435057}

Patch Set 1 #

Patch Set 2 : fix build error #

Patch Set 3 : CONTINUE_ON_SHUTDOWN #

Patch Set 4 : add comment about priority #

Unified diffs Side-by-side diffs Delta from patch set Stats (+12 lines, -8 lines) Patch
M chrome/browser/chromeos/platform_keys/platform_keys.cc View 1 2 3 2 chunks +12 lines, -8 lines 0 comments Download

Messages

Total messages: 30 (21 generated)
fdoray
PTAL
4 years ago (2016-11-25 15:44:03 UTC) #10
gab
lgtm though OWNERS should confirm, maybe this should be TaskPriority::USER_VISIBLE
4 years ago (2016-11-28 16:30:35 UTC) #12
gab
On 2016/11/28 16:30:35, gab wrote: > lgtm though OWNERS should confirm, maybe this should be ...
4 years ago (2016-11-28 16:37:39 UTC) #13
fdoray
Please review this CL. You should verify that the traits mentioned in the CL description ...
4 years ago (2016-11-29 16:32:14 UTC) #20
emaxx
LGTM assuming that you agree with my reasoning (please see below). On 2016/11/29 16:32:14, fdoray ...
4 years ago (2016-11-29 17:25:04 UTC) #21
fdoray
On 2016/11/29 17:25:04, emaxx wrote: > LGTM assuming that you agree with my reasoning (please ...
4 years ago (2016-11-29 18:25:49 UTC) #22
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/2534513002/60001
4 years ago (2016-11-29 18:29:30 UTC) #25
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years ago (2016-11-29 19:49:27 UTC) #28
commit-bot: I haz the power
4 years ago (2016-11-29 19:53:32 UTC) #30
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/7d18421543cc20d9d37a5709e4c9d08eaa5e8e62
Cr-Commit-Position: refs/heads/master@{#435057}

Powered by Google App Engine
This is Rietveld 408576698