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

Unified Diff: ppapi/proxy/plugin_array_buffer_var.cc

Issue 2849633002: Get rid of base::SharedMemory::NULLHandle(); (Closed)
Patch Set: Rebase. 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 | « ppapi/proxy/media_stream_track_resource_base.cc ('k') | ppapi/proxy/ppb_audio_proxy.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/proxy/plugin_array_buffer_var.cc
diff --git a/ppapi/proxy/plugin_array_buffer_var.cc b/ppapi/proxy/plugin_array_buffer_var.cc
index 625facfa0a67658c6ba55bfbbde2fb872174c38f..da53d560496dc66ebbedbcb3d84af04bab2f2f31 100644
--- a/ppapi/proxy/plugin_array_buffer_var.cc
+++ b/ppapi/proxy/plugin_array_buffer_var.cc
@@ -28,7 +28,6 @@ namespace ppapi {
PluginArrayBufferVar::PluginArrayBufferVar(uint32_t size_in_bytes)
: buffer_(size_in_bytes),
- plugin_handle_(base::SharedMemory::NULLHandle()),
size_in_bytes_(size_in_bytes) {}
PluginArrayBufferVar::PluginArrayBufferVar(uint32_t size_in_bytes,
@@ -99,7 +98,7 @@ bool PluginArrayBufferVar::CopyToNewShmem(
// We don't need to keep the shared memory around on the plugin side;
// we've already copied all our data into it. We'll make it invalid
// just to be safe.
- *plugin_out_handle = base::SharedMemory::NULLHandle();
+ *plugin_out_handle = base::SharedMemoryHandle();
return true;
}
« no previous file with comments | « ppapi/proxy/media_stream_track_resource_base.cc ('k') | ppapi/proxy/ppb_audio_proxy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698