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

Issue 2528893004: Use TaskScheduler instead of WorkerPool in easy_unlock_tpm_key_manager.cc. (Closed)

Created:
4 years ago by fdoray
Modified:
4 years ago
Reviewers:
xiyuan, gab, tbarzic
CC:
chromium-reviews, alemate+watch_chromium.org, achuith+watch_chromium.org, 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 easy_unlock_tpm_key_manager.cc. This CL replaces base::WorkerPool::PostTask() with base::PostTaskWithTraits(). The following traits are used: Priority: Inherited (default) The priority is inherited from the calling context (i.e. TaskTraits are initialized with the priority of the current task). 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/cb096ca51bc796ac7916628ddbc00d8338c8340f Cr-Commit-Position: refs/heads/master@{#435998}

Patch Set 1 #

Patch Set 2 : fix test #

Total comments: 2

Patch Set 3 : CONTINUE_ON_SHUTDOWN #

Patch Set 4 : add withfileio() #

Patch Set 5 : fix initialization order in test #

Patch Set 6 : add WithWait(), remove explicit priority #

Unified diffs Side-by-side diffs Delta from patch set Stats (+17 lines, -17 lines) Patch
M chrome/browser/chromeos/login/easy_unlock/easy_unlock_tpm_key_manager.cc View 1 2 3 4 5 3 chunks +15 lines, -17 lines 0 comments Download
M chrome/browser/chromeos/login/easy_unlock/easy_unlock_tpm_key_manager_unittest.cc View 1 2 3 4 2 chunks +2 lines, -0 lines 0 comments Download

Messages

Total messages: 41 (28 generated)
fdoray
PTAL
4 years ago (2016-11-25 20:05:30 UTC) #11
gab
lgtm w/ comment + OWNERS approval of priority pick https://codereview.chromium.org/2528893004/diff/20001/chrome/browser/chromeos/login/easy_unlock/easy_unlock_tpm_key_manager_unittest.cc File chrome/browser/chromeos/login/easy_unlock/easy_unlock_tpm_key_manager_unittest.cc (right): https://codereview.chromium.org/2528893004/diff/20001/chrome/browser/chromeos/login/easy_unlock/easy_unlock_tpm_key_manager_unittest.cc#newcode341 chrome/browser/chromeos/login/easy_unlock/easy_unlock_tpm_key_manager_unittest.cc:341: ...
4 years ago (2016-11-28 16:36:43 UTC) #12
gab
On 2016/11/28 16:36:43, gab wrote: > lgtm w/ comment + OWNERS approval of priority pick ...
4 years ago (2016-11-28 16:37:43 UTC) #13
fdoray
https://codereview.chromium.org/2528893004/diff/20001/chrome/browser/chromeos/login/easy_unlock/easy_unlock_tpm_key_manager_unittest.cc File chrome/browser/chromeos/login/easy_unlock/easy_unlock_tpm_key_manager_unittest.cc (right): https://codereview.chromium.org/2528893004/diff/20001/chrome/browser/chromeos/login/easy_unlock/easy_unlock_tpm_key_manager_unittest.cc#newcode341 chrome/browser/chromeos/login/easy_unlock/easy_unlock_tpm_key_manager_unittest.cc:341: base::test::ScopedTaskScheduler scoped_task_scheduler_; On 2016/11/28 16:36:43, gab wrote: > In ...
4 years ago (2016-11-29 20:39:19 UTC) #18
fdoray
Please review this CL. You should verify that the traits mentioned in the CL description ...
4 years ago (2016-11-29 20:41:34 UTC) #21
xiyuan
Toni, could you help with the review? The CL looks fine to me but would ...
4 years ago (2016-11-29 21:41:16 UTC) #25
tbarzic
I'd consider adding WithWait (similar to https://codereview.chromium.org/2526283004/), but otherwise LGTM
4 years ago (2016-11-29 22:52:59 UTC) #28
fdoray
On 2016/11/29 22:52:59, tbarzic wrote: > I'd consider adding WithWait (similar to > https://codereview.chromium.org/2526283004/), but ...
4 years ago (2016-12-02 19:01:45 UTC) #30
fdoray
xiyuan@: PTAL
4 years ago (2016-12-02 19:02:29 UTC) #32
xiyuan
lgtm
4 years ago (2016-12-02 19:03:34 UTC) #33
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/2528893004/100001
4 years ago (2016-12-02 19:13:30 UTC) #36
commit-bot: I haz the power
Committed patchset #6 (id:100001)
4 years ago (2016-12-02 19:42:15 UTC) #39
commit-bot: I haz the power
4 years ago (2016-12-02 19:45:50 UTC) #41
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/cb096ca51bc796ac7916628ddbc00d8338c8340f
Cr-Commit-Position: refs/heads/master@{#435998}

Powered by Google App Engine
This is Rietveld 408576698