summaryrefslogtreecommitdiffstats
path: root/chrome/browser/task_manager_resource_providers.cc
diff options
context:
space:
mode:
authorphajdan.jr@chromium.org <phajdan.jr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-07-15 20:32:51 +0000
committerphajdan.jr@chromium.org <phajdan.jr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-07-15 20:32:51 +0000
commita754453c13d397bb9b49a0bbb61e276fa0190365 (patch)
tree33bc812a6389710d9f5ca68b95bfdb149609b838 /chrome/browser/task_manager_resource_providers.cc
parent30729c347ccfc3773a7e0bece475632cbe59ad60 (diff)
downloadchromium_src-a754453c13d397bb9b49a0bbb61e276fa0190365.zip
chromium_src-a754453c13d397bb9b49a0bbb61e276fa0190365.tar.gz
chromium_src-a754453c13d397bb9b49a0bbb61e276fa0190365.tar.bz2
Add more browser tests for Task Manager.
TEST=Covered by browser_tests. http://crbug.com/12127 Review URL: http://codereview.chromium.org/155433 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@20786 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/task_manager_resource_providers.cc')
-rw-r--r--chrome/browser/task_manager_resource_providers.cc16
1 files changed, 3 insertions, 13 deletions
diff --git a/chrome/browser/task_manager_resource_providers.cc b/chrome/browser/task_manager_resource_providers.cc
index 77cbf10..8a9713b 100644
--- a/chrome/browser/task_manager_resource_providers.cc
+++ b/chrome/browser/task_manager_resource_providers.cc
@@ -541,14 +541,10 @@ void TaskManagerExtensionProcessResourceProvider::StartUpdating() {
}
// Register for notifications about extension process changes.
- registrar_.Add(this, NotificationType::EXTENSION_HOST_CREATED,
- NotificationService::AllSources());
- registrar_.Add(this, NotificationType::EXTENSION_HOST_DESTROYED,
+ registrar_.Add(this, NotificationType::EXTENSION_PROCESS_CREATED,
NotificationService::AllSources());
registrar_.Add(this, NotificationType::EXTENSION_PROCESS_CRASHED,
NotificationService::AllSources());
- registrar_.Add(this, NotificationType::EXTENSION_PROCESS_RESTORED,
- NotificationService::AllSources());
}
void TaskManagerExtensionProcessResourceProvider::StopUpdating() {
@@ -556,14 +552,10 @@ void TaskManagerExtensionProcessResourceProvider::StopUpdating() {
updating_ = false;
// Unregister for notifications about extension process changes.
- registrar_.Remove(this, NotificationType::EXTENSION_HOST_CREATED,
- NotificationService::AllSources());
- registrar_.Remove(this, NotificationType::EXTENSION_HOST_DESTROYED,
+ registrar_.Remove(this, NotificationType::EXTENSION_PROCESS_CREATED,
NotificationService::AllSources());
registrar_.Remove(this, NotificationType::EXTENSION_PROCESS_CRASHED,
NotificationService::AllSources());
- registrar_.Remove(this, NotificationType::EXTENSION_PROCESS_RESTORED,
- NotificationService::AllSources());
// Delete all the resources.
STLDeleteContainerPairSecondPointers(resources_.begin(), resources_.end());
@@ -577,11 +569,9 @@ void TaskManagerExtensionProcessResourceProvider::Observe(
const NotificationSource& source,
const NotificationDetails& details) {
switch (type.value) {
- case NotificationType::EXTENSION_HOST_CREATED:
- case NotificationType::EXTENSION_PROCESS_RESTORED:
+ case NotificationType::EXTENSION_PROCESS_CREATED:
AddToTaskManager(Details<ExtensionHost>(details).ptr());
break;
- case NotificationType::EXTENSION_HOST_DESTROYED:
case NotificationType::EXTENSION_PROCESS_CRASHED:
RemoveFromTaskManager(Details<ExtensionHost>(details).ptr());
break;