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

Unified Diff: base/thread_restrictions.cc

Issue 3956003: ThreadRestrictions: leak the thread local variable (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: better impl Created 10 years, 2 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
« base/lazy_instance_unittest.cc ('K') | « base/lazy_instance_unittest.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/thread_restrictions.cc
diff --git a/base/thread_restrictions.cc b/base/thread_restrictions.cc
index 5be8ad7133d390341fc1573c54efd64a2b591724..e7abc469a918f0f0a24a2d7cc5441b39622e4273 100644
--- a/base/thread_restrictions.cc
+++ b/base/thread_restrictions.cc
@@ -13,7 +13,8 @@
namespace {
-static base::LazyInstance<base::ThreadLocalBoolean>
+base::LazyInstance<base::ThreadLocalBoolean,
willchan no longer on Chromium 2010/10/21 20:26:50 Why don't you just move this anonymous namespace w
+ base::LeakyLazyInstanceTraits<base::ThreadLocalBoolean> >
g_io_disallowed(base::LINKER_INITIALIZED);
} // anonymous namespace
« base/lazy_instance_unittest.cc ('K') | « base/lazy_instance_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698