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

Unified Diff: content/common/mojo/mojo_shell_connection_impl.cc

Issue 1915053004: mus/chrome: Always wait for the mojo shell. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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 | « chrome/test/base/mojo_test_connector.cc ('k') | content/public/common/content_switches.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/common/mojo/mojo_shell_connection_impl.cc
diff --git a/content/common/mojo/mojo_shell_connection_impl.cc b/content/common/mojo/mojo_shell_connection_impl.cc
index 8f7f735afeb855140191147fac80662be19166dd..1f9338693964e47d3accc1f2a58326b108bd3b35 100644
--- a/content/common/mojo/mojo_shell_connection_impl.cc
+++ b/content/common/mojo/mojo_shell_connection_impl.cc
@@ -40,10 +40,7 @@ bool IsRunningInMojoShell() {
}
bool ShouldWaitForShell() {
- return mojo_shell_connection_factory ||
- (IsRunningInMojoShell() &&
- base::CommandLine::ForCurrentProcess()->HasSwitch(
- switches::kWaitForMojoShell));
+ return mojo_shell_connection_factory || IsRunningInMojoShell();
Ken Rockot(use gerrit already) 2016/04/25 23:29:35 Unfortunately IsRunningInMojoShell is a misnomer,
sadrul 2016/04/26 03:22:04 I was thinking a naive workaround would be to chec
}
// static
« no previous file with comments | « chrome/test/base/mojo_test_connector.cc ('k') | content/public/common/content_switches.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698