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

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: 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..31d73aa0a828c6f091962d6516bd9c05c5746319 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 due to disk error or
+ // other problems. See crbug.com/614753.
Peter Kasting 2016/05/31 11:41:09 Nit: I'm not a fan of "see bug X" comments, becaus
WC Leung 2016/05/31 17:41:07 Done.
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