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) |
@@ -409,6 +409,7 @@ |
struct NaClProcessHost::NaClInternal { |
std::vector<nacl::Handle> sockets_for_renderer; |
std::vector<nacl::Handle> sockets_for_sel_ldr; |
+ std::string channel_name; |
Mark Seaborn
2012/04/25 00:40:39
This doesn't need to go in NaClInternal. You can
bbudge
2012/04/25 00:50:04
Yes, I'll remove it from this struct.
|
}; |
// ----------------------------------------------------------------------------- |
@@ -516,6 +517,9 @@ |
return; |
} |
+ internal_->channel_name = |
+ IPC::Channel::GenerateVerifiedChannelID(std::string()); |
bbudge
2012/04/25 00:50:04
This bit of code doesn't seem to work, in that the
|
+ |
// 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. |
@@ -959,6 +963,7 @@ |
NaClBrowser* nacl_browser = NaClBrowser::GetInstance(); |
nacl::NaClStartParams params; |
+ params.channel_name = internal_->channel_name; |
params.validation_cache_key = nacl_browser->GetValidatorCacheKey(); |
params.version = chrome::VersionInfo().CreateVersionString(); |
params.enable_exception_handling = enable_exception_handling_; |