diff options
author | mbelshe@google.com <mbelshe@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-04-17 21:53:58 +0000 |
---|---|---|
committer | mbelshe@google.com <mbelshe@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-04-17 21:53:58 +0000 |
commit | 9d9bbee2f0cf6e02188cef6344f99f758f6fac27 (patch) | |
tree | 41445047fa8b671337b498bea757b0abacc61a0b /chrome/browser/task_manager_resource_providers.h | |
parent | 93e1840d65de867d2ec82c97191e9bc028581b68 (diff) | |
download | chromium_src-9d9bbee2f0cf6e02188cef6344f99f758f6fac27.zip chromium_src-9d9bbee2f0cf6e02188cef6344f99f758f6fac27.tar.gz chromium_src-9d9bbee2f0cf6e02188cef6344f99f758f6fac27.tar.bz2 |
Due to some crashes in teardown, change NotificationObservers
for TAB_CONTENTS_DESTROYED to use the NotificationRegistrar
to ensure proper cleanup.
Review URL: http://codereview.chromium.org/79051
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@13970 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/task_manager_resource_providers.h')
-rw-r--r-- | chrome/browser/task_manager_resource_providers.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/chrome/browser/task_manager_resource_providers.h b/chrome/browser/task_manager_resource_providers.h index a56aed5..fe1c233 100644 --- a/chrome/browser/task_manager_resource_providers.h +++ b/chrome/browser/task_manager_resource_providers.h @@ -71,6 +71,9 @@ class TaskManagerWebContentsResourceProvider // resources. std::map<WebContents*, TaskManagerWebContentsResource*> resources_; + // A scoped container for notification registries. + NotificationRegistrar registrar_; + DISALLOW_COPY_AND_ASSIGN(TaskManagerWebContentsResourceProvider); }; @@ -158,6 +161,9 @@ class TaskManagerChildProcessResourceProvider // byte read notifications). std::map<int, TaskManagerChildProcessResource*> pid_to_resources_; + // A scoped container for notification registries. + NotificationRegistrar registrar_; + DISALLOW_COPY_AND_ASSIGN(TaskManagerChildProcessResourceProvider); }; |