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

Unified Diff: chrome/browser/profiles/profile_manager.h

Issue 2061593002: Fix crash when switching to a profile that cannot be opened (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@bug-614753-fix
Patch Set: Respond to nits, fix tests Created 4 years, 6 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/profiles/profile_manager.h
diff --git a/chrome/browser/profiles/profile_manager.h b/chrome/browser/profiles/profile_manager.h
index e3e742c9995536c5defdc4a8f7001d3872563c56..3133365136179ad19bf9982149b7a51c72422995 100644
--- a/chrome/browser/profiles/profile_manager.h
+++ b/chrome/browser/profiles/profile_manager.h
@@ -401,6 +401,10 @@ class ProfileManager : public base::NonThreadSafe,
typedef std::map<base::FilePath, linked_ptr<ProfileInfo> > ProfilesInfoMap;
ProfilesInfoMap profiles_info_;
+ // Owns profiles that fail initialization. Like normal profiles, they must not
+ // be deleted before shutdown.
Peter Kasting 2016/06/16 07:02:11 I'm uncomfortable with having this code and commen
WC Leung 2016/06/16 10:04:10 Actually there was some discussion about deleting
Peter Kasting 2016/06/16 10:59:59 FWIW, it seems very wrong to me for anyone to be d
Bernhard Bauer 2016/06/16 13:40:25 We use JSONPrefStore in a couple of different plac
+ std::vector<std::unique_ptr<Profile>> failed_profiles_;
+
// Manages the process of creating, deleteing and updating Desktop shortcuts.
std::unique_ptr<ProfileShortcutManager> profile_shortcut_manager_;

Powered by Google App Engine
This is Rietveld 408576698