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

Unified Diff: content/browser/browser_thread_impl.cc

Issue 2077413009: Add TaskPriority as a parameter to SequencedWorkerPool in preparation for TaskScheduler experiment. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@a2_hook
Patch Set: Created 4 years, 6 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
Index: content/browser/browser_thread_impl.cc
diff --git a/content/browser/browser_thread_impl.cc b/content/browser/browser_thread_impl.cc
index 669a29387f4bfbcdd506b08f00d961f4eb92bbfa..ea4ee455bf5f87acaeee1f96d8449e1a4d990632 100644
--- a/content/browser/browser_thread_impl.cc
+++ b/content/browser/browser_thread_impl.cc
@@ -100,7 +100,10 @@ base::LazyInstance<BrowserThreadTaskRunners>::Leaky g_task_runners =
struct BrowserThreadGlobals {
BrowserThreadGlobals()
- : blocking_pool(new base::SequencedWorkerPool(3, "BrowserBlocking")) {
+ : blocking_pool(
+ new base::SequencedWorkerPool(3,
+ "BrowserBlocking",
+ base::TaskPriority::BACKGROUND)) {
jam 2016/06/22 20:17:37 the blocking pool is for anything that needs to wr
gab 2016/06/22 21:08:56 IMO anything that goes in the BlockingPool in the
jam 2016/06/22 21:38:44 In general I agree. However it's not clear that th
gab 2016/06/27 21:29:32 I don't think it's reasonable for any caller today
jam 2016/06/30 22:45:53 The documentation for it in content/public/browser
gab 2016/07/05 13:53:44 Thanks for the examples, you're right. I guess th
memset(threads, 0, BrowserThread::ID_COUNT * sizeof(threads[0]));
memset(thread_delegates, 0,
BrowserThread::ID_COUNT * sizeof(thread_delegates[0]));

Powered by Google App Engine
This is Rietveld 408576698