| Index: base/threading/thread_restrictions.h
|
| diff --git a/base/threading/thread_restrictions.h b/base/threading/thread_restrictions.h
|
| index 07b78aa9641e1ebdbfa80b69fd73ce8dd649ff73..f0918cd7d9678e21bad2987271395677d95a08db 100644
|
| --- a/base/threading/thread_restrictions.h
|
| +++ b/base/threading/thread_restrictions.h
|
| @@ -135,20 +135,6 @@ class BASE_EXPORT ThreadRestrictions {
|
| DISALLOW_COPY_AND_ASSIGN(ScopedAllowIO);
|
| };
|
|
|
| - // Constructing a ScopedAllowSingleton temporarily allows accessing for the
|
| - // current thread. Doing this is almost always incorrect.
|
| - class BASE_EXPORT ScopedAllowSingleton {
|
| - public:
|
| - ScopedAllowSingleton() { previous_value_ = SetSingletonAllowed(true); }
|
| - ~ScopedAllowSingleton() { SetSingletonAllowed(previous_value_); }
|
| - private:
|
| - // Whether singleton use is allowed when the ScopedAllowSingleton was
|
| - // constructed.
|
| - bool previous_value_;
|
| -
|
| - DISALLOW_COPY_AND_ASSIGN(ScopedAllowSingleton);
|
| - };
|
| -
|
| #if DCHECK_IS_ON()
|
| // Set whether the current thread to make IO calls.
|
| // Threads start out in the *allowed* state.
|
|
|