summaryrefslogtreecommitdiffstats
path: root/base/shared_memory_posix.cc
diff options
context:
space:
mode:
authorevan@chromium.org <evan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-10-22 22:56:27 +0000
committerevan@chromium.org <evan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-10-22 22:56:27 +0000
commit8da3067b27f52b4413c0aad3ad5da721766e2129 (patch)
treeb87070e259c0137ea7715847319d54761d919cc1 /base/shared_memory_posix.cc
parent88328f582694565b00ea445c4541f37fa73f3539 (diff)
downloadchromium_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/shared_memory_posix.cc')
-rw-r--r--base/shared_memory_posix.cc6
1 files changed, 0 insertions, 6 deletions
diff --git a/base/shared_memory_posix.cc b/base/shared_memory_posix.cc
index ae814d7..7283cbd 100644
--- a/base/shared_memory_posix.cc
+++ b/base/shared_memory_posix.cc
@@ -14,7 +14,6 @@
#include "base/logging.h"
#include "base/platform_thread.h"
#include "base/safe_strerror_posix.h"
-#include "base/thread_restrictions.h"
#include "base/utf_string_conversions.h"
namespace base {
@@ -147,11 +146,6 @@ bool SharedMemory::CreateOrOpen(const std::string& name,
int posix_flags, uint32 size) {
DCHECK(mapped_file_ == -1);
- // This function theoretically can block on the disk, but realistically
- // the temporary files we create will just go into the buffer cache
- // and be deleted before they ever make it out to disk.
- base::ThreadRestrictions::ScopedAllowIO allow_io;
-
file_util::ScopedFILE file_closer;
FILE *fp;