| Index: base/memory/shared_memory_posix.cc
|
| diff --git a/base/memory/shared_memory_posix.cc b/base/memory/shared_memory_posix.cc
|
| index b123849f27e75e9a338839294747b48e43e09a62..90b8aa43fd535ec39345c4d7e1631a06039e2851 100644
|
| --- a/base/memory/shared_memory_posix.cc
|
| +++ b/base/memory/shared_memory_posix.cc
|
| @@ -100,8 +100,8 @@ bool SharedMemory::Create(const SharedMemoryCreateOptions& options) {
|
|
|
| FilePath path;
|
| if (options.name_deprecated == NULL || options.name_deprecated->empty()) {
|
| - bool result = CreateAnonymousSharedMemory(options, &fp, &readonly_fd, &path,
|
| - &last_error_);
|
| + bool result =
|
| + CreateAnonymousSharedMemory(options, &fp, &readonly_fd, &path);
|
| if (!result)
|
| return false;
|
| } else {
|
| @@ -192,9 +192,8 @@ bool SharedMemory::Create(const SharedMemoryCreateOptions& options) {
|
|
|
| int mapped_file = -1;
|
| int readonly_mapped_file = -1;
|
| - bool result =
|
| - PrepareMapFile(std::move(fp), std::move(readonly_fd), &mapped_file,
|
| - &readonly_mapped_file, &last_error_);
|
| + bool result = PrepareMapFile(std::move(fp), std::move(readonly_fd),
|
| + &mapped_file, &readonly_mapped_file);
|
| shm_ = SharedMemoryHandle(base::FileDescriptor(mapped_file, false),
|
| options.size, UnguessableToken::Create());
|
| readonly_shm_ =
|
| @@ -234,9 +233,8 @@ bool SharedMemory::Open(const std::string& name, bool read_only) {
|
| }
|
| int mapped_file = -1;
|
| int readonly_mapped_file = -1;
|
| - bool result =
|
| - PrepareMapFile(std::move(fp), std::move(readonly_fd), &mapped_file,
|
| - &readonly_mapped_file, &last_error_);
|
| + bool result = PrepareMapFile(std::move(fp), std::move(readonly_fd),
|
| + &mapped_file, &readonly_mapped_file);
|
| // This form of sharing shared memory is deprecated. https://crbug.com/345734.
|
| // However, we can't get rid of it without a significant refactor because its
|
| // used to communicate between two versions of the same service process, very
|
|
|