diff options
author | phajdan.jr@chromium.org <phajdan.jr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-05-27 08:46:28 +0000 |
---|---|---|
committer | phajdan.jr@chromium.org <phajdan.jr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-05-27 08:46:28 +0000 |
commit | 9c5e417def0fef57d5dc79b0348dab9b0d354d42 (patch) | |
tree | 9ea11b8b75b443724becad0ce34916f2de34eacc /chrome/browser/task_manager.cc | |
parent | 5c22958a27f510c5c8f88f77a5769fef971070e3 (diff) | |
download | chromium_src-9c5e417def0fef57d5dc79b0348dab9b0d354d42.zip chromium_src-9c5e417def0fef57d5dc79b0348dab9b0d354d42.tar.gz chromium_src-9c5e417def0fef57d5dc79b0348dab9b0d354d42.tar.bz2 |
Create OpenClose browser test for TaskManager with necessary refactoring.
http://crbug.com/12320
Review URL: http://codereview.chromium.org/113636
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@16978 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/task_manager.cc')
-rw-r--r-- | chrome/browser/task_manager.cc | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/chrome/browser/task_manager.cc b/chrome/browser/task_manager.cc index 717ffd6..de6f47f 100644 --- a/chrome/browser/task_manager.cc +++ b/chrome/browser/task_manager.cc @@ -706,9 +706,10 @@ void TaskManager::Open() { task_manager->view_->OpenWindow(); } +// static void TaskManager::Close() { - model_->StopUpdating(); - model_->Clear(); + TaskManager* task_manager = GetInstance(); + task_manager->view_->CloseWindow(); } bool TaskManager::BrowserProcessIsSelected() { @@ -785,6 +786,11 @@ void TaskManager::RemoveResource(Resource* resource) { model_->RemoveResource(resource); } +void TaskManager::OnWindowClosed() { + model_->StopUpdating(); + model_->Clear(); +} + // static TaskManager* TaskManager::GetInstance() { return Singleton<TaskManager>::get(); |