| Index: chrome/browser/profiles/avatar_menu.cc
|
| diff --git a/chrome/browser/profiles/avatar_menu.cc b/chrome/browser/profiles/avatar_menu.cc
|
| index 24f1ec4888e8498826fda62f756cef2826cc69e0..da41957edccb2bd1bd9f0c4525afd2e25e2fc852 100644
|
| --- a/chrome/browser/profiles/avatar_menu.cc
|
| +++ b/chrome/browser/profiles/avatar_menu.cc
|
| @@ -23,6 +23,7 @@
|
| #include "chrome/browser/ui/browser_dialogs.h"
|
| #include "chrome/browser/ui/host_desktop.h"
|
| #include "chrome/browser/ui/startup/startup_browser_creator.h"
|
| +#include "chrome/browser/ui/user_manager.h"
|
| #include "chrome/common/chrome_switches.h"
|
| #include "chrome/grit/generated_resources.h"
|
| #include "components/signin/core/common/profile_management_switches.h"
|
| @@ -122,7 +123,9 @@ void AvatarMenu::SwitchToProfile(size_t index,
|
| if (switches::IsNewAvatarMenu()) {
|
| // Don't open a browser window for signed-out profiles.
|
| if (item.signin_required) {
|
| - chrome::ShowUserManager(item.profile_path);
|
| + UserManager::Show(item.profile_path,
|
| + profiles::USER_MANAGER_NO_TUTORIAL,
|
| + profiles::USER_MANAGER_SELECT_PROFILE_NO_ACTION);
|
| return;
|
| }
|
| }
|
| @@ -135,7 +138,7 @@ void AvatarMenu::SwitchToProfile(size_t index,
|
| desktop_type = browser_->host_desktop_type();
|
|
|
| profiles::SwitchToProfile(path, desktop_type, always_create,
|
| - profiles::ProfileSwitchingDoneCallback(),
|
| + ProfileManager::CreateCallback(),
|
| metric);
|
| }
|
|
|
|
|