Index: chrome/browser/unload_uitest.cc |
diff --git a/chrome/browser/unload_uitest.cc b/chrome/browser/unload_uitest.cc |
index 5ee30b740132aeb803664961604300cb103f17c9..62072f98792923e86e4108babbefdd945fd8f643 100644 |
--- a/chrome/browser/unload_uitest.cc |
+++ b/chrome/browser/unload_uitest.cc |
@@ -105,7 +105,7 @@ class UnloadTest : public UITest { |
void WaitForBrowserClosed() { |
const int kCheckDelayMs = 100; |
- int max_wait_time = 5000; |
+ int max_wait_time = action_max_timeout_ms(); |
while (max_wait_time > 0) { |
max_wait_time -= kCheckDelayMs; |
PlatformThread::Sleep(kCheckDelayMs); |
@@ -116,7 +116,7 @@ class UnloadTest : public UITest { |
void CheckTitle(const std::wstring& expected_title) { |
const int kCheckDelayMs = 100; |
- int max_wait_time = 5000; |
+ int max_wait_time = action_max_timeout_ms(); |
while (max_wait_time > 0) { |
max_wait_time -= kCheckDelayMs; |
PlatformThread::Sleep(kCheckDelayMs); |