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

Unified Diff: chrome/plugin/chrome_content_plugin_client.cc

Issue 718453003: Initialize V8 in PDFium from external files (plugin process only) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 1 month 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: chrome/plugin/chrome_content_plugin_client.cc
diff --git a/chrome/plugin/chrome_content_plugin_client.cc b/chrome/plugin/chrome_content_plugin_client.cc
index 1abe0a3fd905db8aa19a7ab4f259f8f2c64dd706..87c20d03fc1f5f67b86ab77985c6db1e732137fd 100644
--- a/chrome/plugin/chrome_content_plugin_client.cc
+++ b/chrome/plugin/chrome_content_plugin_client.cc
@@ -17,9 +17,17 @@
#endif
#endif
+#ifdef V8_USE_EXTERNAL_STARTUP_DATA
+#include "gin/public/isolate_holder.h"
+#endif
+
namespace chrome {
void ChromeContentPluginClient::PreSandboxInitialization() {
+#ifdef V8_USE_EXTERNAL_STARTUP_DATA
raymes 2014/11/11 03:26:39 Should we just bury this #ifdef in gin as well or
baixo1 2014/11/11 10:56:11 +jochen@ LoadV8Snapshot is currently only visible
raymes 2014/11/11 23:02:22 Feel free to do this in a followup CL if it requir
+ gin::IsolateHolder::LoadV8Snapshot();
raymes 2014/11/11 03:26:39 I suggest getting jschuh@ or cpu@ to review this p
baixo1 2014/11/11 10:56:11 +jschuh@ : could you take a look at this, please?
jschuh 2014/11/13 00:13:26 When would this get enabled? I.e. is the V8_USE_EX
+#endif
+
#if defined(ENABLE_REMOTING)
// Load crypto libraries for the Chromoting client plugin.
« no previous file with comments | « chrome/plugin/DEPS ('k') | pdf/out_of_process_instance.cc » ('j') | ppapi/proxy/DEPS » ('J')

Powered by Google App Engine
This is Rietveld 408576698