| Index: chrome/browser/ui/webui/signin/user_manager_screen_handler.cc
|
| diff --git a/chrome/browser/ui/webui/signin/user_manager_screen_handler.cc b/chrome/browser/ui/webui/signin/user_manager_screen_handler.cc
|
| index 375dd8c813ad21a0bbfcbe7f9c569205fad0799e..55d5488b25faa3dd5bc8a863d8e96c01f41d994e 100644
|
| --- a/chrome/browser/ui/webui/signin/user_manager_screen_handler.cc
|
| +++ b/chrome/browser/ui/webui/signin/user_manager_screen_handler.cc
|
| @@ -463,17 +463,13 @@ void UserManagerScreenHandler::HandleRemoveUser(const base::ListValue* args) {
|
| return;
|
| }
|
|
|
| - if (!profiles::IsMultipleProfilesEnabled()) {
|
| - NOTREACHED();
|
| - return;
|
| - }
|
| + DCHECK(profiles::IsMultipleProfilesEnabled());
|
|
|
| // The callback is run if the only profile has been deleted, and a new
|
| // profile has been created to replace it.
|
| - g_browser_process->profile_manager()->ScheduleProfileForDeletion(
|
| - profile_path, base::Bind(&webui::OpenNewWindowForProfile));
|
| - ProfileMetrics::LogProfileDeleteUser(
|
| - ProfileMetrics::DELETE_PROFILE_USER_MANAGER);
|
| + webui::DeleteProfileAtPath(profile_path,
|
| + web_ui(),
|
| + ProfileMetrics::DELETE_PROFILE_USER_MANAGER);
|
| }
|
|
|
| void UserManagerScreenHandler::HandleLaunchGuest(const base::ListValue* args) {
|
|
|