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

Unified Diff: content/browser/gpu/gpu_process_host_ui_shim.cc

Issue 8585002: Give base::SharedMemory::CreateAnonymous an executable flag (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 1 month 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: content/browser/gpu/gpu_process_host_ui_shim.cc
diff --git a/content/browser/gpu/gpu_process_host_ui_shim.cc b/content/browser/gpu/gpu_process_host_ui_shim.cc
index de484b302cb3d0dcf8575582c0f45f6a241210cd..69618e205b85fab764c63b2fe49c739552cb7236 100644
--- a/content/browser/gpu/gpu_process_host_ui_shim.cc
+++ b/content/browser/gpu/gpu_process_host_ui_shim.cc
@@ -281,7 +281,8 @@ void GpuProcessHostUIShim::OnAcceleratedSurfaceNew(
#if defined(OS_MACOSX)
if (params.create_transport_dib) {
scoped_ptr<base::SharedMemory> shared_memory(new base::SharedMemory());
- if (shared_memory->CreateAnonymous(params.width * params.height * 4)) {
+ if (shared_memory->CreateAnonymous(params.width * params.height * 4,
+ false)) {
// Create a local handle for RWHVMac to map the SHM.
TransportDIB::Handle local_handle;
if (!shared_memory->ShareToProcess(0 /* pid, not needed */,

Powered by Google App Engine
This is Rietveld 408576698