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

Unified Diff: chrome/browser/browser_process_impl.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/browser/browser_process_impl.cc
diff --git a/chrome/browser/browser_process_impl.cc b/chrome/browser/browser_process_impl.cc
index 4dff7d21b77a67d1f32b9341df3c6f13af5c67a6..2a2c668624a50addb1c804541067fe45c98e7309 100644
--- a/chrome/browser/browser_process_impl.cc
+++ b/chrome/browser/browser_process_impl.cc
@@ -111,6 +111,7 @@
#if defined(OS_WIN)
#include "base/win/windows_version.h"
+#include "components/startup_metric_utils/common/pre_read_field_trial_utils_win.h"
#include "ui/views/focus/view_storage.h"
#elif defined(OS_MACOSX)
#include "chrome/browser/chrome_browser_main_mac.h"
@@ -1268,6 +1269,11 @@ void BrowserProcessImpl::RestartBackgroundInstance() {
new_cl->AppendSwitch(kSwitchesToAddOnAutorestart[i]);
}
+#if defined(OS_WIN)
+ if (startup_metric_utils::GetPreReadOptions().use_prefetch_argument)
+ new_cl->AppendArg(switches::kPrefetchArgumentBrowserBackground);
+#endif // defined(OS_WIN)
+
DLOG(WARNING) << "Shutting down current instance of the browser.";
chrome::AttemptExit();

Powered by Google App Engine
This is Rietveld 408576698