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

Unified Diff: mojo/shell/runner/child/runner_connection.h

Issue 1685183004: Bootstrap Mojo IPC independent of Chrome IPC (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: and fix posix Created 4 years, 10 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
Index: mojo/shell/runner/child/runner_connection.h
diff --git a/mojo/shell/runner/child/runner_connection.h b/mojo/shell/runner/child/runner_connection.h
index 488b9968623dd2eafc9dff80d0135d48e5ab7188..919a81bd9b0aa549edc6fc839b772796889fc586 100644
--- a/mojo/shell/runner/child/runner_connection.h
+++ b/mojo/shell/runner/child/runner_connection.h
@@ -23,9 +23,17 @@ class RunnerConnection {
// |request|.
// If a connection to the runner cannot be established, |request| will not be
// modified and this function will return null.
+ //
+ // If |exit_on_error| is true, the calling process will be terminated in the
+ // event of an error on |handle|.
+ //
+ // TODO(rockot): Remove this flag when it's safe for all clients to be
+ // terminated on such errors. For now, e.g., we don't want this killing
+ // content child processes.
static RunnerConnection* ConnectToRunner(
InterfaceRequest<mojom::ShellClient>* request,
- ScopedMessagePipeHandle handle);
+ ScopedMessagePipeHandle handle,
+ bool exit_on_error = true);
protected:
RunnerConnection();

Powered by Google App Engine
This is Rietveld 408576698