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 07f7bb774167448012a6fe4bd1165d801b1931a4..700e8c5f1676427ff70b9ab5236d488c582f3ed1 100644 |
--- a/chrome/browser/ui/startup/startup_browser_creator.cc |
+++ b/chrome/browser/ui/startup/startup_browser_creator.cc |
@@ -702,9 +702,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; |
} |
} |