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

Unified Diff: chrome/browser/extensions/api/declarative/rules_registry_service.h

Issue 10076001: Fix memory leak caused by Rules Registries (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 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/extensions/api/declarative/rules_registry_service.h
diff --git a/chrome/browser/extensions/api/declarative/rules_registry_service.h b/chrome/browser/extensions/api/declarative/rules_registry_service.h
index 92bb166f75bc5fa4ac7b7a8ad85c97d72976a3b8..c0150512fc91c0e081047720e57370774971326f 100644
--- a/chrome/browser/extensions/api/declarative/rules_registry_service.h
+++ b/chrome/browser/extensions/api/declarative/rules_registry_service.h
@@ -34,6 +34,10 @@ class RulesRegistryService : public content::NotificationObserver {
explicit RulesRegistryService(Profile* profile);
virtual ~RulesRegistryService();
+ // Unregisters refptrs to concrete RulesRegistries at other objects that were
+ // created by us so that the RulesRegistries can be released.
+ void Shutdown();
+
// Registers the default RulesRegistries used in Chromium.
void RegisterDefaultRulesRegistries();

Powered by Google App Engine
This is Rietveld 408576698