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

Issue 2592133002: Update TaskTraits in history_service.cc. (Closed)

Created:
3 years, 12 months ago by fdoray
Modified:
3 years, 12 months ago
Reviewers:
gab, sdefresne
CC:
chromium-reviews
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Update TaskTraits in history_service.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 TBR=sdefresne@chromium.org BUG=675660 Committed: https://crrev.com/81a5ca8f084ec7ecada62fa3cb7788de66d3fbf4 Cr-Commit-Position: refs/heads/master@{#440394}

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1 line, -1 line) Patch
M components/history/core/browser/history_service.cc View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 17 (10 generated)
fdoray
PTAL We also need to add WithSyncPrimitives() because of ChromeHistoryBackendClient::IsBookmarked. Let's do this in a ...
3 years, 12 months ago (2016-12-21 16:11:44 UTC) #4
gab
On 2016/12/21 16:11:44, fdoray wrote: > PTAL > > We also need to add WithSyncPrimitives() ...
3 years, 12 months ago (2016-12-21 16:13:21 UTC) #5
fdoray
TBR=sdefresne@chromium.org for a trivial change
3 years, 12 months ago (2016-12-22 12:54:08 UTC) #9
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/2592133002/1
3 years, 12 months ago (2016-12-22 12:54:30 UTC) #11
sdefresne
lgtm
3 years, 12 months ago (2016-12-22 12:54:42 UTC) #12
commit-bot: I haz the power
Committed patchset #1 (id:1)
3 years, 12 months ago (2016-12-22 12:58:22 UTC) #15
commit-bot: I haz the power
3 years, 12 months ago (2016-12-22 13:00:49 UTC) #17
Message was sent while issue was closed.
Patchset 1 (id:??) landed as
https://crrev.com/81a5ca8f084ec7ecada62fa3cb7788de66d3fbf4
Cr-Commit-Position: refs/heads/master@{#440394}

Powered by Google App Engine
This is Rietveld 408576698