Index: chrome/browser/task_manager/task_manager_browsertest.cc |
diff --git a/chrome/browser/task_manager/task_manager_browsertest.cc b/chrome/browser/task_manager/task_manager_browsertest.cc |
index 2fe1ad429a895543709c925ce4bea3290a36f849..29a5cf72b69eb257ce895b68b4316dba01c7f5a7 100644 |
--- a/chrome/browser/task_manager/task_manager_browsertest.cc |
+++ b/chrome/browser/task_manager/task_manager_browsertest.cc |
@@ -11,6 +11,7 @@ |
#include "chrome/browser/browser_process.h" |
#include "chrome/browser/extensions/extension_browsertest.h" |
#include "chrome/browser/extensions/extension_service.h" |
+#include "chrome/browser/infobars/infobar_tab_helper.h" |
#include "chrome/browser/notifications/desktop_notification_service.h" |
#include "chrome/browser/notifications/notification.h" |
#include "chrome/browser/notifications/notification_test_util.h" |
@@ -374,9 +375,9 @@ IN_PROC_BROWSER_TEST_F(TaskManagerBrowserTest, |
// manager is still visible. Make sure we don't crash and the extension |
// gets reloaded and noticed in the task manager. |
TabContentsWrapper* current_tab = browser()->GetSelectedTabContentsWrapper(); |
Peter Kasting
2011/08/31 18:47:32
Nit: Convert this TCW* to an InfoBarTabHelper*
|
- ASSERT_EQ(1U, current_tab->infobar_count()); |
- ConfirmInfoBarDelegate* delegate = |
- current_tab->GetInfoBarDelegateAt(0)->AsConfirmInfoBarDelegate(); |
+ ASSERT_EQ(1U, current_tab->infobar_tab_helper()->infobar_count()); |
+ ConfirmInfoBarDelegate* delegate = current_tab->infobar_tab_helper()-> |
+ GetInfoBarDelegateAt(0)->AsConfirmInfoBarDelegate(); |
ASSERT_TRUE(delegate); |
delegate->Accept(); |
TaskManagerBrowserTestUtil::WaitForResourceChange(3); |