diff options
author | phajdan.jr@chromium.org <phajdan.jr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-03-16 16:45:36 +0000 |
---|---|---|
committer | phajdan.jr@chromium.org <phajdan.jr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-03-16 16:45:36 +0000 |
commit | 76aac1e0281a0518734c4404e9fb0814ff3c7b20 (patch) | |
tree | 0e50063deed8b1f7daaac3ca92d0826412f0aca1 /base/shared_memory_win.cc | |
parent | 3bec623b6d7cd31d93bdb48e6ee6eb7fd0c79c31 (diff) | |
download | chromium_src-76aac1e0281a0518734c4404e9fb0814ff3c7b20.zip chromium_src-76aac1e0281a0518734c4404e9fb0814ff3c7b20.tar.gz chromium_src-76aac1e0281a0518734c4404e9fb0814ff3c7b20.tar.bz2 |
Port visitedlink tests to Linux. Also make them pass on Linux, which
may fix the attached bug.
The problem was that the debug check was in wrong place (too early, before
every member was initialized), so it failed in the test.
BUG=8710
Review URL: http://codereview.chromium.org/48005
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@11734 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/shared_memory_win.cc')
-rw-r--r-- | base/shared_memory_win.cc | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/base/shared_memory_win.cc b/base/shared_memory_win.cc index 3822fc9..66f8fb6 100644 --- a/base/shared_memory_win.cc +++ b/base/shared_memory_win.cc @@ -50,6 +50,11 @@ bool SharedMemory::IsHandleValid(const SharedMemoryHandle& handle) { return handle != NULL; } +// static +SharedMemoryHandle SharedMemory::NULLHandle() { + return NULL; +} + bool SharedMemory::Create(const std::wstring &name, bool read_only, bool open_existing, size_t size) { DCHECK(mapped_file_ == NULL); |