Index: base/thread_restrictions.cc |
=================================================================== |
--- base/thread_restrictions.cc (revision 63629) |
+++ base/thread_restrictions.cc (working copy) |
@@ -21,10 +21,8 @@ |
} // anonymous namespace |
// static |
-bool ThreadRestrictions::SetIOAllowed(bool allowed) { |
- bool previous_allowed = g_io_disallowed.Get().Get(); |
+void ThreadRestrictions::SetIOAllowed(bool allowed) { |
g_io_disallowed.Get().Set(!allowed); |
- return !previous_allowed; |
} |
// static |