Index: content/browser/ppapi_plugin_process_host.cc |
diff --git a/content/browser/ppapi_plugin_process_host.cc b/content/browser/ppapi_plugin_process_host.cc |
index e279b99a3972c2302efb00c5ec4ef6a62a60dca9..3d07a60686fba145b164992813c2ba0383eec4ef 100644 |
--- a/content/browser/ppapi_plugin_process_host.cc |
+++ b/content/browser/ppapi_plugin_process_host.cc |
@@ -298,11 +298,13 @@ void PpapiPluginProcessHost::RequestPluginChannel(Client* client) { |
int renderer_child_id; |
client->GetPpapiChannelInfo(&process_handle, &renderer_child_id); |
+ base::ProcessId process_id = (process_handle == base::kNullProcessHandle) ? |
+ 0 : base::GetProcId(process_handle); |
+ |
// We can't send any sync messages from the browser because it might lead to |
// a hang. See the similar code in PluginProcessHost for more description. |
PpapiMsg_CreateChannel* msg = new PpapiMsg_CreateChannel( |
- base::GetProcId(process_handle), renderer_child_id, |
- client->OffTheRecord()); |
+ process_id, renderer_child_id, client->OffTheRecord()); |
msg->set_unblock(true); |
if (Send(msg)) { |
sent_requests_.push(client); |