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

Unified Diff: ppapi/proxy/media_stream_track_resource_base.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/gamepad_resource.cc ('k') | ppapi/proxy/plugin_array_buffer_var.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/proxy/media_stream_track_resource_base.cc
diff --git a/ppapi/proxy/media_stream_track_resource_base.cc b/ppapi/proxy/media_stream_track_resource_base.cc
index 4e20325f9a593adef78821347db6c00a53f5e2e6..a758b3c63ff7f2f1d4def813da4a6e32a66e6cd9 100644
--- a/ppapi/proxy/media_stream_track_resource_base.cc
+++ b/ppapi/proxy/media_stream_track_resource_base.cc
@@ -70,7 +70,7 @@ void MediaStreamTrackResourceBase::OnPluginMsgInitBuffers(
int32_t number_of_buffers,
int32_t buffer_size,
bool readonly) {
- base::SharedMemoryHandle shm_handle = base::SharedMemory::NULLHandle();
+ base::SharedMemoryHandle shm_handle;
params.TakeSharedMemoryHandleAtIndex(0, &shm_handle);
buffer_manager_.SetBuffers(number_of_buffers, buffer_size,
std::unique_ptr<base::SharedMemory>(
« no previous file with comments | « ppapi/proxy/gamepad_resource.cc ('k') | ppapi/proxy/plugin_array_buffer_var.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698