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

Unified Diff: content/public/browser/browser_thread.h

Issue 2857983003: Use constexpr TaskTraits constructor in content. (Closed)
Patch Set: CR gab #8 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 | « content/network/url_loader_impl.cc ('k') | content/renderer/gpu/render_widget_compositor.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/public/browser/browser_thread.h
diff --git a/content/public/browser/browser_thread.h b/content/public/browser/browser_thread.h
index 104e374eb319e3c58ca9cff688ea8a7b8f6b9c12..10e8c160ba38a27adf5822525a3e8f64ec1203bb 100644
--- a/content/public/browser/browser_thread.h
+++ b/content/public/browser/browser_thread.h
@@ -74,8 +74,7 @@ class CONTENT_EXPORT BrowserThread {
// DEPRECATED: prefer base/task_scheduler/post_task.h for new classes
// requiring a background file I/O task runner, i.e.:
// base::CreateSequencedTaskRunnerWithTraits(
- // base::TaskTraits().MayBlock()
- // .WithPriority(base::TaskPriority::BACKGROUND))
+ // {base::MayBlock(), base::TaskPriority::BACKGROUND})
// Note: You can use base::TaskPriority::USER_VISIBLE instead of
// base::TaskPriority::BACKGROUND if the latency of this operation
// is visible but non-blocking to the user.
@@ -86,8 +85,7 @@ class CONTENT_EXPORT BrowserThread {
// DEPRECATED: prefer base/task_scheduler/post_task.h for new classes
// requiring a user-blocking file I/O task runner, i.e.:
// base::CreateSequencedTaskRunnerWithTraits(
- // base::TaskTraits().MayBlock()
- // .WithPriority(base::TaskPriority::USER_BLOCKING))
+ // {base::MayBlock(), base::TaskPriority::USER_BLOCKING})
FILE_USER_BLOCKING,
// Used to launch and terminate Chrome processes.
@@ -224,7 +222,7 @@ class CONTENT_EXPORT BrowserThread {
// base::SequencedWorkerPool::GetSequenceToken())
// =>
// base::CreateSequencedTaskRunnerWithTraits(
- // base::TaskTraits().MayBlock()...).
+ // {base::MayBlock()}).
static base::SequencedWorkerPool* GetBlockingPool() WARN_UNUSED_RESULT;
// Callable on any thread. Returns whether the given well-known thread is
« no previous file with comments | « content/network/url_loader_impl.cc ('k') | content/renderer/gpu/render_widget_compositor.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698