Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(87)

Unified Diff: chrome/browser/task_manager/task_manager_browsertest.cc

Issue 10702029: Move tab functions off Browser into browser_tabstrip and browser_tabrestore. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/tab_restore_browsertest.cc ('k') | chrome/browser/translate/translate_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/task_manager/task_manager_browsertest.cc
===================================================================
--- chrome/browser/task_manager/task_manager_browsertest.cc (revision 145001)
+++ chrome/browser/task_manager/task_manager_browsertest.cc (working copy)
@@ -21,6 +21,7 @@
#include "chrome/browser/task_manager/task_manager_browsertest_util.h"
#include "chrome/browser/ui/browser.h"
#include "chrome/browser/ui/browser_navigator.h"
+#include "chrome/browser/ui/browser_tabstrip.h"
#include "chrome/browser/ui/browser_window.h"
#include "chrome/browser/ui/tab_contents/tab_contents.h"
#include "chrome/browser/ui/tabs/tab_strip_model.h"
@@ -103,9 +104,10 @@
ASSERT_TRUE(StartsWith(model()->GetResourceTitle(2), prefix, true));
// Close the tab and verify that we notice.
- WebContents* first_tab = browser()->GetTabContentsAt(0)->web_contents();
+ WebContents* first_tab =
+ chrome::GetTabContentsAt(browser(), 0)->web_contents();
ASSERT_TRUE(first_tab);
- browser()->CloseTabContents(first_tab);
+ chrome::CloseWebContents(browser(), first_tab);
TaskManagerBrowserTestUtil::WaitForResourceChange(2);
}
@@ -394,7 +396,7 @@
// manager is still visible. Make sure we don't crash and the extension
// gets reloaded and noticed in the task manager.
InfoBarTabHelper* infobar_helper =
- browser()->GetActiveTabContents()->infobar_tab_helper();
+ chrome::GetActiveTabContents(browser())->infobar_tab_helper();
ASSERT_EQ(1U, infobar_helper->infobar_count());
ConfirmInfoBarDelegate* delegate = infobar_helper->
GetInfoBarDelegateAt(0)->AsConfirmInfoBarDelegate();
« no previous file with comments | « chrome/browser/tab_restore_browsertest.cc ('k') | chrome/browser/translate/translate_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698