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

Unified Diff: services/log/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 | « services/keyboard/linux/main.cc ('k') | services/media/audio/audio_server_app.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/log/main.cc
diff --git a/services/log/main.cc b/services/log/main.cc
index 9ea6dba87523fd63904279a175b000ba08e407dd..a6da07d0022470ae5e1c981c74097077ed221aa0 100644
--- a/services/log/main.cc
+++ b/services/log/main.cc
@@ -6,6 +6,7 @@
#include <utility>
+#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"
@@ -45,6 +46,7 @@ class LogApp : public ApplicationImplBase {
} // namespace mojo
MojoResult MojoMain(MojoHandle application_request) {
+ mojo::ScopedChromiumInit init;
mojo::log::LogApp log_app;
- return mojo::RunMainApplication(application_request, &log_app);
+ return mojo::RunApplication(application_request, &log_app);
}
« no previous file with comments | « services/keyboard/linux/main.cc ('k') | services/media/audio/audio_server_app.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698