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

Unified Diff: base/process/kill_win.cc

Issue 2859053006: Use constexpr TaskTraits constructor in base (part 2). (Closed)
Patch Set: self-review Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « base/observer_list_unittest.cc ('k') | base/task_scheduler/post_task.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/process/kill_win.cc
diff --git a/base/process/kill_win.cc b/base/process/kill_win.cc
index 2911b36c2f426de689197c11349b6cb4445eecb0..79e5ded316e85a1d87cb57ec2db69c53ff1eeb6e 100644
--- a/base/process/kill_win.cc
+++ b/base/process/kill_win.cc
@@ -144,9 +144,7 @@ void EnsureProcessTerminated(Process process) {
PostDelayedTaskWithTraits(
FROM_HERE,
- TaskTraits()
- .WithPriority(TaskPriority::BACKGROUND)
- .WithShutdownBehavior(TaskShutdownBehavior::CONTINUE_ON_SHUTDOWN),
+ {TaskPriority::BACKGROUND, TaskShutdownBehavior::CONTINUE_ON_SHUTDOWN},
Bind(
[](Process process) {
if (WaitForSingleObject(process.Handle(), 0) == WAIT_OBJECT_0)
« no previous file with comments | « base/observer_list_unittest.cc ('k') | base/task_scheduler/post_task.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698