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

Issue 2596853002: Update TaskTraits in sw_reporter_installer_win.cc. (Closed)

Created:
3 years, 12 months ago by fdoray
Modified:
3 years, 12 months ago
CC:
chromium-reviews, alito+watch_chromium.org, ftirelo+watch_chromium.org, joenotcharles+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Update TaskTraits in sw_reporter_installer_win.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/6d75b05502d01d81785a502403fc69e8111ab0d8 Cr-Commit-Position: refs/heads/master@{#440156}

Patch Set 1 #

Total comments: 3

Patch Set 2 : clarify comment #

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

Messages

Total messages: 18 (9 generated)
fdoray
PTAL
3 years, 12 months ago (2016-12-21 16:07:51 UTC) #4
gab
lgtm w/ comment https://codereview.chromium.org/2596853002/diff/1/chrome/browser/component_updater/sw_reporter_installer_win.cc File chrome/browser/component_updater/sw_reporter_installer_win.cc (right): https://codereview.chromium.org/2596853002/diff/1/chrome/browser/component_updater/sw_reporter_installer_win.cc#newcode140 chrome/browser/component_updater/sw_reporter_installer_win.cc:140: // process, hence MayBlock() and WithSyncPrimitives(). ...
3 years, 12 months ago (2016-12-21 16:11:01 UTC) #5
joenotcharles
https://codereview.chromium.org/2596853002/diff/1/chrome/browser/component_updater/sw_reporter_installer_win.cc File chrome/browser/component_updater/sw_reporter_installer_win.cc (right): https://codereview.chromium.org/2596853002/diff/1/chrome/browser/component_updater/sw_reporter_installer_win.cc#newcode140 chrome/browser/component_updater/sw_reporter_installer_win.cc:140: // process, hence MayBlock() and WithSyncPrimitives(). On 2016/12/21 16:11:01, ...
3 years, 12 months ago (2016-12-21 16:20:37 UTC) #7
fdoray
PTAnL https://codereview.chromium.org/2596853002/diff/1/chrome/browser/component_updater/sw_reporter_installer_win.cc File chrome/browser/component_updater/sw_reporter_installer_win.cc (right): https://codereview.chromium.org/2596853002/diff/1/chrome/browser/component_updater/sw_reporter_installer_win.cc#newcode140 chrome/browser/component_updater/sw_reporter_installer_win.cc:140: // process, hence MayBlock() and WithSyncPrimitives(). On 2016/12/21 ...
3 years, 12 months ago (2016-12-21 16:28:42 UTC) #8
joenotcharles
lgtm
3 years, 12 months ago (2016-12-21 16:45:09 UTC) #9
Sorin Jianu
lgtm Thank you!
3 years, 12 months ago (2016-12-21 17:17:38 UTC) #10
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/2596853002/20001
3 years, 12 months ago (2016-12-21 17:23:00 UTC) #13
commit-bot: I haz the power
Committed patchset #2 (id:20001)
3 years, 12 months ago (2016-12-21 18:15:55 UTC) #16
commit-bot: I haz the power
3 years, 12 months ago (2016-12-21 18:18:54 UTC) #18
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/6d75b05502d01d81785a502403fc69e8111ab0d8
Cr-Commit-Position: refs/heads/master@{#440156}

Powered by Google App Engine
This is Rietveld 408576698