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

Unified Diff: chrome/installer/util/auto_launch_util.cc

Issue 1612663002: Use a valid /prefetch argument when launching a process. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@bit
Patch Set: address comments from gab #13 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/installer/util/auto_launch_util.cc
diff --git a/chrome/installer/util/auto_launch_util.cc b/chrome/installer/util/auto_launch_util.cc
index e61cf7677d09db1742737d8a22503438c6734145..9fbeab7a47925fdd0ce30fe78e0c83723e3fe59f 100644
--- a/chrome/installer/util/auto_launch_util.cc
+++ b/chrome/installer/util/auto_launch_util.cc
@@ -21,6 +21,7 @@
#include "chrome/common/chrome_paths.h"
#include "chrome/common/chrome_switches.h"
#include "chrome/installer/util/util_constants.h"
+#include "components/startup_metric_utils/common/pre_read_field_trial_utils_win.h"
#include "crypto/sha2.h"
namespace {
@@ -59,6 +60,9 @@ void EnableBackgroundStartAtLogin() {
base::CommandLine cmd_line(application_dir.Append(installer::kChromeExe));
cmd_line.AppendSwitch(switches::kNoStartupWindow);
+ if (startup_metric_utils::GetPreReadOptions().use_prefetch_argument)
+ cmd_line.AppendArg(switches::kPrefetchArgumentBrowserBackground);
+
base::win::AddCommandToAutoRun(HKEY_CURRENT_USER, GetAutoLaunchKeyName(),
cmd_line.GetCommandLineString());
}

Powered by Google App Engine
This is Rietveld 408576698