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

Unified Diff: mojo/shell/run.cc

Issue 47433002: Cleanup mojo_shell and sample_app a bit (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 2 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/loader.cc ('k') | mojo/shell/sample_app.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/shell/run.cc
diff --git a/mojo/shell/run.cc b/mojo/shell/run.cc
index 0271e718eca10e5b8ebb50d09cb55ecfedf3f90a..a7c3f337f25ef5c028c00f63317c743e73a1a0fc 100644
--- a/mojo/shell/run.cc
+++ b/mojo/shell/run.cc
@@ -6,6 +6,7 @@
#include "base/command_line.h"
#include "base/logging.h"
+#include "base/message_loop/message_loop.h"
#include "mojo/shell/app_container.h"
#include "mojo/shell/switches.h"
#include "url/gurl.h"
@@ -17,6 +18,7 @@ void Run(Context* context) {
const CommandLine& command_line = *CommandLine::ForCurrentProcess();
if (!command_line.HasSwitch(switches::kApp)) {
LOG(ERROR) << "No app path specified.";
+ base::MessageLoop::current()->Quit();
return;
}
« no previous file with comments | « mojo/shell/loader.cc ('k') | mojo/shell/sample_app.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698