Index: chrome/browser/profiles/profile.cc |
diff --git a/chrome/browser/profiles/profile.cc b/chrome/browser/profiles/profile.cc |
index 1bd2bd9031523218c0a557dcbd49ce6ee8910861..90a74bb030a604280facc35c89868c7df1335d90 100644 |
--- a/chrome/browser/profiles/profile.cc |
+++ b/chrome/browser/profiles/profile.cc |
@@ -186,6 +186,8 @@ class OffTheRecordProfileImpl : public Profile, |
} |
virtual ~OffTheRecordProfileImpl() { |
+ // 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), |
NotificationService::NoDetails()); |