summaryrefslogtreecommitdiffstats
path: root/base/memory/shared_memory_win.cc
diff options
context:
space:
mode:
authorjbauman@chromium.org <jbauman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-03-15 06:33:27 +0000
committerjbauman@chromium.org <jbauman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-03-15 06:33:27 +0000
commit422d9354fdffc3eae15be4fc6769f777a4d507ff (patch)
tree4c01d31ac94ec39f48654e1308333930760e9fa6 /base/memory/shared_memory_win.cc
parent561afe95a1feb1856178a3d20015b55887e33cd0 (diff)
downloadchromium_src-422d9354fdffc3eae15be4fc6769f777a4d507ff.zip
chromium_src-422d9354fdffc3eae15be4fc6769f777a4d507ff.tar.gz
chromium_src-422d9354fdffc3eae15be4fc6769f777a4d507ff.tar.bz2
Revert 257300 "Disallow calling Map on currently-mapped SharedMe..."
Crashes PrintWebViewHelperTests. > Disallow calling Map on currently-mapped SharedMemory > > This would leak the previous mapping of the memory. > > BUG= > > Review URL: https://codereview.chromium.org/195893022 TBR=jbauman@chromium.org Review URL: https://codereview.chromium.org/200623007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@257311 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/memory/shared_memory_win.cc')
-rw-r--r--base/memory/shared_memory_win.cc3
1 files changed, 0 insertions, 3 deletions
diff --git a/base/memory/shared_memory_win.cc b/base/memory/shared_memory_win.cc
index cc177ab..c9d603e 100644
--- a/base/memory/shared_memory_win.cc
+++ b/base/memory/shared_memory_win.cc
@@ -164,9 +164,6 @@ bool SharedMemory::MapAt(off_t offset, size_t bytes) {
if (bytes > static_cast<size_t>(std::numeric_limits<int>::max()))
return false;
- if (memory_)
- return false;
-
memory_ = MapViewOfFile(mapped_file_,
read_only_ ? FILE_MAP_READ : FILE_MAP_READ |
FILE_MAP_WRITE,