summaryrefslogtreecommitdiffstats
path: root/chrome/app/chrome_watcher_command_line_win.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/app/chrome_watcher_command_line_win.cc')
-rw-r--r--chrome/app/chrome_watcher_command_line_win.cc7
1 files changed, 7 insertions, 0 deletions
diff --git a/chrome/app/chrome_watcher_command_line_win.cc b/chrome/app/chrome_watcher_command_line_win.cc
index 9c8106b..2f79dbc 100644
--- a/chrome/app/chrome_watcher_command_line_win.cc
+++ b/chrome/app/chrome_watcher_command_line_win.cc
@@ -15,6 +15,7 @@
#include "base/strings/stringprintf.h"
#include "base/win/win_util.h"
#include "chrome/common/chrome_switches.h"
+#include "components/startup_metric_utils/common/pre_read_field_trial_utils_win.h"
#include "content/public/common/content_switches.h"
namespace {
@@ -154,6 +155,12 @@ base::CommandLine GenerateChromeWatcherCommandLine(
AppendHandleSwitch(kOnIninitializedEventHandleSwitch, on_initialized_event,
&command_line);
AppendHandleSwitch(kParentHandleSwitch, parent_process, &command_line);
+
+#if defined(OS_WIN)
+ if (startup_metric_utils::GetPreReadOptions().use_prefetch_argument)
+ command_line.AppendArg(switches::kPrefetchArgumentWatcher);
+#endif // defined(OS_WIN)
+
return command_line;
}