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

Issue 2601623002: TaskTraits: Rename WithSyncPrimitives() to WithBaseSyncPrimitives(). (Closed)

Created:
3 years, 12 months ago by fdoray
Modified:
3 years, 12 months ago
Reviewers:
Sorin Jianu, gab, jam, sdefresne
CC:
chromium-reviews, vmpstr+watch_chromium.org, alito+watch_chromium.org, robliao+watch_chromium.org, jam, darin-cc_chromium.org, gab+watch_chromium.org, joenotcharles+watch_chromium.org, fdoray+watch_chromium.org, ftirelo+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

TaskTraits: Rename WithSyncPrimitives() to WithBaseSyncPrimitives(). The goal of this change is to make it clear that there is no need to try to determine whether external APIs use sync primitives when choosing TaskTraits. WithBaseSyncPrimitives() should only be used for tasks that use base/ sync primitives. In a separate CL, we will make sure that there is a DCHECK failure whenever a task without WithBaseSyncPrimitives() uses a base/ sync primitive. TBR=sorin@chromium.org,sdefresne@chromium.org,jam@chromium.org BUG=675660 Committed: https://crrev.com/b7f74ea4888acbcfb6a1e831cfe72e7834e27928 Cr-Commit-Position: refs/heads/master@{#440652}

Patch Set 1 #

Total comments: 4

Patch Set 2 : rebase #

Patch Set 3 : CR gab #6 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+52 lines, -43 lines) Patch
M base/task_scheduler/scheduler_worker_pool_impl_unittest.cc View 4 chunks +4 lines, -4 lines 0 comments Download
M base/task_scheduler/task_tracker.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M base/task_scheduler/task_tracker_unittest.cc View 4 chunks +6 lines, -5 lines 0 comments Download
M base/task_scheduler/task_traits.h View 1 2 3 chunks +26 lines, -19 lines 0 comments Download
M base/task_scheduler/task_traits.cc View 1 2 chunks +3 lines, -3 lines 0 comments Download
M base/threading/sequenced_worker_pool.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/component_updater/recovery_component_installer.cc View 2 chunks +4 lines, -4 lines 0 comments Download
M chrome/browser/component_updater/sw_reporter_installer_win.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M components/history/core/browser/history_service.cc View 1 chunk +2 lines, -1 line 0 comments Download
M content/browser/browser_main_loop.cc View 1 chunk +1 line, -1 line 0 comments Download

Dependent Patchsets:

Messages

Total messages: 18 (10 generated)
fdoray
3 years, 12 months ago (2016-12-23 15:29:47 UTC) #4
fdoray
PTAL
3 years, 12 months ago (2016-12-23 15:29:54 UTC) #5
gab
LGTM with comments https://codereview.chromium.org/2601623002/diff/1/base/task_scheduler/task_traits.h File base/task_scheduler/task_traits.h (right): https://codereview.chromium.org/2601623002/diff/1/base/task_scheduler/task_traits.h#newcode101 base/task_scheduler/task_traits.h:101: // Tasks with this trait are ...
3 years, 12 months ago (2016-12-23 15:48:47 UTC) #6
fdoray
https://codereview.chromium.org/2601623002/diff/1/base/task_scheduler/task_traits.h File base/task_scheduler/task_traits.h (right): https://codereview.chromium.org/2601623002/diff/1/base/task_scheduler/task_traits.h#newcode101 base/task_scheduler/task_traits.h:101: // Tasks with this trait are allowed to block ...
3 years, 12 months ago (2016-12-23 17:48:16 UTC) #7
fdoray
TBR=sorin@chromium.org,sdefresne@chromium.org,jam@chromium.org for changes to call sites
3 years, 12 months ago (2016-12-23 17:49:48 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/2601623002/40001
3 years, 12 months ago (2016-12-23 17:50:09 UTC) #13
commit-bot: I haz the power
Committed patchset #3 (id:40001)
3 years, 12 months ago (2016-12-23 19:39:32 UTC) #16
commit-bot: I haz the power
3 years, 12 months ago (2016-12-23 19:41:32 UTC) #18
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/b7f74ea4888acbcfb6a1e831cfe72e7834e27928
Cr-Commit-Position: refs/heads/master@{#440652}

Powered by Google App Engine
This is Rietveld 408576698