Index: services/js/content_handler_main.cc |
diff --git a/services/js/content_handler_main.cc b/services/js/content_handler_main.cc |
index 79eb6c5ebf8b36a1672b5b4506875fb77eb66f4a..dfd1610f2aee961bdced04664f78ea64ccbba33c 100644 |
--- a/services/js/content_handler_main.cc |
+++ b/services/js/content_handler_main.cc |
@@ -6,6 +6,7 @@ |
#include "gin/array_buffer.h" |
#include "gin/public/isolate_holder.h" |
#include "mojo/application/content_handler_factory.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" |
@@ -51,6 +52,7 @@ class JsContentHandler : public mojo::ApplicationImplBase, |
} // namespace js |
MojoResult MojoMain(MojoHandle application_request) { |
+ mojo::ScopedChromiumInit init; |
js::JsContentHandler js_content_handler; |
- return mojo::RunMainApplication(application_request, &js_content_handler); |
+ return mojo::RunApplication(application_request, &js_content_handler); |
} |