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

Unified Diff: chrome/browser/profiles/profile_impl.cc

Issue 6773006: Add enableReferrers and enableHyperlinkAuditing to contentSettings.misc API. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: add comment Created 9 years, 8 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_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),

Powered by Google App Engine
This is Rietveld 408576698