#include "base/logging.h"
#include "base/message_loop/message_loop.h"
#include "mojo/shell/context.h"
+#include "mojo/shell/keep_alive.h"
#include "mojo/shell/service_manager.h"
#include "mojo/shell/switches.h"
#include "url/gurl.h"
namespace shell {
void Run(Context* context) {
+ KeepAlive keep_alive(context);
+
const CommandLine& command_line = *CommandLine::ForCurrentProcess();
CommandLine::StringVector args = command_line.GetArgs();
if (args.empty()) {
LOG(ERROR) << "No app path specified.";
- base::MessageLoop::current()->Quit();
return;
}
GURL url(*it);
if (url.scheme() == "mojo" && !command_line.HasSwitch(switches::kOrigin)) {
LOG(ERROR) << "mojo: url passed with no --origin specified.";
- base::MessageLoop::current()->Quit();
return;
}
ScopedMessagePipeHandle no_handle;