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

Unified Diff: components/nacl/loader/nacl_helper_linux.cc

Issue 2081183005: Use ChannelMojo from the browser to NaCl loader process. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@mojo-ipc-channel-handle
Patch Set: rebase Created 4 years, 5 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 | « components/nacl/loader/BUILD.gn ('k') | components/nacl/loader/nacl_helper_win_64.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/nacl/loader/nacl_helper_linux.cc
diff --git a/components/nacl/loader/nacl_helper_linux.cc b/components/nacl/loader/nacl_helper_linux.cc
index d8ab926676a48616f5ee02a2f56be1e862711595..4b22377507e636fb0ebdda0c35a230599663b085 100644
--- a/components/nacl/loader/nacl_helper_linux.cc
+++ b/components/nacl/loader/nacl_helper_linux.cc
@@ -36,6 +36,7 @@
#include "components/nacl/common/nacl_switches.h"
#include "components/nacl/loader/sandbox_linux/nacl_sandbox_linux.h"
#include "content/public/common/content_descriptors.h"
+#include "content/public/common/mojo_channel_switches.h"
#include "content/public/common/send_zygote_child_ping_linux.h"
#include "content/public/common/zygote_fork_delegate_linux.h"
#include "ipc/ipc_descriptors.h"
@@ -116,7 +117,7 @@ void BecomeNaClLoader(base::ScopedFD browser_fd,
nacl_sandbox->SealLayerOneSandbox();
nacl_sandbox->CheckSandboxingStateWithPolicy();
- base::GlobalDescriptors::GetInstance()->Set(kPrimaryIPCChannel,
+ base::GlobalDescriptors::GetInstance()->Set(kMojoIPCChannel,
browser_fd.release());
// The Mojo EDK must be initialized before using IPC.
@@ -152,7 +153,7 @@ void ChildNaClLoaderInit(std::vector<base::ScopedFD> child_fds,
child_fds[content::ZygoteForkDelegate::kPIDOracleFDIndex].get()));
base::CommandLine::ForCurrentProcess()->AppendSwitchASCII(
- switches::kProcessChannelID, channel_id);
+ switches::kMojoChannelToken, channel_id);
// Save the browser socket and close the rest.
base::ScopedFD browser_fd(
« no previous file with comments | « components/nacl/loader/BUILD.gn ('k') | components/nacl/loader/nacl_helper_win_64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698