diff options
author | evan@chromium.org <evan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-10-22 22:56:27 +0000 |
---|---|---|
committer | evan@chromium.org <evan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-10-22 22:56:27 +0000 |
commit | 8da3067b27f52b4413c0aad3ad5da721766e2129 (patch) | |
tree | b87070e259c0137ea7715847319d54761d919cc1 /base/thread_restrictions.cc | |
parent | 88328f582694565b00ea445c4541f37fa73f3539 (diff) | |
download | chromium_src-8da3067b27f52b4413c0aad3ad5da721766e2129.zip chromium_src-8da3067b27f52b4413c0aad3ad5da721766e2129.tar.gz chromium_src-8da3067b27f52b4413c0aad3ad5da721766e2129.tar.bz2 |
Revert "Thread IO safety: annotate file_util, and block IO thread from doing IO"
This reverts commit r63580, build breakage.
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@63586 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/thread_restrictions.cc')
-rw-r--r-- | base/thread_restrictions.cc | 4 |
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 |