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

Unified Diff: examples/native_run_app/native_run_app.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/media_test/media_test_app.cc ('k') | examples/notification_generator/notification_generator.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: examples/native_run_app/native_run_app.cc
diff --git a/examples/native_run_app/native_run_app.cc b/examples/native_run_app/native_run_app.cc
index dc02ff039a59395f1703740ab6dea02388c540db..9b0e554d0b89f07131b7d66df815f448268cc1b3 100644
--- a/examples/native_run_app/native_run_app.cc
+++ b/examples/native_run_app/native_run_app.cc
@@ -23,6 +23,7 @@
#include "base/macros.h"
#include "base/strings/string_split.h"
#include "base/strings/string_util.h"
+#include "mojo/environment/scoped_chromium_init.h"
#include "mojo/public/c/system/main.h"
#include "mojo/public/cpp/application/application_delegate.h"
#include "mojo/public/cpp/application/application_impl_base.h"
@@ -252,6 +253,7 @@ class NativeRunApp : public mojo::ApplicationImplBase {
};
MojoResult MojoMain(MojoHandle application_request) {
+ mojo::ScopedChromiumInit init;
NativeRunApp native_run_app;
- return mojo::RunMainApplication(application_request, &native_run_app);
+ return mojo::RunApplication(application_request, &native_run_app);
}
« no previous file with comments | « examples/media_test/media_test_app.cc ('k') | examples/notification_generator/notification_generator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698