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

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

Issue 2280183002: Remove all code related to the PreRead field trial. (Closed)
Patch Set: fix include Created 4 years, 4 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
deleted file mode 100644
index d7908b383aa355a5baf5344b9bad11db6254ddfd..0000000000000000000000000000000000000000
--- a/components/startup_metric_utils/common/pre_read_field_trial_utils_win.h
+++ /dev/null
@@ -1,60 +0,0 @@
-// Copyright 2015 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef COMPONENTS_STARTUP_METRIC_UTILS_COMMON_PRE_READ_FIELD_TRIAL_UTILS_WIN_H_
-#define COMPONENTS_STARTUP_METRIC_UTILS_COMMON_PRE_READ_FIELD_TRIAL_UTILS_WIN_H_
-
-#include <string>
-
-#include "base/callback_forward.h"
-#include "base/strings/string16.h"
-
-// Utility functions to support the PreRead field trial. The PreRead field trial
-// changes the way DLLs are pre-read during startup.
-
-namespace startup_metric_utils {
-
-// Callback to register a synthetic field trial.
-using RegisterPreReadSyntheticFieldTrialCallback =
- const base::Callback<bool(const std::string&, const std::string&)>;
-
-// The options controlled by the PreRead field trial.
-struct PreReadOptions {
- // Pre-read DLLs explicitly.
- bool pre_read : 1;
-
- // Pre-read DLLs with a high thread priority.
- bool high_priority : 1;
-
- // Pre-read DLLs using the ::PrefetchVirtualMemory function, if available.
- bool prefetch_virtual_memory : 1;
-};
-
-// Initializes DLL pre-reading options from the registry.
-// |product_registry_path| is the registry path under which the registry key for
-// this field trial resides.
-void InitializePreReadOptions(const base::string16& product_registry_path);
-
-// Returns the bitfield of the DLL pre-reading options to use for the current
-// process. InitializePreReadOptions() must have been called before this.
-PreReadOptions GetPreReadOptions();
-
-// 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
-// registry key for this field trial resides.
-void UpdatePreReadOptions(const base::string16& product_registry_path);
-
-// Registers a synthetic field trial with the PreRead group currently stored in
-// the registry. This must be done before the first metric log
-// (metrics::MetricsLog) is created. Otherwise, UMA metrics generated during
-// startup won't be correctly annotated. |product_registry_path| is the registry
-// path under which the key for this field trial resides.
-void RegisterPreReadSyntheticFieldTrial(
- const base::string16& product_registry_path,
- const RegisterPreReadSyntheticFieldTrialCallback&
- register_synthetic_field_trial);
-
-} // namespace startup_metric_utils
-
-#endif // COMPONENTS_STARTUP_METRIC_UTILS_COMMON_PRE_READ_FIELD_TRIAL_UTILS_WIN_H_
« no previous file with comments | « components/startup_metric_utils/common/DEPS ('k') | components/startup_metric_utils/common/pre_read_field_trial_utils_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698