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

Unified Diff: components/startup_metric_utils/common/pre_read_field_trial_utils_win.h

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: format 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: components/startup_metric_utils/common/pre_read_field_trial_utils_win.h
diff --git a/components/startup_metric_utils/common/pre_read_field_trial_utils_win.h b/components/startup_metric_utils/common/pre_read_field_trial_utils_win.h
index 612f76b2f43d39cc88436d2e7948ca2b9e11600b..d2245e331835bea02b0d6d6f6df54bba5dffa35c 100644
--- a/components/startup_metric_utils/common/pre_read_field_trial_utils_win.h
+++ b/components/startup_metric_utils/common/pre_read_field_trial_utils_win.h
@@ -26,12 +26,14 @@ using RegisterPreReadSyntheticFieldTrialCallback =
// |only_if_cold| option is set if only cold DLLs should be pre-read. The
// |prefetch_virtual_memory| option is set if the
// ::PrefetchVirtualMemory function should be used to pre-read DLLs, if
-// available.
+// available. The |prefetch_argument| option is set if a prefetch argument
+// should be specified when launching a process.
void GetPreReadOptions(const base::string16& product_registry_path,
bool* no_pre_read,
bool* high_priority,
bool* only_if_cold,
- bool* prefetch_virtual_memory);
+ bool* prefetch_virtual_memory,
+ bool* prefetch_argument);
gab 2016/01/18 19:10:52 As suggested in caller above I'd say let's do: en
// Updates DLL pre-reading options in the registry with the latest info for the
// next startup. |product_registry_path| is the registry path under which the

Powered by Google App Engine
This is Rietveld 408576698