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

Unified Diff: ceee/ie/broker/executors_manager.h

Issue 5206005: Revert 66719 - Reland r65996. Disallows Singletons on non-joinable thread.... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 10 years, 1 month 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 | « base/tracked_objects.cc ('k') | chrome/browser/browser_thread.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ceee/ie/broker/executors_manager.h
===================================================================
--- ceee/ie/broker/executors_manager.h (revision 66790)
+++ ceee/ie/broker/executors_manager.h (working copy)
@@ -90,10 +90,14 @@
// Traits for Singleton<ExecutorsManager> so that we can pass an argument
// to the constructor.
- struct SingletonTraits : public DefaultSingletonTraits<ExecutorsManager> {
+ struct SingletonTraits {
static ExecutorsManager* New() {
return new ExecutorsManager(false); // By default, we want a thread.
}
+ static void Delete(ExecutorsManager* x) {
+ delete x;
+ }
+ static const bool kRegisterAtExit = true;
};
protected:
« no previous file with comments | « base/tracked_objects.cc ('k') | chrome/browser/browser_thread.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698