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

Unified Diff: mojo/examples/aura_demo/aura_demo.cc

Issue 134523004: Make aurademo create a command line and atexitmanager (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 11 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/examples/aura_demo/aura_demo.cc
diff --git a/mojo/examples/aura_demo/aura_demo.cc b/mojo/examples/aura_demo/aura_demo.cc
index cb744d67002c15dcbb42a491111467184a61237d..70da6f9c12015526b9ff2e1e16adba3023db5a83 100644
--- a/mojo/examples/aura_demo/aura_demo.cc
+++ b/mojo/examples/aura_demo/aura_demo.cc
@@ -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);
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698