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

Unified Diff: apps/app_load_service.cc

Issue 2749823002: Restore KeyedServiceFactory diagnostics for context use-after-destroy. (Closed)
Patch Set: Refactor SiteEngagementService tests. Created 3 years, 9 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
« no previous file with comments | « apps/app_load_service.h ('k') | chrome/browser/engagement/site_engagement_service.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: apps/app_load_service.cc
diff --git a/apps/app_load_service.cc b/apps/app_load_service.cc
index c89a3692bf4ef15e29492daa8dfb93af37162753..ea706f43d8061e05163bb1f8d49e501be8bd6b4b 100644
--- a/apps/app_load_service.cc
+++ b/apps/app_load_service.cc
@@ -40,7 +40,9 @@ AppLoadService::AppLoadService(Profile* profile)
extensions::ExtensionRegistry::Get(profile_)->AddObserver(this);
}
-AppLoadService::~AppLoadService() {
+AppLoadService::~AppLoadService() = default;
+
+void AppLoadService::Shutdown() {
extensions::ExtensionRegistry::Get(profile_)->RemoveObserver(this);
}
« no previous file with comments | « apps/app_load_service.h ('k') | chrome/browser/engagement/site_engagement_service.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698