| Index: base/thread_restrictions.cc
|
| diff --git a/base/thread_restrictions.cc b/base/thread_restrictions.cc
|
| index 1ee8eee433800840b420dcb07d1d8bdcc024f6cd..270d66374bb9b0e65e343497732970aaf95aa0a0 100644
|
| --- a/base/thread_restrictions.cc
|
| +++ b/base/thread_restrictions.cc
|
| @@ -21,8 +21,10 @@ LazyInstance<ThreadLocalBoolean, LeakyLazyInstanceTraits<ThreadLocalBoolean> >
|
| } // anonymous namespace
|
|
|
| // static
|
| -void ThreadRestrictions::SetIOAllowed(bool allowed) {
|
| +bool ThreadRestrictions::SetIOAllowed(bool allowed) {
|
| + bool previous_allowed = g_io_disallowed.Get().Get();
|
| g_io_disallowed.Get().Set(!allowed);
|
| + return !previous_allowed;
|
| }
|
|
|
| // static
|
|
|