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

Unified Diff: chrome/browser/content_settings/host_content_settings_map.h

Issue 7275018: Make ExtensionContentSettingsStore refcounted. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: review Created 9 years, 5 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/content_settings/host_content_settings_map.h
diff --git a/chrome/browser/content_settings/host_content_settings_map.h b/chrome/browser/content_settings/host_content_settings_map.h
index a4ed56faf5eb6d8f988c7afafa3adeab37a3e625..816b746220a9589239cb3ae35d31a2020b4d90f0 100644
--- a/chrome/browser/content_settings/host_content_settings_map.h
+++ b/chrome/browser/content_settings/host_content_settings_map.h
@@ -187,6 +187,12 @@ class HostContentSettingsMap
// Returns true if the default setting for the |content_type| is managed.
bool IsDefaultContentSettingManaged(ContentSettingsType content_type) const;
+ // Detaches the HostContentSettingsMap from all Profile-related objects like
+ // PrefService. This methods needs to be called before destroying the Profile.
+ // Afterwards, none of the methods above that should only be called on the UI
+ // thread should be called anymore.
+ void ShutdownOnUIThread();
+
// NotificationObserver implementation.
virtual void Observe(NotificationType type,
const NotificationSource& source,

Powered by Google App Engine
This is Rietveld 408576698