| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "chrome/browser/ui/webui/task_manager/task_manager_dialog.h" | 5 #include "chrome/browser/ui/webui/task_manager/task_manager_dialog.h" |
| 6 | 6 |
| 7 #include <algorithm> | 7 #include <algorithm> |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 176 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 187 OpenWebDialog(); | 187 OpenWebDialog(); |
| 188 ++show_count_; | 188 ++show_count_; |
| 189 } | 189 } |
| 190 | 190 |
| 191 void TaskManagerDialogImpl::OnCloseDialog() { | 191 void TaskManagerDialogImpl::OnCloseDialog() { |
| 192 if (show_count_ > 0) | 192 if (show_count_ > 0) |
| 193 --show_count_; | 193 --show_count_; |
| 194 } | 194 } |
| 195 | 195 |
| 196 void TaskManagerDialogImpl::OpenWebDialog() { | 196 void TaskManagerDialogImpl::OpenWebDialog() { |
| 197 window_ = browser::ShowWebDialog(NULL, | 197 window_ = chrome::ShowWebDialog(NULL, |
| 198 ProfileManager::GetDefaultProfile(), | 198 ProfileManager::GetDefaultProfile(), |
| 199 this); | 199 this); |
| 200 } | 200 } |
| 201 | 201 |
| 202 // static | 202 // static |
| 203 void TaskManagerDialog::Show() { | 203 void TaskManagerDialog::Show() { |
| 204 BrowserThread::PostTask( | 204 BrowserThread::PostTask(BrowserThread::UI, FROM_HERE, |
| 205 BrowserThread::UI, FROM_HERE, | 205 base::Bind(&TaskManagerDialogImpl::Show, false)); |
| 206 base::Bind(&TaskManagerDialogImpl::Show, false)); | |
| 207 } | 206 } |
| 208 | 207 |
| 209 // static | 208 // static |
| 210 void TaskManagerDialog::ShowBackgroundPages() { | 209 void TaskManagerDialog::ShowBackgroundPages() { |
| 211 BrowserThread::PostTask( | 210 BrowserThread::PostTask(BrowserThread::UI, FROM_HERE, |
| 212 BrowserThread::UI, FROM_HERE, | 211 base::Bind(&TaskManagerDialogImpl::Show, true)); |
| 213 base::Bind(&TaskManagerDialogImpl::Show, true)); | |
| 214 } | 212 } |
| OLD | NEW |