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

Issue 2595903002: Update TaskTraits in platform_keys_nss.cc. (Closed)

Created:
4 years ago by fdoray
Modified:
4 years ago
Reviewers:
gab, emaxx
CC:
chromium-reviews, oshima+watch_chromium.org, davemoore+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Update TaskTraits in platform_keys_nss.cc. The .WithFileIO() and .WithWait() traits were deprecated in favor of .MayBlock() and .WithSyncPrimitives(). See rationale in https://docs.google.com/a/chromium.org/document/d/1ynRvQKah3Cx_eLqPS7KzIp8u73HeKIjX7HQqwSWOnF8/edit?usp=sharing .MayBlock() 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. This trait does not allow tasks to wait on synchronization primitives (thread or process handles, waitable events, condition variables). .WithSyncPrimitives() Tasks with this trait are allowed to block on synchronization primitives (wait on a waitable event/condition variable, join a process/thread). This trait implies MayBlock(), i.e. you do not need to specify MayBlock() for a task that blocks exclusively on synchronization primitives. R=gab@chromium.org BUG=675660 Committed: https://crrev.com/75f928276fd3742f1a9b10aefae583743a864768 Cr-Commit-Position: refs/heads/master@{#440217}

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+6 lines, -9 lines) Patch
M chrome/browser/chromeos/platform_keys/platform_keys_nss.cc View 3 chunks +6 lines, -9 lines 0 comments Download

Messages

Total messages: 15 (9 generated)
fdoray
PTAL
4 years ago (2016-12-21 16:06:09 UTC) #4
gab
lgtm
4 years ago (2016-12-21 16:08:24 UTC) #5
emaxx
Giving LGTM as it's anyway up to you to decide which flag is more appropriate ...
4 years ago (2016-12-21 20:41:44 UTC) #8
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/2595903002/1
4 years ago (2016-12-21 21:15:04 UTC) #10
commit-bot: I haz the power
Committed patchset #1 (id:1)
4 years ago (2016-12-21 21:22:12 UTC) #13
commit-bot: I haz the power
4 years ago (2016-12-21 21:26:22 UTC) #15
Message was sent while issue was closed.
Patchset 1 (id:??) landed as
https://crrev.com/75f928276fd3742f1a9b10aefae583743a864768
Cr-Commit-Position: refs/heads/master@{#440217}

Powered by Google App Engine
This is Rietveld 408576698