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

Unified Diff: content/child/child_thread_impl.cc

Issue 2226403002: Remove Channel token from InProcessChildThreadParams (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@moar-channels
Patch Set: rebase Created 4 years, 4 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 | « content/child/child_thread_impl.h ('k') | content/common/in_process_child_thread_params.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/child/child_thread_impl.cc
diff --git a/content/child/child_thread_impl.cc b/content/child/child_thread_impl.cc
index 316d88f9686b9167ad304bea8346a04d239e744b..17dbafeeaf236eca74938ddfcb0fb8abfa7c035c 100644
--- a/content/child/child_thread_impl.cc
+++ b/content/child/child_thread_impl.cc
@@ -316,7 +316,6 @@ ChildThreadImpl::Options::Builder::InBrowserProcess(
const InProcessChildThreadParams& params) {
options_.browser_process_io_runner = params.io_runner();
options_.channel_name = params.channel_name();
- options_.in_process_ipc_token = params.ipc_token();
options_.in_process_application_token = params.application_token();
return *this;
}
@@ -403,8 +402,7 @@ scoped_refptr<base::SequencedTaskRunner> ChildThreadImpl::GetIOTaskRunner() {
return ChildProcess::current()->io_task_runner();
}
-void ChildThreadImpl::ConnectChannel(bool use_mojo_channel,
- const std::string& ipc_token) {
+void ChildThreadImpl::ConnectChannel(bool use_mojo_channel) {
bool create_pipe_now = true;
if (use_mojo_channel) {
VLOG(1) << "Mojo is enabled on child";
@@ -414,8 +412,6 @@ void ChildThreadImpl::ConnectChannel(bool use_mojo_channel,
channel_token =
base::CommandLine::ForCurrentProcess()->GetSwitchValueASCII(
switches::kMojoChannelToken);
- } else {
- channel_token = ipc_token;
}
if (!channel_token.empty()) {
@@ -570,7 +566,7 @@ void ChildThreadImpl::Init(const Options& options) {
if (broker && !broker->IsPrivilegedBroker())
broker->RegisterBrokerCommunicationChannel(channel_.get());
- ConnectChannel(options.use_mojo_channel, options.in_process_ipc_token);
+ ConnectChannel(options.use_mojo_channel);
// This must always be done after ConnectChannel, because ConnectChannel() may
// add a ConnectionFilter to the connection.
« no previous file with comments | « content/child/child_thread_impl.h ('k') | content/common/in_process_child_thread_params.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698