Index: base/metrics/field_trial.h |
diff --git a/base/metrics/field_trial.h b/base/metrics/field_trial.h |
index eb89163675b5cb5d5ae4fd5d27b755c69c8ef903..7352b60bf621f36c3169609eb610dd1811d03e70 100644 |
--- a/base/metrics/field_trial.h |
+++ b/base/metrics/field_trial.h |
@@ -65,6 +65,7 @@ |
#include "base/base_export.h" |
#include "base/command_line.h" |
+#include "base/feature_list.h" |
#include "base/files/file.h" |
#include "base/gtest_prod_util.h" |
#include "base/macros.h" |
@@ -507,6 +508,12 @@ class BASE_EXPORT FieldTrialList { |
const char* field_trial_handle_switch, |
int fd_key); |
+ static void CreateFeaturesFromCommandLine( |
+ const base::CommandLine& command_line, |
+ const char* enable_features_switch, |
+ const char* disable_features_switch, |
+ std::unique_ptr<FeatureList>& feature_list); |
+ |
#if defined(OS_WIN) |
// On Windows, we need to explicitly pass down any handles to be inherited. |
// This function adds the shared memory handle to field trial state to the |
@@ -526,6 +533,8 @@ class BASE_EXPORT FieldTrialList { |
// Needs the |field_trial_handle_switch| argument to be passed in since base/ |
// can't depend on content/. |
static void CopyFieldTrialStateToFlags(const char* field_trial_handle_switch, |
+ const char* enable_features_switch, |
+ const char* disable_features_switch, |
base::CommandLine* cmd_line); |
// Create a FieldTrial with the given |name| and using 100% probability for |