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

Unified Diff: base/threading/sequenced_worker_pool.h

Issue 2383203002: Mark SequencedWorkerPool::GetWorkerPoolForCurrentThread() as deprecated. (Closed)
Patch Set: self-review Created 4 years, 3 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/threading/sequenced_worker_pool.h
diff --git a/base/threading/sequenced_worker_pool.h b/base/threading/sequenced_worker_pool.h
index 53bb153068c1390a0c422dd7bc2ae22adad9c8d0..68f15dece27c809ab840a37a3c2bd2761653d3b2 100644
--- a/base/threading/sequenced_worker_pool.h
+++ b/base/threading/sequenced_worker_pool.h
@@ -166,6 +166,12 @@ class BASE_EXPORT SequencedWorkerPool : public TaskRunner {
// Returns the SequencedWorkerPool that owns this thread, or null if the
// current thread is not a SequencedWorkerPool worker thread.
+ //
+ // Always returns nullptr when SequencedWorkerPool is redirected to
+ // TaskScheduler.
+ //
+ // DEPRECATED. The only remaining use is in
danakj 2016/09/30 19:14:55 Can you say what people should use instead?
gab 2016/09/30 19:24:01 IMO something like: // DEPRECATED. Use SequencedT
fdoray 2016/09/30 19:28:55 Done.
+ // base/threading/sequenced_task_runner_handle.cc.
static scoped_refptr<SequencedWorkerPool> GetWorkerPoolForCurrentThread();
// Returns a unique token that can be used to sequence tasks posted to
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698