Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(755)

Unified Diff: sandbox/win/tests/common/controller.cc

Issue 2875453002: Add a size parameter to SharedMemoryHandle. (Closed)
Patch Set: Fix IPC on POSIX. Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: sandbox/win/tests/common/controller.cc
diff --git a/sandbox/win/tests/common/controller.cc b/sandbox/win/tests/common/controller.cc
index 6a498144f7cfcb719e71ee45f895c3cdabfa1c45..90cd634b37d48b733184283beee0f70d1c7a8b1e 100644
--- a/sandbox/win/tests/common/controller.cc
+++ b/sandbox/win/tests/common/controller.cc
@@ -316,7 +316,7 @@ int DispatchCall(int argc, wchar_t **argv) {
base::StringToUint(argv[4], reinterpret_cast<unsigned int*>(&raw_handle));
if (raw_handle == nullptr)
return SBOX_TEST_INVALID_PARAMETER;
- base::SharedMemoryHandle shared_handle(raw_handle,
+ base::SharedMemoryHandle shared_handle(raw_handle, 0u,
base::UnguessableToken::Create());
base::SharedMemory read_only_view(shared_handle, true);
if (!read_only_view.Map(0))

Powered by Google App Engine
This is Rietveld 408576698