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

Unified Diff: services/nacl/nonsfi/content_handler_main_pexe.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/nacl/nonsfi/content_handler_main_nexe.cc ('k') | services/nacl/nonsfi/pnacl_compile.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/nacl/nonsfi/content_handler_main_pexe.cc
diff --git a/services/nacl/nonsfi/content_handler_main_pexe.cc b/services/nacl/nonsfi/content_handler_main_pexe.cc
index b9e6f2be78e122446529093d08088241c9dbd0c1..0478eb8fe6acca779b59cda44ed26342b60b331f 100644
--- a/services/nacl/nonsfi/content_handler_main_pexe.cc
+++ b/services/nacl/nonsfi/content_handler_main_pexe.cc
@@ -10,6 +10,7 @@
#include "base/strings/string_number_conversions.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/file_utils/file_util.h"
#include "mojo/message_pump/message_pump_mojo.h"
#include "mojo/nacl/nonsfi/file_util.h"
@@ -162,6 +163,7 @@ class PexeContentHandler : public mojo::ApplicationImplBase,
} // namespace nacl
MojoResult MojoMain(MojoHandle application_request) {
+ mojo::ScopedChromiumInit init;
nacl::content_handler::PexeContentHandler pexe_content_handler;
- return mojo::RunMainApplication(application_request, &pexe_content_handler);
+ return mojo::RunApplication(application_request, &pexe_content_handler);
}
« no previous file with comments | « services/nacl/nonsfi/content_handler_main_nexe.cc ('k') | services/nacl/nonsfi/pnacl_compile.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698