Index: chrome/browser/profiles/profile_manager.cc |
=================================================================== |
--- chrome/browser/profiles/profile_manager.cc (revision 122340) |
+++ chrome/browser/profiles/profile_manager.cc (working copy) |
@@ -20,6 +20,7 @@ |
#include "chrome/browser/extensions/extension_service.h" |
#include "chrome/browser/prefs/pref_service.h" |
#include "chrome/browser/prefs/scoped_user_pref_update.h" |
+#include "chrome/browser/profiles/profile_destroyer.h" |
#include "chrome/browser/profiles/profile_info_cache.h" |
#include "chrome/browser/profiles/profile_metrics.h" |
#include "chrome/browser/sessions/session_service_factory.h" |
@@ -894,3 +895,7 @@ |
for (size_t i = 0; i < callbacks.size(); ++i) |
callbacks[i].Run(profile, status); |
} |
+ |
+ProfileManager::ProfileInfo::~ProfileInfo() { |
+ ProfileDestroyer::DestroyProfileWhenAppropriate(profile.release()); |
+} |