Index: chrome/test/ui/ui_test.cc |
diff --git a/chrome/test/ui/ui_test.cc b/chrome/test/ui/ui_test.cc |
index 9ee6ead42770e42aea41fedb088767a2832071ab..4e86d7d0709d51298893b624530d1720d6ae7041 100644 |
--- a/chrome/test/ui/ui_test.cc |
+++ b/chrome/test/ui/ui_test.cc |
@@ -309,27 +309,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()); |