OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 "base/message_loop.h" | 5 #include "base/message_loop.h" |
6 #include "chrome/browser/browser_process.h" | 6 #include "chrome/browser/browser_process.h" |
7 #include "chrome/browser/profiles/profile.h" | 7 #include "chrome/browser/profiles/profile.h" |
8 #include "chrome/browser/task_manager/task_manager.h" | 8 #include "chrome/browser/task_manager/task_manager.h" |
9 #include "chrome/browser/task_manager/task_manager_browsertest_util.h" | 9 #include "chrome/browser/task_manager/task_manager_browsertest_util.h" |
10 #include "chrome/browser/ui/browser.h" | 10 #include "chrome/browser/ui/browser.h" |
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
70 ui_test_utils::WindowedNotificationObserver observer( | 70 ui_test_utils::WindowedNotificationObserver observer( |
71 chrome::NOTIFICATION_TASK_MANAGER_WINDOW_READY, | 71 chrome::NOTIFICATION_TASK_MANAGER_WINDOW_READY, |
72 Source<TaskManagerModel>(TaskManager::GetInstance()->model())); | 72 Source<TaskManagerModel>(TaskManager::GetInstance()->model())); |
73 browser->window()->ShowTaskManager(); | 73 browser->window()->ShowTaskManager(); |
74 observer.Wait(); | 74 observer.Wait(); |
75 #else | 75 #else |
76 browser->window()->ShowTaskManager(); | 76 browser->window()->ShowTaskManager(); |
77 #endif // defined(WEBUI_TASK_MANAGER) | 77 #endif // defined(WEBUI_TASK_MANAGER) |
78 } | 78 } |
79 | 79 |
OLD | NEW |