Chromium Code Reviews| Index: base/shared_memory_win.cc |
| =================================================================== |
| --- base/shared_memory_win.cc (revision 15966) |
| +++ base/shared_memory_win.cc (working copy) |
| @@ -55,6 +55,12 @@ |
| return NULL; |
| } |
| +// static |
| +void SharedMemory::CloseHandle(const SharedMemoryHandle& handle) { |
| + DCHECK(handle != NULL); |
| + ::CloseHandle(handle); |
| +} |
| + |
| bool SharedMemory::Create(const std::wstring &name, bool read_only, |
| bool open_existing, size_t size) { |
| DCHECK(mapped_file_ == NULL); |