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

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: 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 db67d60dc225e1c161e818315153975801596476..c57526d8a8371972c0ffc03694c3da61e7b3cc9e 100644
--- a/content/browser/utility_process_host_impl.cc
+++ b/content/browser/utility_process_host_impl.cc
@@ -38,6 +38,7 @@
#include "ui/base/ui_base_switches.h"
#if defined(OS_WIN)
+#include "content/public/common/prefetch_argument_win.h"
#include "sandbox/win/src/sandbox_policy.h"
#include "sandbox/win/src/sandbox_types.h"
#endif
@@ -286,6 +287,10 @@ bool UtilityProcessHostImpl::StartProcess() {
std::string locale = GetContentClient()->browser()->GetApplicationLocale();
cmd_line->AppendSwitchASCII(switches::kLang, locale);
+#if defined(OS_WIN)
+ AddWindowsPrefetchArgument(PREFETCH_ID_DEFAULT, cmd_line);
+#endif // defined(OS_WIN)
+
if (no_sandbox_)
cmd_line->AppendSwitch(switches::kNoSandbox);

Powered by Google App Engine
This is Rietveld 408576698