Index: chrome/browser/profiles/profile_impl.cc |
diff --git a/chrome/browser/profiles/profile_impl.cc b/chrome/browser/profiles/profile_impl.cc |
index b0148d146e43bd18bbe3345cb30a482217adc50b..167fcbcee11b4145fcde1a61aec38f5d957d1857 100644 |
--- a/chrome/browser/profiles/profile_impl.cc |
+++ b/chrome/browser/profiles/profile_impl.cc |
@@ -524,6 +524,8 @@ void ProfileImpl::set_last_selected_directory(const FilePath& path) { |
} |
ProfileImpl::~ProfileImpl() { |
+ // Notify observers that this profile is going to be destroyed soon before |
+ // shutting down other members that may hold references to it. |
NotificationService::current()->Notify( |
NotificationType::PROFILE_DESTROYED, |
Source<Profile>(this), |