Index: android_webview/lib/main/aw_main_delegate.cc |
diff --git a/android_webview/lib/main/aw_main_delegate.cc b/android_webview/lib/main/aw_main_delegate.cc |
index 053a91e6ce1c5f6be96225a40eb11ba9e72b7495..43508ba138409e0f8b1eb68cbc43a6c1b1586858 100644 |
--- a/android_webview/lib/main/aw_main_delegate.cc |
+++ b/android_webview/lib/main/aw_main_delegate.cc |
@@ -117,6 +117,7 @@ bool AwMainDelegate::BasicStartupComplete(int* exit_code) { |
// https://crbug.com/521319 |
cl->AppendSwitch(switches::kDisablePresentationAPI); |
+#if defined(V8_USE_EXTERNAL_STARTUP_DATA) |
if (cl->GetSwitchValueASCII(switches::kProcessType).empty()) { |
// Browser process (no type specified). |
@@ -130,6 +131,7 @@ bool AwMainDelegate::BasicStartupComplete(int* exit_code) { |
kV8SnapshotDataDescriptor64, |
gin::V8Initializer::GetSnapshotFilePath(false).AsUTF8Unsafe()); |
} |
+#endif // V8_USE_EXTERNAL_STARTUP_DATA |
if (cl->HasSwitch(switches::kWebViewSandboxedRenderer)) { |
cl->AppendSwitch(switches::kInProcessGPU); |