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

Unified Diff: chrome/common/service_process_util.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/common/service_process_util.cc
diff --git a/chrome/common/service_process_util.cc b/chrome/common/service_process_util.cc
index 336c01174e59f062a900fe925c59cb98d99a249b..0321747d20ccf62d40fd6afb184d8f044257899d 100644
--- a/chrome/common/service_process_util.cc
+++ b/chrome/common/service_process_util.cc
@@ -31,6 +31,10 @@
#include "google_apis/gaia/gaia_switches.h"
#include "ui/base/ui_base_switches.h"
+#if defined(OS_WIN)
+#include "chrome/common/prefetch_argument_win.h"
+#endif // defined(OS_WIN)
+
#if !defined(OS_MACOSX)
namespace {
@@ -160,6 +164,9 @@ scoped_ptr<base::CommandLine> CreateServiceProcessCommandLine() {
scoped_ptr<base::CommandLine> command_line(new base::CommandLine(exe_path));
command_line->AppendSwitchASCII(switches::kProcessType,
switches::kServiceProcess);
+#if defined(OS_WIN)
+ chrome::AddWindowsPrefetchArgument(command_line.get());
+#endif // defined(OS_WIN)
static const char* const kSwitchesToCopy[] = {
switches::kCloudPrintSetupProxy,
switches::kCloudPrintURL,

Powered by Google App Engine
This is Rietveld 408576698