| Index: net/proxy/proxy_resolver_v8.cc
|
| diff --git a/net/proxy/proxy_resolver_v8.cc b/net/proxy/proxy_resolver_v8.cc
|
| index dc224cdac2dfdf66fbd2c04e3e67b8aab7dd97fd..1303e3595fbe9d955807c8ce73167882b621c7c4 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
|
| @@ -770,6 +774,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;
|
|
|