| Index: chrome/browser/ui/webui/options/supervised_user_create_confirm_handler.cc
|
| diff --git a/chrome/browser/ui/webui/options/supervised_user_create_confirm_handler.cc b/chrome/browser/ui/webui/options/supervised_user_create_confirm_handler.cc
|
| index 9c44f68b14892d3b7afdbc7ec40f59409f5ef953..2b169e0eaa2e9e3dbc9393bf88d495934a43e1f8 100644
|
| --- a/chrome/browser/ui/webui/options/supervised_user_create_confirm_handler.cc
|
| +++ b/chrome/browser/ui/webui/options/supervised_user_create_confirm_handler.cc
|
| @@ -159,18 +159,9 @@ void SupervisedUserCreateConfirmHandler::SwitchToProfile(
|
| GetProfileByPath(profile_file_path);
|
| DCHECK(profile);
|
|
|
| - Browser* browser =
|
| - chrome::FindBrowserWithWebContents(web_ui()->GetWebContents());
|
| - chrome::HostDesktopType desktop_type = chrome::HOST_DESKTOP_TYPE_NATIVE;
|
| - if (browser)
|
| - desktop_type = browser->host_desktop_type();
|
| -
|
| profiles::FindOrCreateNewWindowForProfile(
|
| - profile,
|
| - chrome::startup::IS_PROCESS_STARTUP,
|
| - chrome::startup::IS_FIRST_RUN,
|
| - desktop_type,
|
| - false);
|
| + profile, chrome::startup::IS_PROCESS_STARTUP,
|
| + chrome::startup::IS_FIRST_RUN, false);
|
| }
|
|
|
| } // namespace options
|
|
|