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

Unified Diff: examples/echo_terminal/main.cc

Issue 2011383002: Get rid of {Run,Terminate}MainApplication(), and more ApplicationDelegate conversion. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: rebased Created 4 years, 7 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 | « examples/echo/echo_server.cc ('k') | examples/hello_mojo/hello_mojo_client.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: examples/echo_terminal/main.cc
diff --git a/examples/echo_terminal/main.cc b/examples/echo_terminal/main.cc
index 518be21f35f76bdea9a57170808068354c92f66f..9e7af70dbfd3f77b3d17de9f1b9680db151cbc56 100644
--- a/examples/echo_terminal/main.cc
+++ b/examples/echo_terminal/main.cc
@@ -9,6 +9,7 @@
#include "base/logging.h"
#include "base/macros.h"
#include "mojo/common/binding_set.h"
+#include "mojo/environment/scoped_chromium_init.h"
#include "mojo/public/c/system/main.h"
#include "mojo/public/cpp/application/application_impl_base.h"
#include "mojo/public/cpp/application/run_application.h"
@@ -129,6 +130,7 @@ class EchoTerminalApp : public mojo::ApplicationImplBase,
};
MojoResult MojoMain(MojoHandle application_request) {
+ mojo::ScopedChromiumInit init;
EchoTerminalApp echo_terminal_app;
- return mojo::RunMainApplication(application_request, &echo_terminal_app);
+ return mojo::RunApplication(application_request, &echo_terminal_app);
}
« no previous file with comments | « examples/echo/echo_server.cc ('k') | examples/hello_mojo/hello_mojo_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698