Index: chrome/browser/nacl_host/nacl_process_host.cc |
=================================================================== |
--- chrome/browser/nacl_host/nacl_process_host.cc (revision 133072) |
+++ chrome/browser/nacl_host/nacl_process_host.cc (working copy) |
@@ -516,6 +516,8 @@ |
return; |
} |
+ ppapi_channel_name_ = IPC::Channel::GenerateVerifiedChannelID("nacl"); |
+ |
// Rather than creating a socket pair in the renderer, and passing |
// one side through the browser to sel_ldr, socket pairs are created |
// in the browser and then passed to the renderer and sel_ldr. |
@@ -947,7 +949,8 @@ |
base::ProcessId nacl_process_id = base::GetProcId(data.handle); |
ChromeViewHostMsg_LaunchNaCl::WriteReplyParams( |
- reply_msg_, handles_for_renderer, nacl_process_handle, nacl_process_id); |
+ reply_msg_, handles_for_renderer, ppapi_channel_name_, |
+ nacl_process_handle, nacl_process_id); |
chrome_render_message_filter_->Send(reply_msg_); |
chrome_render_message_filter_ = NULL; |
reply_msg_ = NULL; |
@@ -959,6 +962,7 @@ |
NaClBrowser* nacl_browser = NaClBrowser::GetInstance(); |
nacl::NaClStartParams params; |
+ params.ppapi_channel_name = ppapi_channel_name_; |
params.validation_cache_key = nacl_browser->GetValidatorCacheKey(); |
params.version = chrome::VersionInfo().CreateVersionString(); |
params.enable_exception_handling = enable_exception_handling_; |