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

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

Issue 627563002: Mojo JS standalone app launches files specified with mojo_shell command-line args (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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
« no previous file with comments | « no previous file | mojo/apps/js/js_app.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/apps/js/application_delegate_impl.cc
diff --git a/mojo/apps/js/application_delegate_impl.cc b/mojo/apps/js/application_delegate_impl.cc
index 65c48ca8ac615abf19f179b1e610281cd246cf7d..eb784a9165ecb9b60570ac38b8b8c972386d3cbe 100644
--- a/mojo/apps/js/application_delegate_impl.cc
+++ b/mojo/apps/js/application_delegate_impl.cc
@@ -4,6 +4,8 @@
#include "mojo/apps/js/application_delegate_impl.h"
+#include "gin/array_buffer.h"
+#include "gin/public/isolate_holder.h"
#include "mojo/apps/js/js_app.h"
#include "mojo/public/cpp/application/application_impl.h"
@@ -16,6 +18,8 @@ ApplicationDelegateImpl::ApplicationDelegateImpl()
void ApplicationDelegateImpl::Initialize(ApplicationImpl* app) {
application_impl_ = app;
+ gin::IsolateHolder::Initialize(gin::IsolateHolder::kStrictMode,
+ gin::ArrayBufferAllocator::SharedInstance());
}
ApplicationDelegateImpl::~ApplicationDelegateImpl() {
« no previous file with comments | « no previous file | mojo/apps/js/js_app.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698