Index: chrome/browser/profiles/profile_window.cc |
diff --git a/chrome/browser/profiles/profile_window.cc b/chrome/browser/profiles/profile_window.cc |
index 90b4a353a72c3cdac755418a72c60639a111cf9d..064ef199abccb8978556ab91048a078ed1656609 100644 |
--- a/chrome/browser/profiles/profile_window.cc |
+++ b/chrome/browser/profiles/profile_window.cc |
@@ -452,12 +452,12 @@ void EnableNewProfileManagementPreview(Profile* profile) { |
#else |
// TODO(rogerta): instead of setting experiment flags and command line |
// args, we should set a profile preference. |
- const about_flags::Experiment experiment = { |
+ const about_flags::Entry entry = { |
kNewProfileManagementExperimentInternalName, |
0, // string id for title of experiment |
0, // string id for description of experiment |
0, // supported platforms |
- about_flags::Experiment::ENABLE_DISABLE_VALUE, |
+ about_flags::Entry::ENABLE_DISABLE_VALUE, |
switches::kEnableNewProfileManagement, |
"", // not used with ENABLE_DISABLE_VALUE type |
switches::kDisableNewProfileManagement, |
@@ -467,10 +467,7 @@ void EnableNewProfileManagementPreview(Profile* profile) { |
}; |
about_flags::PrefServiceFlagsStorage flags_storage( |
g_browser_process->local_state()); |
- about_flags::SetExperimentEnabled( |
- &flags_storage, |
- experiment.NameForChoice(1), |
- true); |
+ about_flags::SetEntryEnabled(&flags_storage, entry.NameForChoice(1), true); |
switches::EnableNewProfileManagementForTesting( |
base::CommandLine::ForCurrentProcess()); |
@@ -484,7 +481,7 @@ void EnableNewProfileManagementPreview(Profile* profile) { |
void DisableNewProfileManagementPreview(Profile* profile) { |
about_flags::PrefServiceFlagsStorage flags_storage( |
g_browser_process->local_state()); |
- about_flags::SetExperimentEnabled( |
+ about_flags::SetEntryEnabled( |
&flags_storage, |
kNewProfileManagementExperimentInternalName, |
false); |