| 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 478f476f36d1370785b56029fe2e4173c588db02..6e306934c07b8f31cd0f4014e186bbef33ad6056 100644
|
| --- a/content/browser/ppapi_plugin_process_host.cc
|
| +++ b/content/browser/ppapi_plugin_process_host.cc
|
| @@ -467,8 +467,12 @@ 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);
|
| + base::ProcessId process_id = base::kNullProcessId;
|
| + if (process_handle != base::kNullProcessHandle) {
|
| + // This channel is not used by the browser itself.
|
| + process_id = base::GetProcId(process_handle);
|
| + CHECK_NE(base::kNullProcessId, process_id);
|
| + }
|
|
|
| // 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.
|
|
|