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

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

Issue 2021253002: Skip profiles in GetLastOpenedProfiles that fail to initialize (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Removed the bad DCHECK, updated comments Created 4 years, 7 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 ae452e2147b43d43a91959a13816f10982390848..05a2c4cae80c5bd36aebab2d657570ef2040a78e 100644
--- a/chrome/browser/ui/startup/startup_browser_creator.cc
+++ b/chrome/browser/ui/startup/startup_browser_creator.cc
@@ -747,6 +747,8 @@ bool StartupBrowserCreator::ProcessCmdLineImpl(
// - Only incognito windows were open when the browser exited.
// |last_used_profile| is the last used incognito profile. Restoring it will
// create a browser window for the corresponding original profile.
+ // - All of the last opened profiles fail to initialize, i.e. having all
+ // nullptr returns in Profile::CreateProfile.
Peter Kasting 2016/05/31 19:12:30 Nit: I'd probably just leave off the second clause
WC Leung 2016/06/01 18:56:55 I see. Now the second clause is removed.
if (last_opened_profiles.empty()) {
if (ShowUserManagerOnStartupIfNeeded(last_used_profile, command_line))
return true;
« chrome/browser/profiles/profile_manager.cc ('K') | « chrome/browser/profiles/profile_manager.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698