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

Issue 2103883004: Remove dependency of SSLPlatformKeyTaskRunner on single-threaded SequencedWorkerPool. (Closed)

Created:
4 years, 5 months ago by gab
Modified:
4 years, 4 months ago
Reviewers:
Ryan Sleevi
CC:
chromium-reviews, cbentzel+watch_chromium.org, eroman
Base URL:
https://chromium.googlesource.com/chromium/src.git@a2_hook
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Remove dependency of SSLPlatformKeyTaskRunner on single-threaded SequencedWorkerPool. Use a base::Thread bound to a LazyInstance (so it's never joined) instead, keeping CONTINUE_ON_SHUTDOWN semantics. Make the API explicitly use SingleThreadTaskRunner for both SSLPlatformKeyTaskRunner and ThreadedSSLPrivateKey as they appear to have a hard requirement on this being the case: https://codereview.chromium.org/2077413009/#msg16 Explicitly document that the exposed SingleThreadTaskRunner has CONTINUE_ON_SHUTDOWN semantics as this is also a critical requirement. BUG=622400 Committed: https://crrev.com/ed5ccb96b02293af2f9daa6f3c21b757f843304e Cr-Commit-Position: refs/heads/master@{#409668}

Patch Set 1 #

Patch Set 2 : Clarify API further. #

Total comments: 13

Patch Set 3 : TaskShutdownBehavior::CONTINUE_ON_SHUTDOWN in comments #

Patch Set 4 : revert to separate GetSSLPlatformKeyTaskRunner() #

Patch Set 5 : Use a non-joinable base::Thread. #

Total comments: 6

Patch Set 6 : fix fwd-decls #

Unified diffs Side-by-side diffs Delta from patch set Stats (+30 lines, -23 lines) Patch
M net/ssl/ssl_platform_key_task_runner.h View 1 2 3 4 5 1 chunk +12 lines, -7 lines 0 comments Download
M net/ssl/ssl_platform_key_task_runner.cc View 1 2 3 4 1 chunk +11 lines, -10 lines 0 comments Download
M net/ssl/threaded_ssl_private_key.h View 1 2 3 4 5 3 chunks +5 lines, -4 lines 0 comments Download
M net/ssl/threaded_ssl_private_key.cc View 1 2 chunks +2 lines, -2 lines 0 comments Download

Depends on Patchset:

Messages

Total messages: 38 (18 generated)
gab
Ryan PTAL, I'm pretty sure this is equivalent. A MessageLoop with TYPE_DEFAULT pretty much only ...
4 years, 5 months ago (2016-06-29 18:28:10 UTC) #5
Ryan Sleevi
I won't have time to review this this week, because it'll take time and testing.
4 years, 5 months ago (2016-06-29 18:29:38 UTC) #6
gab
On 2016/06/29 18:29:38, Ryan Sleevi wrote: > I won't have time to review this this ...
4 years, 5 months ago (2016-06-29 19:48:58 UTC) #7
Ryan Sleevi
https://codereview.chromium.org/2103883004/diff/40001/net/ssl/ssl_platform_key_task_runner.h File net/ssl/ssl_platform_key_task_runner.h (right): https://codereview.chromium.org/2103883004/diff/40001/net/ssl/ssl_platform_key_task_runner.h#newcode20 net/ssl/ssl_platform_key_task_runner.h:20: // CONTINUE_ON_SHUTDOWN semantics. Simply from reading this header, it's ...
4 years, 5 months ago (2016-07-01 01:09:30 UTC) #8
gab
Thanks, replies below. https://codereview.chromium.org/2103883004/diff/40001/net/ssl/ssl_platform_key_task_runner.h File net/ssl/ssl_platform_key_task_runner.h (right): https://codereview.chromium.org/2103883004/diff/40001/net/ssl/ssl_platform_key_task_runner.h#newcode20 net/ssl/ssl_platform_key_task_runner.h:20: // CONTINUE_ON_SHUTDOWN semantics. On 2016/07/01 01:09:30, ...
4 years, 5 months ago (2016-07-05 15:40:42 UTC) #9
Ryan Sleevi
https://codereview.chromium.org/2103883004/diff/40001/net/ssl/ssl_platform_key_task_runner.h File net/ssl/ssl_platform_key_task_runner.h (right): https://codereview.chromium.org/2103883004/diff/40001/net/ssl/ssl_platform_key_task_runner.h#newcode20 net/ssl/ssl_platform_key_task_runner.h:20: // CONTINUE_ON_SHUTDOWN semantics. On 2016/07/05 15:40:42, gab wrote: > ...
4 years, 5 months ago (2016-07-06 18:57:07 UTC) #10
gab
Thanks, all addressed, PTAL. https://codereview.chromium.org/2103883004/diff/40001/net/ssl/ssl_platform_key_task_runner.h File net/ssl/ssl_platform_key_task_runner.h (right): https://codereview.chromium.org/2103883004/diff/40001/net/ssl/ssl_platform_key_task_runner.h#newcode20 net/ssl/ssl_platform_key_task_runner.h:20: // CONTINUE_ON_SHUTDOWN semantics. On 2016/07/06 ...
4 years, 5 months ago (2016-07-07 23:51:34 UTC) #11
gab
https://codereview.chromium.org/2103883004/diff/40001/net/ssl/ssl_platform_key_task_runner.h File net/ssl/ssl_platform_key_task_runner.h (right): https://codereview.chromium.org/2103883004/diff/40001/net/ssl/ssl_platform_key_task_runner.h#newcode31 net/ssl/ssl_platform_key_task_runner.h:31: base::Thread worker_thread_; On 2016/07/07 23:51:34, gab wrote: > On ...
4 years, 5 months ago (2016-07-07 23:54:16 UTC) #12
Ryan Sleevi
On 2016/07/07 23:54:16, gab wrote: > On that note though, it would probably be better ...
4 years, 5 months ago (2016-07-08 00:19:24 UTC) #14
gab
On 2016/07/08 00:19:24, Ryan Sleevi (extremely slow) wrote: > On 2016/07/07 23:54:16, gab wrote: > ...
4 years, 5 months ago (2016-07-08 00:30:31 UTC) #15
gab
On 2016/07/08 00:30:31, gab wrote: > On 2016/07/08 00:19:24, Ryan Sleevi (extremely slow) wrote: > ...
4 years, 5 months ago (2016-07-12 03:30:22 UTC) #16
gab
On 2016/07/12 03:30:22, gab wrote: > On 2016/07/08 00:30:31, gab wrote: > > On 2016/07/08 ...
4 years, 4 months ago (2016-07-26 21:36:15 UTC) #25
Ryan Sleevi
LGTM % nits https://codereview.chromium.org/2103883004/diff/160001/net/ssl/ssl_platform_key_task_runner.h File net/ssl/ssl_platform_key_task_runner.h (right): https://codereview.chromium.org/2103883004/diff/160001/net/ssl/ssl_platform_key_task_runner.h#newcode13 net/ssl/ssl_platform_key_task_runner.h:13: class SingleThreadTaskRunner; BUG: wrong namespace; should ...
4 years, 4 months ago (2016-07-27 19:09:23 UTC) #26
gab
Thanks, done. Will land after dependent CLs land. https://codereview.chromium.org/2103883004/diff/160001/net/ssl/ssl_platform_key_task_runner.h File net/ssl/ssl_platform_key_task_runner.h (right): https://codereview.chromium.org/2103883004/diff/160001/net/ssl/ssl_platform_key_task_runner.h#newcode13 net/ssl/ssl_platform_key_task_runner.h:13: class ...
4 years, 4 months ago (2016-07-28 18:30:34 UTC) #27
Ryan Sleevi
Yeah, I've seen us either omit or include, but wanted to make sure either way ...
4 years, 4 months ago (2016-07-28 18:34:26 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/2103883004/180001
4 years, 4 months ago (2016-08-03 20:01:25 UTC) #30
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_chromeos_ozone_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_chromeos_ozone_rel_ng/builds/212128)
4 years, 4 months ago (2016-08-03 20:57:28 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/2103883004/180001
4 years, 4 months ago (2016-08-03 22:56:29 UTC) #34
commit-bot: I haz the power
Committed patchset #6 (id:180001)
4 years, 4 months ago (2016-08-03 23:46:11 UTC) #36
commit-bot: I haz the power
4 years, 4 months ago (2016-08-03 23:47:44 UTC) #38
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/ed5ccb96b02293af2f9daa6f3c21b757f843304e
Cr-Commit-Position: refs/heads/master@{#409668}

Powered by Google App Engine
This is Rietveld 408576698