Complete TaskPriority::BACKGROUND->BEST_EFFORT mass rename
Survey base/task_scheduler for remaining unprefixed "BACKGROUND" strings
referring to task priority (i.e. not referring to
"background thread priority").
Best-effort survey of the codebase for "BACKGROUND priority" left behind
in comments.
Update docs and remove TaskPriority::BACKGROUND for good
[email protected]
Bug: 863341
Change-Id: I055ac623767c1d77895d78dbf544a2d781a6637d
Reviewed-on: https://chromium-review.googlesource.com/1153461
Commit-Queue: Gabriel Charette <[email protected]>
Reviewed-by: Robert Liao <[email protected]>
Cr-Commit-Position: refs/heads/master@{#578802}
diff --git a/docs/threading_and_tasks.md b/docs/threading_and_tasks.md
index 223e398..accb7a8 100644
--- a/docs/threading_and_tasks.md
+++ b/docs/threading_and_tasks.md
@@ -380,12 +380,12 @@
```cpp
// This task has no explicit TaskTraits. It cannot block. Its priority
// is inherited from the calling context (e.g. if it is posted from
-// a BACKGROUND task, it will have a BACKGROUND priority). It will either
+// a BEST_EFFORT task, it will have a BEST_EFFORT priority). It will either
// block shutdown or be skipped on shutdown.
base::PostTask(FROM_HERE, base::BindOnce(...));
// This task has the highest priority. The task scheduler will try to
-// run it before USER_VISIBLE and BACKGROUND tasks.
+// run it before USER_VISIBLE and BEST_EFFORT tasks.
base::PostTaskWithTraits(
FROM_HERE, {base::TaskPriority::USER_BLOCKING},
base::BindOnce(...));