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

Unified Diff: mojo/edk/embedder/embedder.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 | « mojo/edk/embedder/embedder.h ('k') | mojo/shell/background/tests/background_shell_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/edk/embedder/embedder.cc
diff --git a/mojo/edk/embedder/embedder.cc b/mojo/edk/embedder/embedder.cc
index 62702aff25198720eaa1ef629719ef5fc4957ce9..e9a426a25c126985cbbf4acd5f6989cd37b3eba2 100644
--- a/mojo/edk/embedder/embedder.cc
+++ b/mojo/edk/embedder/embedder.cc
@@ -54,6 +54,14 @@ void SetParentPipeHandle(ScopedPlatformHandle pipe) {
internal::g_core->InitChild(std::move(pipe));
}
+void SetParentPipeHandleFromCommandLine() {
+ ScopedPlatformHandle platform_channel =
+ PlatformChannelPair::PassClientHandleFromParentProcess(
+ *base::CommandLine::ForCurrentProcess());
+ if (platform_channel.is_valid())
+ SetParentPipeHandle(std::move(platform_channel));
+}
+
void Init() {
internal::g_core = new Core();
}
« no previous file with comments | « mojo/edk/embedder/embedder.h ('k') | mojo/shell/background/tests/background_shell_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698