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

Unified Diff: examples/notification_generator/notification_generator.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/native_run_app/native_run_app.cc ('k') | examples/spinning_cube/spinning_cube_app.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: examples/notification_generator/notification_generator.cc
diff --git a/examples/notification_generator/notification_generator.cc b/examples/notification_generator/notification_generator.cc
index 9b173bea42ed5ea7ccbb53a4949f9e24a07099ca..08ee9dcfae6602e99e3b3add8bf6b37ea070b722 100644
--- a/examples/notification_generator/notification_generator.cc
+++ b/examples/notification_generator/notification_generator.cc
@@ -8,6 +8,7 @@
#include "base/macros.h"
#include "base/message_loop/message_loop.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/connect.h"
@@ -118,7 +119,7 @@ class NotificationGeneratorApp : public mojo::ApplicationImplBase,
} // namespace examples
MojoResult MojoMain(MojoHandle application_request) {
+ mojo::ScopedChromiumInit init;
examples::NotificationGeneratorApp notification_generator_app;
- return mojo::RunMainApplication(application_request,
- &notification_generator_app);
+ return mojo::RunApplication(application_request, &notification_generator_app);
}
« no previous file with comments | « examples/native_run_app/native_run_app.cc ('k') | examples/spinning_cube/spinning_cube_app.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698