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

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: 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..bb16e059f21d2d2b688dd3a299af90a47fdac312 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 fails initialization. Like normal profiles, they are not
Peter Kasting 2016/06/13 04:43:20 Nit: fail
WC Leung 2016/06/13 08:06:45 Acknowledged.
WC Leung 2016/06/15 13:08:39 Done.
+ // safe to destroy from memory before shutdown.
Peter Kasting 2016/06/13 04:43:20 Nit: "...they must not be deleted before shutdown.
WC Leung 2016/06/13 08:06:45 Acknowledged.
WC Leung 2016/06/15 13:08:39 Actually some services (e.g. pref store) that Prof
+ 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