summaryrefslogtreecommitdiffstats
path: root/cloud_print
diff options
context:
space:
mode:
authorFrancois Doray <fdoray@chromium.org>2016-02-23 18:50:30 -0500
committerFrancois Doray <fdoray@chromium.org>2016-02-23 23:53:56 +0000
commit97ae8295dfda25dc394112cb84741df9949a65f9 (patch)
tree643a6747f9e83fdcda7226039afd4e5166791df0 /cloud_print
parent489f16983f03efade031d3fec1f4b4ce849052ad (diff)
downloadchromium_src-97ae8295dfda25dc394112cb84741df9949a65f9.zip
chromium_src-97ae8295dfda25dc394112cb84741df9949a65f9.tar.gz
chromium_src-97ae8295dfda25dc394112cb84741df9949a65f9.tar.bz2
Use a valid /prefetch argument when launching a process.
The /prefetch:# argument that is currently added to the command line of processes launched with content::StartSandboxedProcess is ignored by Windows because # doesn't respect the [1, 8] constraint. This CL ensures that a valid /prefetch:# argument is used for every process launch (except when the feature is disabled by the PreRead field trial). BUG=577698 Review URL: https://codereview.chromium.org/1612663002 Cr-Commit-Position: refs/heads/master@{#373241} (cherry picked from commit 343068c41c299e65a87d935654f0b81a9935250f) Conflicts: chrome/service/DEPS TBR=gab@chromium.org Review URL: https://codereview.chromium.org/1727983002 . Cr-Commit-Position: refs/branch-heads/2623@{#484} Cr-Branched-From: 92d77538a86529ca35f9220bd3cd512cbea1f086-refs/heads/master@{#369907}
Diffstat (limited to 'cloud_print')
-rw-r--r--cloud_print/service/win/chrome_launcher.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/cloud_print/service/win/chrome_launcher.cc b/cloud_print/service/win/chrome_launcher.cc
index 5c9013a..d386342 100644
--- a/cloud_print/service/win/chrome_launcher.cc
+++ b/cloud_print/service/win/chrome_launcher.cc
@@ -214,6 +214,10 @@ void ChromeLauncher::Run() {
cmd.AppendSwitchPath(switches::kUserDataDir, user_data_);
cmd.AppendSwitch(switches::kNoServiceAutorun);
+#if defined(OS_WIN)
+ cmd.AppendArg(switches::kPrefetchArgumentOther);
+#endif // defined(OS_WIN)
+
// Optional.
cmd.AppendSwitch(switches::kDisableDefaultApps);
cmd.AppendSwitch(switches::kDisableExtensions);