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

Unified Diff: base/threading/sequenced_worker_pool.cc

Issue 2163613002: Revert of Enforce singleton not allowed behavior for CONTINUE_ON_SHUTDOWN tasks (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 5 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 | net/proxy/dhcpcsvc_init_win.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/threading/sequenced_worker_pool.cc
diff --git a/base/threading/sequenced_worker_pool.cc b/base/threading/sequenced_worker_pool.cc
index 9002755d21319feae01a3773f96951faf9b4e3e5..57961b5cd5538306ea00a4b354966e32b20d4e0c 100644
--- a/base/threading/sequenced_worker_pool.cc
+++ b/base/threading/sequenced_worker_pool.cc
@@ -247,14 +247,6 @@
is_processing_task_ = true;
task_sequence_token_ = token;
task_shutdown_behavior_ = shutdown_behavior;
-
- // It is dangerous for tasks with CONTINUE_ON_SHUTDOWN to access a class
- // that implements a non-leaky base::Singleton because they are generally
- // destroyed before the process terminates via an AtExitManager
- // registration. This will trigger a DCHECK to warn of such cases. See the
- // comment about CONTINUE_ON_SHUTDOWN for more details.
- ThreadRestrictions::SetSingletonAllowed(task_shutdown_behavior_ !=
- CONTINUE_ON_SHUTDOWN);
}
// Indicates that the task has finished running.
« no previous file with comments | « no previous file | net/proxy/dhcpcsvc_init_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698