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

Issue 2545723005: Use TaskScheduler instead of WorkerPool in file_select_helper.cc. (Closed)

Created:
4 years ago by fdoray
Modified:
3 years, 12 months ago
CC:
chromium-reviews
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Use TaskScheduler instead of WorkerPool in file_select_helper.cc. This CL replaces base::WorkerPool::PostTask() with base::PostTaskWithTraits() call. The following traits are used: Priority: Inherited (default) The priority is inherited from the calling context (i.e. TaskTraits takes the priority of the task that creates it). 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). May Block: Tasks with this trait 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. No Sync Primitives (default): Tasks are not allowed to wait on waitable events/condition variables or to join threads/processes. TBR=jochen@chromium.org BUG=659191 Committed: https://crrev.com/9e2697603c48a60c78ca99ad404251d2764ec9c2 Cr-Commit-Position: refs/heads/master@{#440200}

Patch Set 1 #

Patch Set 2 : fix build error #

Patch Set 3 : may block #

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

Messages

Total messages: 25 (17 generated)
fdoray
Please review this CL. In particular, make sure that the traits mentioned in the CL ...
4 years ago (2016-12-02 19:27:49 UTC) #10
jochen (gone - plz use gerrit)
I don't know what the file_select_helper does on the worker pool, so I can't really ...
4 years ago (2016-12-05 15:32:45 UTC) #11
fdoray
jsbell@: Please review this CL. In particular, make sure that the traits mentioned in the ...
4 years ago (2016-12-07 15:47:47 UTC) #13
jsbell
Unfortunately, I don't think I meet jochen@'s requirements for someone "sufficiently confident" about the behavior ...
4 years ago (2016-12-12 22:36:19 UTC) #14
fdoray
On 2016/12/12 22:36:19, jsbell (OOO thru Jan 2) wrote: > Unfortunately, I don't think I ...
3 years, 12 months ago (2016-12-21 19:20:32 UTC) #16
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/2545723005/40001
3 years, 12 months ago (2016-12-21 19:21:30 UTC) #20
commit-bot: I haz the power
Committed patchset #3 (id:40001)
3 years, 12 months ago (2016-12-21 20:21:38 UTC) #23
commit-bot: I haz the power
3 years, 12 months ago (2016-12-21 20:23:56 UTC) #25
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/9e2697603c48a60c78ca99ad404251d2764ec9c2
Cr-Commit-Position: refs/heads/master@{#440200}

Powered by Google App Engine
This is Rietveld 408576698