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

Unified Diff: mojo/shell/runner/host/child_process_host.cc

Issue 1806203002: Kill login after logging in. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@56cascade
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/shell/runner/host/child_process_host.h ('k') | mojo/shell/runner/host/child_process_host_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/shell/runner/host/child_process_host.cc
diff --git a/mojo/shell/runner/host/child_process_host.cc b/mojo/shell/runner/host/child_process_host.cc
index 1083128a8a6dd501b982e4b498fe84c8fdc0ce6a..f887dbd4adb9a321ab4ee724ed671b70bc92da68 100644
--- a/mojo/shell/runner/host/child_process_host.cc
+++ b/mojo/shell/runner/host/child_process_host.cc
@@ -58,7 +58,7 @@ ChildProcessHost::~ChildProcessHost() {
}
mojom::ShellClientPtr ChildProcessHost::Start(
- const String& name,
+ const Identity& target,
const ProcessReadyCallback& callback,
const base::Closure& quit_closure) {
DCHECK(!child_process_.IsValid());
@@ -77,6 +77,11 @@ mojom::ShellClientPtr ChildProcessHost::Start(
child_command_line->AppendArguments(*parent_command_line, false);
+#ifndef NDEBUG
+ child_command_line->AppendSwitchASCII("n", target.name());
+ child_command_line->AppendSwitchASCII("u", target.user_id());
+#endif
+
if (target_path != app_path_)
child_command_line->AppendSwitchPath(switches::kChildProcess, app_path_);
« no previous file with comments | « mojo/shell/runner/host/child_process_host.h ('k') | mojo/shell/runner/host/child_process_host_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698