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

Unified Diff: chrome/browser/extensions/extension_content_settings_store.cc

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/extensions/extension_content_settings_store.cc
diff --git a/chrome/browser/extensions/extension_content_settings_store.cc b/chrome/browser/extensions/extension_content_settings_store.cc
index d8617b61cf4836095392137570a571d6099a3bf1..b7c17b0884b32dafda873530ff96fc07b56ebed2 100644
--- a/chrome/browser/extensions/extension_content_settings_store.cc
+++ b/chrome/browser/extensions/extension_content_settings_store.cc
@@ -54,8 +54,6 @@ ExtensionContentSettingsStore::ExtensionContentSettingsStore() {
}
ExtensionContentSettingsStore::~ExtensionContentSettingsStore() {
- DCHECK(OnCorrectThread());
- NotifyOfDestruction();
STLDeleteValues(&entries_);
}
@@ -434,12 +432,6 @@ ExtensionContentSettingsStore::ContentSettingSpec::ContentSettingSpec(
setting(setting) {
}
-void ExtensionContentSettingsStore::NotifyOfDestruction() {
- FOR_EACH_OBSERVER(ExtensionContentSettingsStore::Observer,
- observers_,
- OnDestruction());
-}
-
void ExtensionContentSettingsStore::NotifyOfContentSettingChanged(
const std::string& extension_id,
bool incognito) {

Powered by Google App Engine
This is Rietveld 408576698