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

Unified Diff: base/threading/sequenced_worker_pool.h

Issue 2383203002: Mark SequencedWorkerPool::GetWorkerPoolForCurrentThread() as deprecated. (Closed)
Patch Set: CR danakj/gab #3-4 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..f06a9e523cc530047de4d55b91f0eb745efc8566 100644
--- a/base/threading/sequenced_worker_pool.h
+++ b/base/threading/sequenced_worker_pool.h
@@ -166,6 +166,14 @@ 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. Use SequencedTaskRunnerHandle::Get() instead. Consequentially
+ // the only remaining use case is in sequenced_task_runner_handle.cc to
+ // implement that and will soon be removed along with SequencedWorkerPool:
+ // http://crbug.com/622400.
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