summaryrefslogtreecommitdiffstats
path: root/aura/demo/demo_main.cc
diff options
context:
space:
mode:
Diffstat (limited to 'aura/demo/demo_main.cc')
-rw-r--r--aura/demo/demo_main.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/aura/demo/demo_main.cc b/aura/demo/demo_main.cc
index 85a39cc..e7071c6 100644
--- a/aura/demo/demo_main.cc
+++ b/aura/demo/demo_main.cc
@@ -10,6 +10,7 @@
#include "base/command_line.h"
#include "base/i18n/icu_util.h"
#include "base/memory/scoped_ptr.h"
+#include "base/message_loop.h"
#include "third_party/skia/include/core/SkXfermode.h"
#include "ui/base/resource/resource_bundle.h"
#include "ui/base/ui_base_paths.h"
@@ -72,6 +73,9 @@ int main(int argc, char** argv) {
base::MessagePumpX::DisableGtkMessagePump();
#endif
+ // Create the message-loop here before creating the desktop.
+ MessageLoop message_loop(MessageLoop::TYPE_UI);
+
aura::Desktop::GetInstance();
// Create a hierarchy of test windows.