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

Issue 2526283004: Use TaskScheduler instead of WorkerPool in platform_keys_nss.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_nss.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). With File IO: The task waits on synchronous file IO operations. With Wait: The task waits 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/1ed46e5a16b6f0ce4ee88eb1a7fd1a05383261ec Cr-Commit-Position: refs/heads/master@{#435100}

Patch Set 1 #

Patch Set 2 : self-review #

Patch Set 3 : CONTINUE_ON_SHUTDOWN #

Patch Set 4 : add WithWait() #

Patch Set 5 : add WithFileIO() #

Patch Set 6 : add WithWait() #

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

Messages

Total messages: 40 (28 generated)
fdoray
PTAL
4 years ago (2016-11-25 15:44:55 UTC) #10
gab
lgtm though check with OWNERS if this results in a TaskPriority::USER_VISIBLE worthy outcome.
4 years ago (2016-11-28 16:28:18 UTC) #12
gab
On 2016/11/28 16:28:18, gab wrote: > lgtm though check with OWNERS if this results in ...
4 years ago (2016-11-28 16:37:36 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:36:28 UTC) #20
emaxx
Answering inline: On 2016/11/29 16:36:28, fdoray wrote: > Is a BACKGROUND priority correct? See all ...
4 years ago (2016-11-29 18:49:13 UTC) #21
fdoray
On 2016/11/29 18:49:13, emaxx wrote: > Answering inline: > > > On 2016/11/29 16:36:28, fdoray ...
4 years ago (2016-11-29 20:17:10 UTC) #25
emaxx
Please see below my question regarding WithWait. But LGTM anyway. On 2016/11/29 20:17:10, fdoray wrote: ...
4 years ago (2016-11-29 20:40:10 UTC) #27
fdoray
On 2016/11/29 20:40:10, emaxx wrote: > Please see below my question regarding WithWait. > But ...
4 years ago (2016-11-29 20:56:33 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/2526283004/100001
4 years ago (2016-11-29 20:57:20 UTC) #32
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/2526283004/100001
4 years ago (2016-11-29 20:58:07 UTC) #35
commit-bot: I haz the power
Committed patchset #6 (id:100001)
4 years ago (2016-11-29 22:59:40 UTC) #38
commit-bot: I haz the power
4 years ago (2016-11-29 23:02:02 UTC) #40
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/1ed46e5a16b6f0ce4ee88eb1a7fd1a05383261ec
Cr-Commit-Position: refs/heads/master@{#435100}

Powered by Google App Engine
This is Rietveld 408576698