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

Unified Diff: content/browser/utility_process_host_impl.cc

Issue 1612663002: Use a valid /prefetch argument when launching a process. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@bit
Patch Set: self-review Created 4 years, 11 months 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: content/browser/utility_process_host_impl.cc
diff --git a/content/browser/utility_process_host_impl.cc b/content/browser/utility_process_host_impl.cc
index 447685a3382e8310ab61e8c4044c1dc5c34b0d9f..e6f6bca225d8ec89e8fabb1d62d65a45b8c727d1 100644
--- a/content/browser/utility_process_host_impl.cc
+++ b/content/browser/utility_process_host_impl.cc
@@ -312,6 +312,11 @@ bool UtilityProcessHostImpl::StartProcess() {
std::string locale = GetContentClient()->browser()->GetApplicationLocale();
cmd_line->AppendSwitchASCII(switches::kLang, locale);
+#if defined(OS_WIN)
+ if (GetContentClient()->browser()->ShouldUseWindowsPrefetchArgument())
+ cmd_line->AppendArg(switches::kPrefetchArgumentOther);
+#endif // defined(OS_WIN)
+
if (no_sandbox_)
cmd_line->AppendSwitch(switches::kNoSandbox);

Powered by Google App Engine
This is Rietveld 408576698