- add sources.
[platform/framework/web/crosswalk.git] / src / mojo / shell / desktop / mojo_main.cc
1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #include "base/at_exit.h"
6 #include "base/bind.h"
7 #include "base/command_line.h"
8 #include "base/message_loop/message_loop.h"
9 #include "mojo/shell/run.h"
10
11 int main(int argc, char** argv) {
12   base::AtExitManager at_exit;
13   CommandLine::Init(argc, argv);
14
15   base::MessageLoop message_loop(base::MessageLoop::TYPE_UI);
16   mojo::shell::Context context;
17
18   message_loop.PostTask(FROM_HERE, base::Bind(mojo::shell::Run,
19                                               &context));
20   message_loop.Run();
21
22   return 0;
23 }