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

Unified Diff: services/python/content_handler/content_handler_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
Index: services/python/content_handler/content_handler_main.cc
diff --git a/services/python/content_handler/content_handler_main.cc b/services/python/content_handler/content_handler_main.cc
index 3695889387f6af485b0a95b98aad147be5bcd3c3..d7d6ea3797da4f83cb1c496611d8aa8a75422210 100644
--- a/services/python/content_handler/content_handler_main.cc
+++ b/services/python/content_handler/content_handler_main.cc
@@ -12,6 +12,7 @@
#include "base/strings/stringprintf.h"
#include "mojo/application/content_handler_factory.h"
#include "mojo/data_pipe_utils/data_pipe_utils.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"
@@ -242,8 +243,8 @@ class PythonContentHandlerApp : public ApplicationImplBase {
} // namespace services
MojoResult MojoMain(MojoHandle application_request) {
+ mojo::ScopedChromiumInit init;
services::python::content_handler::PythonContentHandlerApp
python_content_handler_app;
- return mojo::RunMainApplication(application_request,
- &python_content_handler_app);
+ return mojo::RunApplication(application_request, &python_content_handler_app);
}
« no previous file with comments | « services/prediction/prediction_service_impl.cc ('k') | services/test_service/test_request_tracker_application.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698