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

Issue 2590413003: Update TaskTraits in browser_main_loop.cc. (Closed)

Created:
4 years ago by fdoray
Modified:
4 years ago
Reviewers:
gab, Avi (use Gerrit)
CC:
chromium-reviews, jam, darin-cc_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Update TaskTraits in browser_main_loop.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/acfcc22d49973a71c3b5c9848f7564504a9b858c Cr-Commit-Position: refs/heads/master@{#440144}

Patch Set 1 #

Total comments: 2

Patch Set 2 : fix todo #

Unified diffs Side-by-side diffs Delta from patch set Stats (+3 lines, -3 lines) Patch
M content/browser/browser_main_loop.cc View 1 1 chunk +3 lines, -3 lines 0 comments Download

Messages

Total messages: 15 (8 generated)
fdoray
PTAL
4 years ago (2016-12-21 16:13:25 UTC) #4
gab
lgtm w/ comment https://codereview.chromium.org/2590413003/diff/1/content/browser/browser_main_loop.cc File content/browser/browser_main_loop.cc (right): https://codereview.chromium.org/2590413003/diff/1/content/browser/browser_main_loop.cc#newcode1016 content/browser/browser_main_loop.cc:1016: // don't need to. This TODO ...
4 years ago (2016-12-21 16:16:57 UTC) #5
Avi (use Gerrit)
lgtm
4 years ago (2016-12-21 16:24:18 UTC) #6
fdoray
https://codereview.chromium.org/2590413003/diff/1/content/browser/browser_main_loop.cc File content/browser/browser_main_loop.cc (right): https://codereview.chromium.org/2590413003/diff/1/content/browser/browser_main_loop.cc#newcode1016 content/browser/browser_main_loop.cc:1016: // don't need to. On 2016/12/21 16:16:57, gab wrote: ...
4 years ago (2016-12-21 16:26:19 UTC) #7
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/2590413003/20001
4 years ago (2016-12-21 16:26:44 UTC) #10
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years ago (2016-12-21 17:52:55 UTC) #13
commit-bot: I haz the power
4 years ago (2016-12-21 17:57:31 UTC) #15
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/acfcc22d49973a71c3b5c9848f7564504a9b858c
Cr-Commit-Position: refs/heads/master@{#440144}

Powered by Google App Engine
This is Rietveld 408576698