| Index: mojo/apps/js/content_handler_main.cc
|
| diff --git a/mojo/apps/js/content_handler_main.cc b/mojo/apps/js/content_handler_main.cc
|
| index 3ea9a3ef593feec7b9f6472fd0b1360361a6f832..cca1071ee9c8e8678446769e211fcc12bf2cea6c 100644
|
| --- a/mojo/apps/js/content_handler_main.cc
|
| +++ b/mojo/apps/js/content_handler_main.cc
|
| @@ -12,6 +12,10 @@
|
| #include "mojo/public/cpp/application/interface_factory_impl.h"
|
| #include "mojo/services/public/interfaces/content_handler/content_handler.mojom.h"
|
|
|
| +#ifdef V8_USE_EXTERNAL_STARTUP_DATA
|
| +#include "gin/public/isolate_holder.h"
|
| +#endif
|
| +
|
| namespace mojo {
|
| namespace apps {
|
|
|
| @@ -36,6 +40,9 @@ class ContentHandlerApplicationDelegateImpl : public ApplicationDelegateImpl {
|
|
|
| MojoResult MojoMain(MojoHandle shell_handle) {
|
| base::i18n::InitializeICU();
|
| +#ifdef V8_USE_EXTERNAL_STARTUP_DATA
|
| + gin::IsolateHolder::LoadV8Snapshot();
|
| +#endif
|
| mojo::ApplicationRunnerChromium runner(
|
| new mojo::apps::ContentHandlerApplicationDelegateImpl());
|
| return runner.Run(shell_handle);
|
|
|