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

Unified Diff: apps/app_load_service.cc

Issue 2749823002: Restore KeyedServiceFactory diagnostics for context use-after-destroy. (Closed)
Patch Set: Add test fixes, more service shutdown fixes. 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
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);
}

Powered by Google App Engine
This is Rietveld 408576698