Index: net/proxy/proxy_resolver_v8.cc |
diff --git a/net/proxy/proxy_resolver_v8.cc b/net/proxy/proxy_resolver_v8.cc |
index 37f31bfddd9aef4711e0164eee003a92d65edd72..4fa287182e1c58aad3a62501376eea997e4b8342 100644 |
--- a/net/proxy/proxy_resolver_v8.cc |
+++ b/net/proxy/proxy_resolver_v8.cc |
@@ -26,6 +26,10 @@ |
#include "url/url_canon.h" |
#include "v8/include/v8.h" |
+#ifdef V8_USE_EXTERNAL_STARTUP_DATA |
+#include "gin/public/isolate_holder.h" |
+#endif |
+ |
// Notes on the javascript environment: |
// |
// For the majority of the PAC utility functions, we use the same code |
@@ -769,6 +773,10 @@ int ProxyResolverV8::SetPacScript( |
void ProxyResolverV8::EnsureIsolateCreated() { |
if (g_proxy_resolver_isolate_) |
return; |
+ |
+#ifdef V8_USE_EXTERNAL_STARTUP_DATA |
+ gin::IsolateHolder::LoadV8Snapshot(); |
+#endif |
gin::IsolateHolder::Initialize(gin::IsolateHolder::kNonStrictMode, |
gin::ArrayBufferAllocator::SharedInstance()); |
g_proxy_resolver_isolate_ = new gin::IsolateHolder; |