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

Unified Diff: components/startup_metric_utils/common/pre_read_field_trial_utils_win.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: 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.cc
diff --git a/components/startup_metric_utils/common/pre_read_field_trial_utils_win.cc b/components/startup_metric_utils/common/pre_read_field_trial_utils_win.cc
index 0219f12d3a6b1acfb09dbccc3d58028b46cd4804..8eecfea71075bc7190da9b55748252edd4026469 100644
--- a/components/startup_metric_utils/common/pre_read_field_trial_utils_win.cc
+++ b/components/startup_metric_utils/common/pre_read_field_trial_utils_win.cc
@@ -31,6 +31,7 @@ const base::char16 kHighPriorityVariationName[] = L"HighPriority";
const base::char16 kOnlyIfColdVariationName[] = L"OnlyIfCold";
const base::char16 kPrefetchVirtualMemoryVariationName[] =
L"PrefetchVirtualMemory";
+const base::char16 kNoPrefetchArgumentVariationName[] = L"NoPrefetchArgument";
// Registry key in which the PreRead field trial group is stored.
const base::char16 kPreReadFieldTrialRegistryKey[] = L"\\PreReadFieldTrial";
@@ -69,6 +70,7 @@ void InitializePreReadOptions(const base::string16& product_registry_path) {
{kOnlyIfColdVariationName, PRE_READ_OPTION_ONLY_IF_COLD},
{kPrefetchVirtualMemoryVariationName,
PRE_READ_OPTION_PREFETCH_VIRTUAL_MEMORY},
+ {kNoPrefetchArgumentVariationName, PRE_READ_OPTION_NO_PREFETCH_ARGUMENT},
};
for (const auto& mapping : variations_mappings) {

Powered by Google App Engine
This is Rietveld 408576698