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

Unified Diff: chrome/service/service_utility_process_host.cc

Issue 1595633002: Use valid /prefetch arguments for process launches on Windows. - do not submit (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@move
Patch Set: format 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: chrome/service/service_utility_process_host.cc
diff --git a/chrome/service/service_utility_process_host.cc b/chrome/service/service_utility_process_host.cc
index 46483ff37a428bb10d3e664e2a39f72bfd97b7fb..67b4746c0fbfe60449f4e24bde1ca77470057943 100644
--- a/chrome/service/service_utility_process_host.cc
+++ b/chrome/service/service_utility_process_host.cc
@@ -34,6 +34,10 @@
#include "sandbox/win/src/sandbox_types.h"
#include "ui/base/ui_base_switches.h"
+#if defined(OS_WIN)
+#include "chrome/common/prefetch_argument_win.h"
+#endif // defined(OS_WIN)
+
namespace {
using content::ChildProcessHost;
@@ -221,6 +225,9 @@ bool ServiceUtilityProcessHost::StartProcess(bool no_sandbox) {
base::CommandLine cmd_line(exe_path);
cmd_line.AppendSwitchASCII(switches::kProcessType, switches::kUtilityProcess);
+#if defined(OS_WIN)
+ chrome::AddWindowsPrefetchArgument(&cmd_line);
+#endif // defined(OS_WIN)
cmd_line.AppendSwitchASCII(switches::kProcessChannelID, channel_id);
cmd_line.AppendSwitch(switches::kLang);

Powered by Google App Engine
This is Rietveld 408576698