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

Issue 2679233003: Use TaskScheduler instead of WorkerPool in polling_proxy_config_service.cc. (Closed)

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

Description

Use TaskScheduler instead of WorkerPool in polling_proxy_config_service.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). 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/2679233003 Cr-Commit-Position: refs/heads/master@{#451335} Committed: https://chromium.googlesource.com/chromium/src/+/a16c9bad4d2c9f5a713442c7a4a0651d85780406

Patch Set 1 #

Patch Set 2 : ScpedTaskScheduler #

Total comments: 5

Patch Set 3 : private #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+13 lines, -7 lines) Patch
M net/proxy/polling_proxy_config_service.cc View 2 chunks +6 lines, -6 lines 0 comments Download
M net/url_request/url_request_context_builder_unittest.cc View 1 2 3 chunks +7 lines, -1 line 3 comments Download

Messages

Total messages: 27 (15 generated)
fdoray
PTAL
3 years, 10 months ago (2017-02-09 12:52:46 UTC) #10
xunjieli
https://codereview.chromium.org/2679233003/diff/20001/net/proxy/polling_proxy_config_service.cc File net/proxy/polling_proxy_config_service.cc (right): https://codereview.chromium.org/2679233003/diff/20001/net/proxy/polling_proxy_config_service.cc#newcode94 net/proxy/polling_proxy_config_service.cc:94: FROM_HERE, base::TaskTraits().MayBlock().WithShutdownBehavior( Why does this have a "MayBlock()" ? ...
3 years, 10 months ago (2017-02-10 16:53:33 UTC) #11
fdoray
PTAnL https://codereview.chromium.org/2679233003/diff/20001/net/proxy/polling_proxy_config_service.cc File net/proxy/polling_proxy_config_service.cc (right): https://codereview.chromium.org/2679233003/diff/20001/net/proxy/polling_proxy_config_service.cc#newcode94 net/proxy/polling_proxy_config_service.cc:94: FROM_HERE, base::TaskTraits().MayBlock().WithShutdownBehavior( On 2017/02/10 16:53:32, xunjieli wrote: > ...
3 years, 10 months ago (2017-02-13 15:56:04 UTC) #12
xunjieli
Eric, could you take this? Does GetCurrentProxyConfig() does file i/o? I'm not familiar with this ...
3 years, 10 months ago (2017-02-13 21:12:05 UTC) #14
eroman
https://codereview.chromium.org/2679233003/diff/20001/net/proxy/polling_proxy_config_service.cc File net/proxy/polling_proxy_config_service.cc (right): https://codereview.chromium.org/2679233003/diff/20001/net/proxy/polling_proxy_config_service.cc#newcode94 net/proxy/polling_proxy_config_service.cc:94: FROM_HERE, base::TaskTraits().MayBlock().WithShutdownBehavior( On 2017/02/13 15:56:04, fdoray wrote: > On ...
3 years, 10 months ago (2017-02-13 23:14:52 UTC) #15
fdoray
PTAnL https://codereview.chromium.org/2679233003/diff/40001/net/url_request/url_request_context_builder_unittest.cc File net/url_request/url_request_context_builder_unittest.cc (right): https://codereview.chromium.org/2679233003/diff/40001/net/url_request/url_request_context_builder_unittest.cc#newcode77 net/url_request/url_request_context_builder_unittest.cc:77: base::test::ScopedTaskScheduler scoped_task_scheduler_; On 2017/02/13 23:14:52, eroman wrote: > ...
3 years, 10 months ago (2017-02-16 21:41:00 UTC) #16
eroman
LGTM for the polling proxy config changes. I still have concerns around the pattern of ...
3 years, 10 months ago (2017-02-16 22:14:02 UTC) #17
fdoray
On 2017/02/16 22:14:02, eroman wrote: > LGTM for the polling proxy config changes. > > ...
3 years, 10 months ago (2017-02-17 15:09:14 UTC) #18
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/2679233003/40001
3 years, 10 months ago (2017-02-17 15:09:36 UTC) #20
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_tsan_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_tsan_rel_ng/builds/17296)
3 years, 10 months ago (2017-02-17 15:57:12 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/2679233003/40001
3 years, 10 months ago (2017-02-17 16:45:00 UTC) #24
commit-bot: I haz the power
3 years, 10 months ago (2017-02-17 17:52:27 UTC) #27
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as
https://chromium.googlesource.com/chromium/src/+/a16c9bad4d2c9f5a713442c7a4a0...

Powered by Google App Engine
This is Rietveld 408576698