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

Issue 2682523002: Use TaskScheduler in directory_lister.cc. (Closed)

Created:
3 years, 10 months ago by fdoray
Modified:
3 years, 10 months ago
CC:
bnc+watch_chromium.org, cbentzel+watch_chromium.org, chromium-reviews, net-reviews_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Use TaskScheduler in directory_lister.cc. Instead of taking an external TaskRunner, post directly to TaskScheduler. This changes removes a call to the deprecated WorkerPool::GetTaskRunner method. The following traits are used to post to TaskScheduler: 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). 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/2682523002 Cr-Commit-Position: refs/heads/master@{#449599} Committed: https://chromium.googlesource.com/chromium/src/+/9f0b47853110ba3becfea5ca2e447588cff39fe5

Patch Set 1 #

Patch Set 2 : self-review #

Patch Set 3 : add ScopedTaskScheduler #

Patch Set 4 : fix build error #

Patch Set 5 : remove ScopedTaskScheduler from TokenBindingURLRequestTest #

Unified diffs Side-by-side diffs Delta from patch set Stats (+35 lines, -56 lines) Patch
M chrome/browser/file_select_helper.cc View 1 2 chunks +2 lines, -16 lines 0 comments Download
M net/base/directory_lister.h View 1 chunk +2 lines, -2 lines 0 comments Download
M net/base/directory_lister.cc View 2 chunks +6 lines, -2 lines 0 comments Download
M net/base/directory_lister_unittest.cc View 5 chunks +9 lines, -6 lines 0 comments Download
M net/url_request/url_request_file_dir_job.h View 3 chunks +0 lines, -8 lines 0 comments Download
M net/url_request/url_request_file_dir_job.cc View 2 chunks +1 line, -13 lines 0 comments Download
M net/url_request/url_request_file_dir_job_unittest.cc View 3 chunks +8 lines, -4 lines 0 comments Download
M net/url_request/url_request_unittest.cc View 1 2 3 4 4 chunks +7 lines, -5 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 29 (23 generated)
fdoray
PTAL
3 years, 10 months ago (2017-02-07 15:31:00 UTC) #20
Julia Tuttle
On 2017/02/07 15:31:00, fdoray wrote: > PTAL lgtm
3 years, 10 months ago (2017-02-09 16:12:10 UTC) #21
fdoray
jochen@: Please review changes in chrome/
3 years, 10 months ago (2017-02-09 16:26:11 UTC) #23
jochen (gone - plz use gerrit)
lgtm
3 years, 10 months ago (2017-02-10 09:05:33 UTC) #24
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/2682523002/80001
3 years, 10 months ago (2017-02-10 11:58:17 UTC) #26
commit-bot: I haz the power
3 years, 10 months ago (2017-02-10 12:56:25 UTC) #29
Message was sent while issue was closed.
Committed patchset #5 (id:80001) as
https://chromium.googlesource.com/chromium/src/+/9f0b47853110ba3becfea5ca2e44...

Powered by Google App Engine
This is Rietveld 408576698