Commit ceb3f672 authored by sky@chromium.org's avatar sky@chromium.org

Make aurademo create a command line and atexitmanager

These are generally needed by aura and other parts of the code.

BUG=none
TEST=none
R=ben@chromium.org

Review URL: https://codereview.chromium.org/134523004

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@244336 0039d316-1c4b-4281-b951-d872f2087c98
parent d931b897
......@@ -5,6 +5,8 @@
#include <stdio.h>
#include <string>
#include "base/at_exit.h"
#include "base/command_line.h"
#include "base/message_loop/message_loop.h"
#include "mojo/common/bindings_support_impl.h"
#include "mojo/examples/aura_demo/demo_screen.h"
......@@ -192,6 +194,8 @@ class AuraDemo : public ShellClient {
extern "C" AURA_DEMO_EXPORT MojoResult CDECL MojoMain(
MojoHandle shell_handle) {
CommandLine::Init(0, NULL);
base::AtExitManager at_exit;
base::MessageLoop loop;
mojo::common::BindingsSupportImpl bindings_support_impl;
mojo::BindingsSupport::Set(&bindings_support_impl);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment