| Index: base/memory/shared_memory_posix.cc
|
| diff --git a/base/memory/shared_memory_posix.cc b/base/memory/shared_memory_posix.cc
|
| index d55c2df28bd7877ec23b0c42f57c50d8c1aed1e5..d35361f44808696e634adbcb1d7cded5ad14d476 100644
|
| --- a/base/memory/shared_memory_posix.cc
|
| +++ b/base/memory/shared_memory_posix.cc
|
| @@ -286,7 +286,7 @@ bool SharedMemory::Create(const SharedMemoryCreateOptions& options) {
|
| }
|
| requested_size_ = options.size;
|
| }
|
| - if (fp == NULL) {
|
| + if (fp == nullptr) {
|
| PLOG(ERROR) << "Creating shared memory in " << path.value() << " failed";
|
| FilePath dir = path.DirName();
|
| if (access(dir.value().c_str(), W_OK | X_OK) < 0) {
|
| @@ -403,7 +403,7 @@ void SharedMemory::Close() {
|
| bool SharedMemory::PrepareMapFile(ScopedFILE fp, ScopedFD readonly_fd) {
|
| DCHECK_EQ(-1, mapped_file_);
|
| DCHECK_EQ(-1, readonly_mapped_file_);
|
| - if (fp == NULL)
|
| + if (fp == nullptr)
|
| return false;
|
|
|
| // This function theoretically can block on the disk, but realistically
|
| @@ -462,7 +462,7 @@ bool SharedMemory::FilePathForMemoryName(const std::string& mem_name,
|
| }
|
| #endif // !defined(OS_ANDROID)
|
|
|
| -bool SharedMemory::ShareToProcessCommon(ProcessHandle process,
|
| +bool SharedMemory::ShareToProcessCommon(ProcessHandle,
|
| SharedMemoryHandle* new_handle,
|
| bool close_self,
|
| ShareMode share_mode) {
|
|
|