Index: chrome/test/ui/ui_test.cc |
diff --git a/chrome/test/ui/ui_test.cc b/chrome/test/ui/ui_test.cc |
index 2128b9dbc2d92b76a124cb7d2b15f555d4e20ce4..de01ff5f4b8db90c0d54bc6814a8fff995aaa187 100644 |
--- a/chrome/test/ui/ui_test.cc |
+++ b/chrome/test/ui/ui_test.cc |
@@ -313,27 +313,6 @@ void UITestBase::NavigateToURLBlockUntilNavigationsComplete( |
url, number_of_navigations)) << url.spec(); |
} |
-bool UITestBase::WaitForBookmarkBarVisibilityChange(BrowserProxy* browser, |
- bool wait_for_open) { |
- const int kCycles = 10; |
- const TimeDelta kDelay = TestTimeouts::action_timeout() / kCycles; |
- for (int i = 0; i < kCycles; i++) { |
- bool visible = false; |
- bool animating = true; |
- bool detached; |
- if (!browser->GetBookmarkBarVisibility(&visible, &animating, &detached)) |
- return false; // Some error. |
- if (visible == wait_for_open && !animating) |
- return true; // Bookmark bar visibility change complete. |
- |
- // Give it a chance to catch up. |
- base::PlatformThread::Sleep(kDelay); |
- } |
- |
- ADD_FAILURE() << "Timeout reached in WaitForBookmarkBarVisibilityChange"; |
- return false; |
-} |
- |
GURL UITestBase::GetActiveTabURL(int window_index) { |
scoped_refptr<TabProxy> tab_proxy(GetActiveTab(window_index)); |
EXPECT_TRUE(tab_proxy.get()); |