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

Unified Diff: services/nacl/sfi/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
« no previous file with comments | « services/nacl/nonsfi/pnacl_link.cc ('k') | services/native_support/main.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/nacl/sfi/content_handler_main.cc
diff --git a/services/nacl/sfi/content_handler_main.cc b/services/nacl/sfi/content_handler_main.cc
index 35a6fb19f4bb884bf371b5cba9784e6645988e6c..405cf7a26b2ab7c58bd282622180869719d80b00 100644
--- a/services/nacl/sfi/content_handler_main.cc
+++ b/services/nacl/sfi/content_handler_main.cc
@@ -8,6 +8,7 @@
#include "build/build_config.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/sfi/nacl_bindings/monacl_sel_main.h"
#include "mojo/public/c/system/main.h"
@@ -150,6 +151,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/nacl/nonsfi/pnacl_link.cc ('k') | services/native_support/main.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698