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

Unified Diff: components/crash/content/browser/crash_dump_observer_android.cc

Issue 2304733002: crash: Fixes following r413431 (Closed)
Patch Set: remove Created 4 years, 3 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 | « components/crash/content/browser/crash_dump_manager_android.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/crash/content/browser/crash_dump_observer_android.cc
diff --git a/components/crash/content/browser/crash_dump_observer_android.cc b/components/crash/content/browser/crash_dump_observer_android.cc
index a7acdd89e51be855804d61aeb8f18473adb31c34..6a159f95335924cc4f0a28c806c038a14f775ba1 100644
--- a/components/crash/content/browser/crash_dump_observer_android.cc
+++ b/components/crash/content/browser/crash_dump_observer_android.cc
@@ -32,9 +32,12 @@ CrashDumpObserver::CrashDumpObserver() {
notification_registrar_.Add(this,
content::NOTIFICATION_RENDERER_PROCESS_CLOSED,
content::NotificationService::AllSources());
+ BrowserChildProcessObserver::Add(this);
}
-CrashDumpObserver::~CrashDumpObserver() {}
+CrashDumpObserver::~CrashDumpObserver() {
+ BrowserChildProcessObserver::Remove(this);
+}
void CrashDumpObserver::OnChildExitOnBlockingPool(
Client* client,
« no previous file with comments | « components/crash/content/browser/crash_dump_manager_android.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698