From ae7d85482dd44ffd2061fd6dc692f4d1ef769d18 Mon Sep 17 00:00:00 2001 From: "gavinp@chromium.org" Date: Sat, 4 Sep 2010 01:36:56 +0000 Subject: Revert 58563 - GTTF: Make WaitForTabCountToBecome automation call not Sleep. (unfortunately, Mac & Windows started failing tab perf tests on this change) Sleeping is an unreliable method to wait for things. Instead, we set up an observer. BUG=none TEST=none Review URL: http://codereview.chromium.org/3300011 TBR=phajdan.jr@chromium.org Review URL: http://codereview.chromium.org/3344009 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@58566 0039d316-1c4b-4281-b951-d872f2087c98 --- chrome/common/logging_chrome_uitest.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'chrome/common/logging_chrome_uitest.cc') diff --git a/chrome/common/logging_chrome_uitest.cc b/chrome/common/logging_chrome_uitest.cc index 072b8cc..328a5a49 100644 --- a/chrome/common/logging_chrome_uitest.cc +++ b/chrome/common/logging_chrome_uitest.cc @@ -183,7 +183,7 @@ TEST_F(RendererCrashTest, Crash) { } else { scoped_refptr browser(automation()->GetBrowserWindow(0)); ASSERT_TRUE(browser.get()); - ASSERT_TRUE(browser->WaitForTabCountToBecome(1)); + ASSERT_TRUE(browser->WaitForTabCountToBecome(1, action_max_timeout_ms())); expected_crashes_ = EXPECTED_CRASH_CRASHES; } } -- cgit v1.1