Index: chromecast/browser/cast_content_browser_client.cc |
diff --git a/chromecast/browser/cast_content_browser_client.cc b/chromecast/browser/cast_content_browser_client.cc |
index d742e054db428da9df052b312a5823e293c4dbff..b2a48bc1dcd612f1e8fd9712c4f7c43f9f1eea27 100644 |
--- a/chromecast/browser/cast_content_browser_client.cc |
+++ b/chromecast/browser/cast_content_browser_client.cc |
@@ -131,6 +131,13 @@ void CastContentBrowserClient::AppendExtraCommandLineSwitches( |
base::CommandLine* browser_command_line = |
base::CommandLine::ForCurrentProcess(); |
+#if defined(V8_USE_EXTERNAL_STARTUP_DATA) |
+ if (process_type != switches::kZygoteProcess) { |
+ command_line->AppendSwitch(::switches::kV8NativesPassedByFD); |
+ command_line->AppendSwitch(::switches::kV8SnapshotPassedByFD); |
+ } |
+#endif // V8_USE_EXTERNAL_STARTUP_DATA |
+ |
// IsCrashReporterEnabled() is set when InitCrashReporter() is called, and |
// controlled by GetBreakpadClient()->EnableBreakpadForProcess(), therefore |
// it's ok to add switch to every process here. |