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

Unified Diff: services/nacl/nonsfi/content_handler_main_nexe.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/media/audio/audio_server_app.cc ('k') | services/nacl/nonsfi/content_handler_main_pexe.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_nexe.cc
diff --git a/services/nacl/nonsfi/content_handler_main_nexe.cc b/services/nacl/nonsfi/content_handler_main_nexe.cc
index 9701bbd248512d8057a42ba79e0cc0da745a324e..07e2c9ae43d4e2f10fefb53d1d0fe7d2d811c758 100644
--- a/services/nacl/nonsfi/content_handler_main_nexe.cc
+++ b/services/nacl/nonsfi/content_handler_main_nexe.cc
@@ -8,6 +8,7 @@
#include "base/message_loop/message_loop.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/message_pump/message_pump_mojo.h"
#include "mojo/nacl/nonsfi/nexe_launcher_nonsfi.h"
#include "mojo/public/c/system/main.h"
@@ -61,6 +62,7 @@ class NaClContentHandler : public mojo::ApplicationImplBase,
} // namespace nacl
MojoResult MojoMain(MojoHandle application_request) {
+ mojo::ScopedChromiumInit init;
nacl::content_handler::NaClContentHandler nacl_content_handler;
- return mojo::RunMainApplication(application_request, &nacl_content_handler);
+ return mojo::RunApplication(application_request, &nacl_content_handler);
}
« no previous file with comments | « services/media/audio/audio_server_app.cc ('k') | services/nacl/nonsfi/content_handler_main_pexe.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698