Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(447)

Unified Diff: chrome/browser/ui/startup/startup_browser_creator.cc

Issue 856733004: Loading the Launcher with a Locked Profile launched UserManager. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: tapted@: test fixes and remove a const-ref. Created 5 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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;
}
}

Powered by Google App Engine
This is Rietveld 408576698