Index: chrome/browser/android/crash_dump_manager.cc |
diff --git a/chrome/browser/android/crash_dump_manager.cc b/chrome/browser/android/crash_dump_manager.cc |
index 66be4ce517f41c29c22355a17627ed15d2f8fd34..3ba99f2a7717034a1667738d05d9389028b568f6 100644 |
--- a/chrome/browser/android/crash_dump_manager.cc |
+++ b/chrome/browser/android/crash_dump_manager.cc |
@@ -25,8 +25,20 @@ |
using content::BrowserThread; |
+// static |
+CrashDumpManager* CrashDumpManager::instance_ = NULL; |
+ |
+// static |
+CrashDumpManager* CrashDumpManager::GetInstance() { |
+ return instance_; |
+} |
+ |
CrashDumpManager::CrashDumpManager() { |
DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); |
+ DCHECK(!instance_); |
+ |
+ instance_ = this; |
+ |
notification_registrar_.Add(this, |
content::NOTIFICATION_RENDERER_PROCESS_TERMINATED, |
content::NotificationService::AllSources()); |