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

Unified Diff: ppapi/native_client/src/shared/ppapi_proxy/browser_ppb_audio_rpc_server.cc

Issue 10069041: Add more NULL checks in proxy. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 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/native_client/src/shared/ppapi_proxy/browser_globals.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/native_client/src/shared/ppapi_proxy/browser_ppb_audio_rpc_server.cc
===================================================================
--- ppapi/native_client/src/shared/ppapi_proxy/browser_ppb_audio_rpc_server.cc (revision 132078)
+++ ppapi/native_client/src/shared/ppapi_proxy/browser_ppb_audio_rpc_server.cc (working copy)
@@ -104,8 +104,12 @@
factory.ImportSyncSocketHandle(nacl_sync_dup_handle));
NaClDesc *nacl_shm = shm_wrapper->desc();
NaClDesc *nacl_socket = socket_wrapper->desc();
+ NaClSrpcChannel* nacl_srpc_channel = ppapi_proxy::GetMainSrpcChannel(
+ data->instance_id);
+ if (NULL == nacl_srpc_channel)
+ return;
static_cast<void>(PppAudioRpcClient::PPP_Audio_StreamCreated(
- ppapi_proxy::GetMainSrpcChannel(data->instance_id),
+ nacl_srpc_channel,
data->audio_id,
nacl_shm,
shared_memory_size,
« no previous file with comments | « ppapi/native_client/src/shared/ppapi_proxy/browser_globals.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698