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

Unified Diff: examples/shadows/main.cc

Issue 2020453003: Convert ViewProviderApp and ContentViewerApp to implement ApplicationImplBase instead of Applicatio… (Closed) Base URL: https://github.com/domokit/mojo.git@work796_no_run_main_app
Patch Set: 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/moterm_example_app/moterm_example_app.cc ('k') | examples/shadows/shadows_app.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: examples/shadows/main.cc
diff --git a/examples/shadows/main.cc b/examples/shadows/main.cc
index 74ec64d72bae044c564dd7eb879aa6f0e73eab6f..33732aa8f0ce155468b9871c49c09ac94418c589 100644
--- a/examples/shadows/main.cc
+++ b/examples/shadows/main.cc
@@ -3,10 +3,12 @@
// found in the LICENSE file.
#include "examples/shadows/shadows_app.h"
-#include "mojo/application/application_runner_chromium.h"
+#include "mojo/environment/scoped_chromium_init.h"
#include "mojo/public/c/system/main.h"
+#include "mojo/public/cpp/application/run_application.h"
MojoResult MojoMain(MojoHandle application_request) {
- mojo::ApplicationRunnerChromium runner(new examples::ShadowsApp);
- return runner.Run(application_request);
+ mojo::ScopedChromiumInit init;
+ examples::ShadowsApp shadows_app;
+ return mojo::RunApplication(application_request, &shadows_app);
}
« no previous file with comments | « examples/moterm_example_app/moterm_example_app.cc ('k') | examples/shadows/shadows_app.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698