Index: chrome/browser/ui/startup/startup_browser_creator.cc |
diff --git a/chrome/browser/ui/startup/startup_browser_creator.cc b/chrome/browser/ui/startup/startup_browser_creator.cc |
index f82be047a95aef2fac20d4836a2cb695de2c22c9..238fdb5ac570c5beaf5388ee7fc075978126bbd6 100644 |
--- a/chrome/browser/ui/startup/startup_browser_creator.cc |
+++ b/chrome/browser/ui/startup/startup_browser_creator.cc |
@@ -697,9 +697,12 @@ bool StartupBrowserCreator::ProcessCmdLineImpl( |
last_used_profile->GetOffTheRecordProfile()) > 0; |
if (signin_required || |
(last_used_profile->IsGuestSession() && !has_guest_browsers)) { |
- UserManager::Show(base::FilePath(), |
- profiles::USER_MANAGER_NO_TUTORIAL, |
- profiles::USER_MANAGER_SELECT_PROFILE_NO_ACTION); |
+ profiles::UserManagerProfileSelected action = |
+ command_line.HasSwitch(switches::kShowAppList) ? |
+ profiles::USER_MANAGER_SELECT_PROFILE_APP_LAUNCHER : |
+ profiles::USER_MANAGER_SELECT_PROFILE_NO_ACTION; |
+ UserManager::Show( |
+ base::FilePath(), profiles::USER_MANAGER_NO_TUTORIAL, action); |
return true; |
} |
} |