Index: chrome/browser/tab_restore_uitest.cc |
diff --git a/chrome/browser/tab_restore_uitest.cc b/chrome/browser/tab_restore_uitest.cc |
index 56ff39f7737895342dca16bd62c19599a8346fe8..ebc6f099383b88794ccd831e0b9c23f8929ccaf0 100644 |
--- a/chrome/browser/tab_restore_uitest.cc |
+++ b/chrome/browser/tab_restore_uitest.cc |
@@ -98,14 +98,10 @@ class TabRestoreUITest : public UITest { |
// the final number of tabs. |
int AddSomeTabs(BrowserProxy* browser, int how_many) { |
int starting_tab_count = -1; |
- // Use EXPECT instead of ASSERT throughout to avoid trying to return void. |
EXPECT_TRUE(browser->GetTabCount(&starting_tab_count)); |
for (int i = 0; i < how_many; ++i) { |
EXPECT_TRUE(browser->AppendTab(url1_)); |
- int current_tab_count; |
- EXPECT_TRUE(browser->GetTabCount(¤t_tab_count)); |
- EXPECT_EQ(starting_tab_count + i + 1, current_tab_count); |
} |
int tab_count; |
EXPECT_TRUE(browser->GetTabCount(&tab_count)); |