| Index: base/shared_memory_posix.cc
|
| diff --git a/base/shared_memory_posix.cc b/base/shared_memory_posix.cc
|
| index 8dc9463cdc32356dd9d7089d0df94a94202037b7..5dc4c94ce05ef225908ef5cd843a26e7e5e9cfef 100644
|
| --- a/base/shared_memory_posix.cc
|
| +++ b/base/shared_memory_posix.cc
|
| @@ -292,7 +292,7 @@ bool SharedMemory::FilePathForMemoryName(const std::string& mem_name,
|
| }
|
|
|
| void SharedMemory::LockOrUnlockCommon(int function) {
|
| - DCHECK(mapped_file_ >= 0);
|
| + DCHECK_GE(mapped_file_, 0);
|
| while (lockf(mapped_file_, function, 0) < 0) {
|
| if (errno == EINTR) {
|
| continue;
|
| @@ -314,7 +314,7 @@ bool SharedMemory::ShareToProcessCommon(ProcessHandle process,
|
| SharedMemoryHandle *new_handle,
|
| bool close_self) {
|
| const int new_fd = dup(mapped_file_);
|
| - DCHECK(new_fd >= 0);
|
| + DCHECK_GE(new_fd, 0);
|
| new_handle->fd = new_fd;
|
| new_handle->auto_close = true;
|
|
|
|
|