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

Unified Diff: apps/moterm/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 | « no previous file | apps/moterm/moterm_app.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: apps/moterm/main.cc
diff --git a/apps/moterm/main.cc b/apps/moterm/main.cc
index abeb499f4867369a1cd060c9fa218926ed7639bd..7a41df4d1fb8e6422af92ab88a17502cd4257772 100644
--- a/apps/moterm/main.cc
+++ b/apps/moterm/main.cc
@@ -7,10 +7,12 @@
// application.)
#include "apps/moterm/moterm_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 MotermApp());
- return runner.Run(application_request);
+ mojo::ScopedChromiumInit init;
+ MotermApp moterm_app;
+ return mojo::RunApplication(application_request, &moterm_app);
}
« no previous file with comments | « no previous file | apps/moterm/moterm_app.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698