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

Unified Diff: services/prediction/prediction_service_impl.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
Index: services/prediction/prediction_service_impl.cc
diff --git a/services/prediction/prediction_service_impl.cc b/services/prediction/prediction_service_impl.cc
index ce26d6e0f8a9e70c0e1eb627262c870f5bcfe6c9..5e2467c23a420e7b42a7b681e3c8990f6754146d 100644
--- a/services/prediction/prediction_service_impl.cc
+++ b/services/prediction/prediction_service_impl.cc
@@ -4,6 +4,7 @@
#include "services/prediction/prediction_service_impl.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/run_application.h"
@@ -52,6 +53,7 @@ class PredictionServiceApp : public mojo::ApplicationImplBase {
} // namespace prediction
MojoResult MojoMain(MojoHandle application_request) {
+ mojo::ScopedChromiumInit init;
prediction::PredictionServiceApp prediction_service_app;
- return mojo::RunMainApplication(application_request, &prediction_service_app);
+ return mojo::RunApplication(application_request, &prediction_service_app);
}
« no previous file with comments | « services/native_viewport/ozone/native_viewport_app_ozone.cc ('k') | services/python/content_handler/content_handler_main.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698