summaryrefslogtreecommitdiffstats
path: root/base/thread_restrictions.cc
diff options
context:
space:
mode:
Diffstat (limited to 'base/thread_restrictions.cc')
-rw-r--r--base/thread_restrictions.cc4
1 files changed, 1 insertions, 3 deletions
diff --git a/base/thread_restrictions.cc b/base/thread_restrictions.cc
index 270d663..1ee8eee 100644
--- a/base/thread_restrictions.cc
+++ b/base/thread_restrictions.cc
@@ -21,10 +21,8 @@ LazyInstance<ThreadLocalBoolean, LeakyLazyInstanceTraits<ThreadLocalBoolean> >
} // 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