Index: chrome/browser/profiles/profile_window.cc |
diff --git a/chrome/browser/profiles/profile_window.cc b/chrome/browser/profiles/profile_window.cc |
index ffb84064a218d0a860c168d551c6e14e8d81d002..1b52daa5a9485c5310493add0be105b251a5639e 100644 |
--- a/chrome/browser/profiles/profile_window.cc |
+++ b/chrome/browser/profiles/profile_window.cc |
@@ -23,6 +23,7 @@ |
#include "chrome/common/pref_names.h" |
#include "chrome/common/url_constants.h" |
#include "components/signin/core/browser/account_reconcilor.h" |
+#include "components/signin/core/common/profile_management_switches.h" |
#include "content/public/browser/browser_thread.h" |
#include "content/public/browser/user_metrics.h" |
@@ -317,6 +318,9 @@ void ShowUserManagerMaybeWithTutorial(Profile* profile) { |
} |
void EnableNewProfileManagementPreview(Profile* profile) { |
+#if defined(OS_ANDROID) |
+ NOTREACHED(); |
+#else |
about_flags::PrefServiceFlagsStorage flags_storage( |
g_browser_process->local_state()); |
about_flags::SetExperimentEnabled( |
@@ -324,10 +328,11 @@ void EnableNewProfileManagementPreview(Profile* profile) { |
kNewProfileManagementExperimentInternalName, |
true); |
- CommandLine::ForCurrentProcess()->AppendSwitch( |
- switches::kNewProfileManagement); |
+ switches::EnableNewProfileManagementForTesting( |
+ CommandLine::ForCurrentProcess()); |
chrome::ShowUserManagerWithTutorial(profiles::USER_MANAGER_TUTORIAL_OVERVIEW); |
UpdateServicesWithNewProfileManagementFlag(profile, true); |
+#endif |
} |
void DisableNewProfileManagementPreview(Profile* profile) { |