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..fa9369ae71c00d60ce2d4b158f2191aa8990bbfa 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" |
@@ -373,10 +374,11 @@ IN_PROC_BROWSER_TEST_F(TaskManagerBrowserTest, |
// Reload the extension using the "crashed extension" infobar while the task |
// 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(); |
- ASSERT_EQ(1U, current_tab->infobar_count()); |
- ConfirmInfoBarDelegate* delegate = |
- current_tab->GetInfoBarDelegateAt(0)->AsConfirmInfoBarDelegate(); |
+ InfoBarTabHelper* infobar_helper = |
+ browser()->GetSelectedTabContentsWrapper()->infobar_tab_helper(); |
+ ASSERT_EQ(1U, infobar_helper->infobar_count()); |
+ ConfirmInfoBarDelegate* delegate = infobar_helper-> |
+ GetInfoBarDelegateAt(0)->AsConfirmInfoBarDelegate(); |
ASSERT_TRUE(delegate); |
delegate->Accept(); |
TaskManagerBrowserTestUtil::WaitForResourceChange(3); |