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

Unified Diff: mojo/apps/js/content_handler_main.cc

Issue 594603003: Infrastructure for reading V8's initial snapshot from external files (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Sync master Created 6 years, 2 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
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 1edf10dfe814888668b2d3a3aefde90be96a2e5c..3c59459c285c82282da3a6a4cbeb639b71b81449 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 {
@@ -40,6 +44,9 @@ class ContentHandlerApplicationDelegateImpl : public ApplicationDelegateImpl {
} // namespace mojo
MojoResult MojoMain(MojoHandle shell_handle) {
+#ifdef V8_USE_EXTERNAL_STARTUP_DATA
+ gin::IsolateHolder::LoadV8Snapshot();
+#endif
mojo::ApplicationRunnerChromium runner(
new mojo::apps::ContentHandlerApplicationDelegateImpl());
return runner.Run(shell_handle);

Powered by Google App Engine
This is Rietveld 408576698