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

Unified Diff: chrome/app/chrome_watcher_command_line_win.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: address simple comments from gab 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
« no previous file with comments | « no previous file | chrome/app/main_dll_loader_win.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/app/chrome_watcher_command_line_win.cc
diff --git a/chrome/app/chrome_watcher_command_line_win.cc b/chrome/app/chrome_watcher_command_line_win.cc
index 9c8106b3fdba1cad2624370138d0ade95d39bedc..907a7806ab01c81c3612a8fc09aaa1b6d3380e23 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 "chrome/common/prefetch_argument_win.h"
#include "content/public/common/content_switches.h"
namespace {
@@ -149,6 +150,7 @@ base::CommandLine GenerateChromeWatcherCommandLine(
base::CommandLine command_line(chrome_exe);
command_line.AppendSwitchASCII(switches::kProcessType,
switches::kWatcherProcess);
+ chrome::AddWindowsPrefetchArgument(&command_line);
command_line.AppendSwitchASCII(kMainThreadIdSwitch,
base::UintToString(main_thread_id));
AppendHandleSwitch(kOnIninitializedEventHandleSwitch, on_initialized_event,
« no previous file with comments | « no previous file | chrome/app/main_dll_loader_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698