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

Unified Diff: ui/gfx/mojo/buffer_types_struct_traits.cc

Issue 2849243002: Get rid of all pid references from base::SharedMemoryHandle. (Closed)
Patch Set: fix invalid handle Chrome IPC. Created 3 years, 8 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
« no previous file with comments | « sandbox/win/tests/common/controller.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gfx/mojo/buffer_types_struct_traits.cc
diff --git a/ui/gfx/mojo/buffer_types_struct_traits.cc b/ui/gfx/mojo/buffer_types_struct_traits.cc
index 14a98a8606fdc4fd89103397f07c5a3362b38a9a..5e3c0fcd6919c0493664b0283ec4bd3f206e5b25 100644
--- a/ui/gfx/mojo/buffer_types_struct_traits.cc
+++ b/ui/gfx/mojo/buffer_types_struct_traits.cc
@@ -129,8 +129,7 @@ bool StructTraits<gfx::mojom::GpuMemoryBufferHandleDataView,
if (unwrap_result != MOJO_RESULT_OK)
return false;
#if defined(OS_WIN)
- out->handle =
- base::SharedMemoryHandle(platform_file, base::GetCurrentProcId());
+ out->handle = base::SharedMemoryHandle(platform_file);
#else
out->handle =
base::SharedMemoryHandle(base::FileDescriptor(platform_file, true));
« no previous file with comments | « sandbox/win/tests/common/controller.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698