Index: base/memory/shared_memory_unittest.cc |
diff --git a/base/memory/shared_memory_unittest.cc b/base/memory/shared_memory_unittest.cc |
index 36296f4de10072aa17daaf795e78bc60e6c9c92a..2cc7968e784470b78e98061f5cea95f92a583334 100644 |
--- a/base/memory/shared_memory_unittest.cc |
+++ b/base/memory/shared_memory_unittest.cc |
@@ -605,7 +605,7 @@ TEST(SharedMemoryTest, UnsafeImageSection) { |
EXPECT_EQ(nullptr, shared_memory_open.memory()); |
SharedMemory shared_memory_handle_local( |
- SharedMemoryHandle(section_handle.Take(), ::GetCurrentProcessId()), true); |
+ SharedMemoryHandle(section_handle.Take()), true); |
EXPECT_FALSE(shared_memory_handle_local.Map(1)); |
EXPECT_EQ(nullptr, shared_memory_handle_local.memory()); |
@@ -620,7 +620,7 @@ TEST(SharedMemoryTest, UnsafeImageSection) { |
::GetCurrentProcess(), shared_memory_handle_dummy.handle().GetHandle(), |
::GetCurrentProcess(), &handle_no_query, FILE_MAP_READ, FALSE, 0)); |
SharedMemory shared_memory_handle_no_query( |
- SharedMemoryHandle(handle_no_query, ::GetCurrentProcessId()), true); |
+ SharedMemoryHandle(handle_no_query), true); |
EXPECT_FALSE(shared_memory_handle_no_query.Map(1)); |
EXPECT_EQ(nullptr, shared_memory_handle_no_query.memory()); |
} |