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

Unified Diff: content/child/child_thread_impl.cc

Issue 1793793002: Remove ShellConnection::WaitForInitialize (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 9 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/BUILD.gn ('k') | content/common/mojo/mojo_shell_connection_impl.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 2e0dc0de76619e8903ebf78c7481250372956be8..87a0cf4659d8599a6dbcbff18e6a6b168b2c5f76 100644
--- a/content/child/child_thread_impl.cc
+++ b/content/child/child_thread_impl.cc
@@ -408,21 +408,12 @@ void ChildThreadImpl::Init(const Options& options) {
if (!IsInBrowserProcess()) {
// Don't double-initialize IPC support in single-process mode.
mojo_ipc_support_.reset(new IPC::ScopedIPCSupport(GetIOTaskRunner()));
-
InitializeMojoIPCChannel();
}
- // If this process was launched with a primordial pipe token, we exchange it
- // for a pipe to connect to the shell.
- std::string pipe_token =
- base::CommandLine::ForCurrentProcess()->GetSwitchValueASCII(
- switches::kMojoPrimordialPipeToken);
- if (!pipe_token.empty() && MojoShellConnectionImpl::Get()) {
- mojo::ScopedMessagePipeHandle pipe =
- mojo::edk::CreateChildMessagePipe(pipe_token);
-
+ if (MojoShellConnectionImpl::Get()) {
base::ElapsedTimer timer;
- MojoShellConnectionImpl::Get()->BindToMessagePipe(std::move(pipe));
+ MojoShellConnectionImpl::Get()->BindToRequestFromCommandLine();
UMA_HISTOGRAM_TIMES("Mojo.Shell.ChildConnectionTime", timer.Elapsed());
}
« no previous file with comments | « content/child/BUILD.gn ('k') | content/common/mojo/mojo_shell_connection_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698